/* Serif for headings (Cormorant Garamond, served from the theme; licence in assets/fonts) */
@font-face { font-family: "HM Serif"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "HM Serif"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "HM Serif"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

/* ============================================================
   CATALOGUE — 4:5 product cards and grid (from the global store)
   Home, shop and category pages. Loaded after main.css.
   ============================================================ */

/* Grid: 2 columns on phones, 3 on tablets, 4 on desktop, airy rows */
.hm-product-grid { gap: 44px 20px; }
@media (max-width: 1024px) { .hm-product-grid { gap: 36px 16px; } }
@media (max-width: 768px)  { .hm-product-grid { gap: 28px 12px; } }

/* Card image: 4:5 portrait, soft corners, warm backdrop while loading */
.hm-product-card__image-wrap,
.hm-h-scroll-track .hm-product-card__image-wrap,
.hm-collection-spotlight__product .hm-product-card__image-wrap {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5 !important;
  border-radius: 18px;
  overflow: hidden;
  background: #EFE7DA;
}
.hm-product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), opacity .6s ease;
}
/* WooCommerce's own ".woocommerce img { height: auto }" wins on shop and category pages:
   force the photo to fill the whole 4:5 frame there too. */
.hm-product-card .hm-product-card__image-wrap .hm-product-card__img { height: 100% !important; max-width: none; }
.hm-product-card__img--alt { opacity: 0; }
.hm-product-card:hover .hm-product-card__img { transform: scale(1.04); }
@media (hover: hover) {
  .hm-product-card:hover .hm-product-card__img--alt { opacity: 1; }
}

.hm-product-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--clr-dark);
  color: #F6F1E7;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Text: two-line names that line up across a row, a clear price */
.hm-product-card__info { padding-top: 12px; gap: 4px; }
.hm-product-card__name {
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(2em * 1.35);
}
.hm-product-card__price {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  margin-top: 4px;
}
.hm-product-card__price del { font-weight: 400; color: var(--clr-text-muted); }
.hm-product-card .hm-quick-add { border-radius: 999px; }

/* Products not sold in a market abroad */
.hi-unavailable { font-size: 13px; font-weight: 500; color: var(--clr-text-muted); }

/* International orders section on policy pages */
.hm-policy-intl { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--clr-border); }
.hm-policy-intl h3 { margin-top: 24px; }

/* ============================================================
   HOMEPAGE (1.1.0) — promises, collections rail, edits
   ============================================================ */
.hm-home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.hm-home-kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--clr-yellow); margin: 0 0 10px; font-weight: var(--fw-semibold); }
.hm-home-title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.01em; font-weight: var(--fw-semibold); margin: 0; color: var(--clr-text); }
.hm-home-link { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: var(--fw-medium); color: var(--clr-text); border-bottom: 1px solid currentColor; white-space: nowrap; }

/* Promises: one quiet line of chips under the hero, swipeable on phones */
.hm-promises { border-bottom: 1px solid var(--clr-border); background: var(--clr-bg); }
.hm-promises__track { display: flex; justify-content: center; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 14px var(--gutter); }
.hm-promises__track::-webkit-scrollbar { display: none; }
.hm-promises__chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--clr-border); border-radius: 999px; font-size: 13px; color: var(--clr-text); background: #fff; white-space: nowrap; }
.hm-promises__chip .ti { color: var(--clr-yellow); font-size: 16px; }
@media (max-width: 900px) { .hm-promises__track { justify-content: flex-start; } }

/* Collections rail: 4:5 cards, snap-scroll on mobile, grid on desktop */
.hm-collections { padding: 56px 0 8px; }
.hm-collections__rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding: 0 var(--gutter) 8px; max-width: 1440px; margin: 0 auto; }
.hm-collections__rail::-webkit-scrollbar { display: none; }
.hm-collection-card { flex: 0 0 62%; scroll-snap-align: start; display: flex; flex-direction: column; color: var(--clr-text); text-decoration: none; }
.hm-collection-card__img { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #EFE7DA; }
.hm-collection-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.hm-collection-card:hover .hm-collection-card__img img { transform: scale(1.05); }
.hm-collection-card__name { margin-top: 14px; font-size: 18px; font-weight: var(--fw-semibold); }
.hm-collection-card__sub { margin-top: 2px; font-size: 13px; color: var(--clr-text-muted); }
@media (min-width: 600px) { .hm-collection-card { flex-basis: 38%; } }
@media (min-width: 1024px) {
  .hm-collections__rail { gap: 20px; }
  .hm-collection-card { flex: 1 1 0; min-width: 0; }
}

/* ============================================================
   BULK PAGE (1.2.0) — steps and FAQ
   ============================================================ */
.hm-bulk-steps { padding: 72px 0 8px; }
.hm-bulk-steps__list { list-style: none; counter-reset: hmstep; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 32px 0 0; padding: 0; }
.hm-bulk-steps__list li { counter-increment: hmstep; display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--clr-border); border-radius: 18px; background: #fff; }
.hm-bulk-steps__list li::before { content: counter(hmstep, decimal-leading-zero); font-size: 12px; letter-spacing: .14em; color: var(--clr-yellow); font-weight: var(--fw-semibold); }
.hm-bulk-steps__list strong { font-size: 16px; }
.hm-bulk-steps__list span { font-size: 14px; line-height: 1.6; color: var(--clr-text-muted); }
@media (max-width: 900px) { .hm-bulk-steps__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hm-bulk-steps__list { grid-template-columns: 1fr; } .hm-bulk-steps { padding-top: 48px; } }
.hm-bulk-faq { padding: 64px 0 0; }
.hm-bulk-faq .hm-accordion { margin-top: 24px; max-width: 860px; }

/* ============================================================
   HOMEPAGE (1.4.0) — sideways rows and feature blocks
   ============================================================ */
.hm-home-row, .hm-feature { padding: 56px 0; }
.hm-home-row + .hm-home-row, .hm-feature + .hm-feature { padding-top: 16px; }

/* Sideways row: 4 across on desktop, 2 and a peek on phones */
.hm-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.hm-rail::-webkit-scrollbar { display: none; }
.hm-rail__item { scroll-snap-align: start; min-width: 0; }

/* Feature: one photo tile (2×2) beside four products */
.hm-feature__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; align-items: start; }
.hm-feature__tile { grid-column: span 2; grid-row: span 2; position: relative; display: block; height: 100%; min-height: 420px; border-radius: 22px; overflow: hidden; background: #2E1F16; color: #fff; }
.hm-feature__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.hm-feature__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(20,14,10,.72) 100%); }
.hm-feature__tile:hover img { transform: scale(1.04); }
.hm-feature__tile-text { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; font-size: 16px; line-height: 1.5; max-width: 420px; }
.hm-feature__item { min-width: 0; }

/* Dark feature (barbecue) */
.hm-feature--dark { background: #1A1612; color: #F6F1E7; margin: 24px 0; }
.hm-feature--dark .hm-home-title, .hm-feature--dark .hm-product-card__name, .hm-feature--dark .hm-product-card__price, .hm-feature--dark .hm-product-card__price ins, .hm-feature--dark .hm-home-link { color: #F6F1E7; }
.hm-feature--dark .hm-product-card__price del { color: rgba(246,241,231,.55); }
.hm-feature--dark .hm-home-kicker { color: #E2BE6E; }
.hm-feature--dark .hm-product-card__image-wrap { background: #2A231D; }
.hm-feature--dark .hm-product-card .hm-quick-add { background: transparent !important; color: #F6F1E7 !important; border-color: rgba(246,241,231,.35) !important; }

/* Cards in rows and features: tighter, the add button is a slim pill */
.hm-rail .hm-product-card .hm-quick-add,
.hm-feature .hm-product-card .hm-quick-add { margin-top: 10px; padding: 8px 0 !important; font-size: 12px; }
.hm-product-card__name { -webkit-line-clamp: 2; }

/* Brand statement tighter */
.hm-brand-statement { padding-top: 64px !important; padding-bottom: 64px !important; }

@media (max-width: 1024px) {
  .hm-rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
  .hm-feature__grid { gap: 28px 16px; }
}
@media (max-width: 768px) {
  .hm-home-row, .hm-feature { padding: 40px 0; }
  .hm-home-title { font-size: 26px; }
  .hm-home-head { align-items: flex-end; }
  /* rows run edge to edge on phones, with a peek of the next card */
  .hm-rail { grid-auto-columns: 44%; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter); }
  .hm-feature__grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .hm-feature__tile { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 16 / 11; height: auto; border-radius: 18px; }
  .hm-feature__tile-text { left: 18px; right: 18px; bottom: 16px; font-size: 14px; }
  .hm-collection-card { flex-basis: 40%; }
  .hm-collection-card__name { font-size: 15px; margin-top: 10px; }
  .hm-collection-card__sub { display: none; }
  .hm-brand-statement { padding-top: 48px !important; padding-bottom: 48px !important; }
}

/* ============================================================
   HOMEPAGE — DESKTOP POLISH (1.5.0, 1025px and wider)
   One grid for every section, one rhythm, serif headings,
   cards without empty bands. Phones are unchanged.
   ============================================================ */
@media (min-width: 1025px) {
  /* One column grid: every section lines up on the same 1280px container */
  .hm-collections__rail { max-width: var(--max-w); padding: 0 var(--gutter) 4px; gap: 20px; }

  /* One vertical rhythm: 96px between sections, 40px under every heading */
  .hm-collections { padding: 96px 0 0; }
  .hm-home-row, .hm-feature { padding: 96px 0 0; }
  .hm-home-row + .hm-home-row, .hm-feature + .hm-feature { padding-top: 96px; }
  .hm-feature--dark { margin: 96px 0 0; padding: 88px 0 96px; }
  .hm-feature--dark + .hm-social-proof, .hm-brand-statement + .hm-feature--dark { margin-top: 0; }
  .hm-brand-statement { margin-top: 96px; padding: 104px 0 !important; }
  .hm-social-proof { margin-top: 0; padding: 88px 0; }
  .hm-home-row + .hm-horeca-cta { margin-top: 96px; }
  .hm-horeca-cta { padding-top: 88px; padding-bottom: 88px; }
  .hm-home-head { margin-bottom: 40px; align-items: flex-end; }

  /* Headings: serif display, quiet kicker, small link */
  .hm-home-kicker { font-size: 11px; letter-spacing: .26em; margin-bottom: 14px; }
  .hm-home-title { font-family: "HM Serif", Georgia, serif; font-weight: 500; font-size: 52px; line-height: 1.02; letter-spacing: -.005em; }
  .hm-home-link { min-height: 0; padding-bottom: 4px; font-size: 13px; letter-spacing: .04em; border-bottom-width: 1px; }
  .hm-brand-statement__heading { font-family: "HM Serif", Georgia, serif !important; font-weight: 500 !important; font-size: 56px !important; line-height: 1.05 !important; letter-spacing: -.005em; }
  .hm-brand-statement__inner { max-width: 760px; margin: 0 auto; text-align: center; }
  .hm-brand-statement__body { margin-left: auto; margin-right: auto; max-width: 600px; }

  /* Collection cards: even 7-across row on the container */
  .hm-collection-card__name { font-size: 16px; margin-top: 14px; }
  .hm-collection-card__sub { font-size: 13px; }

  /* Product cards: name, price, and the add button laid over the photo on hover (no empty band) */
  .hm-product-card { position: relative; container-type: inline-size; }
  .hm-product-card__info { padding-top: 14px; gap: 6px; }
  .hm-product-card__name { font-size: 14px; line-height: 1.4; min-height: calc(2em * 1.4); }
  .hm-product-card__price { font-size: 14px; margin-top: 0; }
  .hm-product-card .hm-quick-add {
    position: absolute; left: 12px; right: 12px; width: auto !important;
    top: calc(125cqw - 56px); margin: 0 !important; padding: 11px 0 !important;
    background: rgba(255,255,255,.94) !important; border: 0 !important; color: var(--clr-text) !important;
    backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(0,0,0,.08); z-index: 3;
  }
  .hm-product-card .hm-quick-add:hover { background: var(--clr-dark) !important; color: #fff !important; }

  /* Feature blocks: photo tile beside four square product photos; tile height = two cards */
  .hm-feature__grid { gap: 40px 24px; }
  .hm-feature .hm-product-card__image-wrap { aspect-ratio: 1 / 1 !important; }
  .hm-feature .hm-product-card .hm-quick-add { top: calc(100cqw - 56px); }
  .hm-feature__tile { min-height: 0; border-radius: 20px; }
  .hm-feature__tile::after { background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(20,14,10,.66) 100%); }
  .hm-feature__tile-text { left: 36px; right: 36px; bottom: 34px; font-family: "HM Serif", Georgia, serif; font-size: 28px; line-height: 1.2; font-weight: 500; max-width: 460px; }
  .hm-feature--dark .hm-product-card .hm-quick-add { background: rgba(246,241,231,.95) !important; color: #1A1612 !important; }

  /* Sideways rows: exactly 4 across, aligned to the grid */
  .hm-rail { grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; }

  /* Reviews: quieter cards */
  .hm-social-proof__quote p { font-family: "HM Serif", Georgia, serif; font-size: 22px; line-height: 1.4; }
}
@media (min-width: 1025px) and (hover: none) {
  .hm-product-card .hm-quick-add { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   MY ACCOUNT 1.6 — sign in + account
   ============================================================ */
.woocommerce-account .hm-page-content { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.woocommerce-account .hm-page-body > .woocommerce { margin: 0; }

/* — Sign in — */
.hm-auth { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 380px); justify-content: center; gap: 56px; padding: 64px 0 96px; align-items: start; }
.hm-auth__card { background: #fff; border: 1px solid var(--clr-border); border-radius: 20px; padding: 44px 44px 32px; box-shadow: 0 1px 2px rgba(43,29,20,.04), 0 18px 40px -24px rgba(43,29,20,.18); }
.hm-auth__eyebrow, .hm-acct__eyebrow, .hm-acct-eyebrow, .hm-auth__aside-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--clr-teal); font-weight: 600; margin: 0 0 10px; }
.hm-auth__title { font-family: "HM Serif", Georgia, serif; font-weight: 500; font-size: 44px; line-height: 1.05; margin: 0 0 12px; color: var(--clr-text); }
.hm-auth__lede { color: var(--clr-text-muted); font-size: 15px; line-height: 1.6; margin: 0 0 28px; }
.hm-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; background: #F4EDE2; border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.hm-auth__tabs button { border: 0; background: transparent; border-radius: 999px; padding: 10px 12px; font: 500 14px var(--ff-base); color: var(--clr-text-muted); cursor: pointer; transition: background .2s, color .2s; }
.hm-auth__tabs button.is-active { background: #fff; color: var(--clr-text); box-shadow: 0 1px 3px rgba(43,29,20,.12); }
.hm-auth__tabs button:disabled { cursor: default; opacity: .6; }
.hm-auth__field { display: block; margin: 0 0 16px; }
.hm-auth__field[hidden] { display: none; }
.hm-auth__field > span:first-child { display: block; font-size: 13px; font-weight: 500; color: var(--clr-text); margin-bottom: 8px; }
.hm-auth input[type="text"], .hm-auth input[type="email"], .hm-auth input[type="tel"], .hm-auth input[type="password"] {
  width: 100%; height: 52px; border: 1px solid #DCCFBA; border-radius: 12px; padding: 0 16px; font: 400 16px var(--ff-base); color: var(--clr-text); background: #FFFDF9; transition: border-color .2s, box-shadow .2s; box-sizing: border-box; }
.hm-auth input:focus { outline: 0; border-color: var(--clr-yellow); box-shadow: 0 0 0 3px rgba(201,154,85,.2); }
.hm-auth__phone { display: flex; align-items: stretch; }
.hm-auth__cc { display: flex; align-items: center; padding: 0 14px; border: 1px solid #DCCFBA; border-right: 0; border-radius: 12px 0 0 12px; background: #F4EDE2; font-size: 15px; color: var(--clr-text); }
.hm-auth__phone input { border-radius: 0 12px 12px 0 !important; }
.hm-auth__code { text-align: center; letter-spacing: .5em; font-size: 22px !important; font-weight: 600 !important; }
.hm-auth__btn { display: flex; width: 100%; height: 52px; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: var(--clr-dark); color: #F6F1E7; font: 600 15px var(--ff-base); letter-spacing: .02em; cursor: pointer; transition: background .2s, transform .1s; margin-top: 4px; }
.hm-auth__btn:hover { background: #44301F; }
.hm-auth__btn:active { transform: translateY(1px); }
.hm-auth__btn.is-busy, .hm-auth__btn:disabled { opacity: .6; cursor: wait; }
.hm-auth__btn--ghost { background: transparent; color: var(--clr-text); border: 1px solid var(--clr-text); }
.hm-auth__btn--ghost:hover { background: var(--clr-text); color: #fff; }
.hm-auth__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 4px; }
.hm-auth__link { background: none; border: 0; padding: 0; font: 500 13px var(--ff-base); color: var(--clr-teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hm-auth__link:disabled { color: var(--clr-text-muted); text-decoration: none; cursor: default; }
.hm-auth__sent { font-size: 14px; line-height: 1.5; color: var(--clr-text); background: #F4EDE2; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.hm-auth__error { color: #A23B2A; font-size: 14px; margin: 14px 0 0; }
.hm-auth__remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--clr-text-muted); }
.hm-auth__pw { margin-top: 26px; border-top: 1px solid var(--clr-border); padding-top: 18px; }
.hm-auth__pw summary { cursor: pointer; font-size: 14px; color: var(--clr-text-muted); list-style: none; text-align: center; }
.hm-auth__pw summary::-webkit-details-marker { display: none; }
.hm-auth__pw summary::after { content: " ↓"; }
.hm-auth__pw[open] summary { margin-bottom: 18px; }
.hm-auth__pw[open] summary::after { content: " ↑"; }
.hm-auth__pw--only { border: 0; padding: 0; margin: 0; }
.hm-auth__fine { font-size: 12px; color: var(--clr-text-muted); text-align: center; margin: 22px 0 0; }
.hm-auth__fine a { color: inherit; text-decoration: underline; }
.hm-auth__aside { padding-top: 56px; }
.hm-auth__aside ul { list-style: none; margin: 0; padding: 0; }
.hm-auth__aside li { padding: 18px 0; border-bottom: 1px solid var(--clr-border); }
.hm-auth__aside li:first-child { border-top: 1px solid var(--clr-border); }
.hm-auth__aside strong { display: block; font-family: "HM Serif", Georgia, serif; font-weight: 500; font-size: 24px; color: var(--clr-text); margin-bottom: 4px; }
.hm-auth__aside span { font-size: 14px; color: var(--clr-text-muted); line-height: 1.5; }

/* Lost / reset password (WooCommerce default forms) */
.woocommerce-account .woocommerce-ResetPassword, .woocommerce-account form.lost_reset_password { max-width: 480px; margin: 64px auto 96px; background: #fff; border: 1px solid var(--clr-border); border-radius: 20px; padding: 40px; }
.woocommerce-account .woocommerce-ResetPassword p:first-child { color: var(--clr-text-muted); font-size: 15px; line-height: 1.6; }

/* — Account shell — */
.hm-acct { padding: 48px 0 96px; }
.hm-acct__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--clr-border); }
.hm-acct__eyebrow { margin-bottom: 6px; }
.hm-acct__hello { font-family: "HM Serif", Georgia, serif; font-weight: 500; font-size: 48px; line-height: 1; margin: 0; color: var(--clr-text); }
.hm-acct__since { font-size: 13px; color: var(--clr-text-muted); margin: 0; }
.hm-acct__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.hm-acct__nav { position: sticky; top: calc(var(--header-h, 72px) + 24px); display: flex; flex-direction: column; gap: 2px; }
.hm-acct__nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--clr-text-muted); transition: background .15s, color .15s; }
.hm-acct__nav a .ti { font-size: 18px; }
.hm-acct__nav a:hover { background: #F4EDE2; color: var(--clr-text); }
.hm-acct__nav a.is-active { background: var(--clr-dark); color: #F6F1E7; }
.hm-acct__nav a[href*="customer-logout"] { margin-top: 14px; border-top: 1px solid var(--clr-border); border-radius: 0; padding-top: 18px; }
.hm-acct__main { min-width: 0; }
.hm-acct__main .hm-account-title, .hm-acct__main > h2, .hm-acct__main h3 { font-family: "HM Serif", Georgia, serif; font-weight: 500; }
.hm-acct__main .hm-account-title { font-size: 34px; margin: 0 0 24px; }

/* Overview */
.hm-acct-over { display: grid; gap: 20px; }
.hm-acct-card { background: #fff; border: 1px solid var(--clr-border); border-radius: 18px; padding: 26px 28px; }
.hm-acct-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hm-acct-h { font-family: "HM Serif", Georgia, serif; font-weight: 500; font-size: 28px; line-height: 1.1; margin: 0; }
.hm-acct-muted { color: var(--clr-text-muted); font-size: 14px; line-height: 1.55; margin: 0; }
.hm-acct-status { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: #F4EDE2; color: var(--clr-text); white-space: nowrap; }
.hm-acct-status--completed { background: #E5EFE3; color: #2F5E2A; }
.hm-acct-status--processing, .hm-acct-status--shipped, .hm-acct-status--out-for-delivery { background: #FBEFD9; color: #8A5A12; }
.hm-acct-status--cancelled, .hm-acct-status--failed, .hm-acct-status--refunded { background: #F7E3DF; color: #A23B2A; }
.hm-acct-latest__body { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; margin: 0 -14px; border-radius: 12px; transition: background .15s; }
.hm-acct-latest__body:hover { background: #FBF7F0; }
.hm-acct-latest__img img { width: 88px; height: 110px; object-fit: cover; border-radius: 10px; display: block; background: #F4EDE2; }
.hm-acct-latest__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hm-acct-latest__info strong { font-size: 16px; font-weight: 600; color: var(--clr-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-acct-latest__info > span:not(.hm-acct-muted) { font-size: 13px; color: var(--clr-text); }
.hm-acct-latest__total { font-weight: 600; font-size: 16px; color: var(--clr-text); }
.hm-acct-card__foot { display: flex; align-items: center; gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--clr-border); }
.hm-acct-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 10px; background: var(--clr-dark); color: #F6F1E7 !important; font-size: 14px; font-weight: 600; }
.hm-acct-btn:hover { background: #44301F; }
.hm-acct-link { font-size: 14px; font-weight: 500; color: var(--clr-teal); }
.hm-acct-empty { display: grid; gap: 12px; justify-items: start; padding: 36px 32px; background: linear-gradient(135deg, #FBF7F0, #F4EDE2); }
.hm-acct-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hm-acct-tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--clr-border); border-radius: 16px; padding: 20px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.hm-acct-tile:hover { border-color: var(--clr-yellow); transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(43,29,20,.35); }
.hm-acct-tile .ti { font-size: 22px; color: var(--clr-teal); margin-bottom: 8px; }
.hm-acct-tile strong { font-size: 15px; font-weight: 600; color: var(--clr-text); }
.hm-acct-tile span { font-size: 13px; color: var(--clr-text-muted); line-height: 1.4; }
.hm-acct-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hm-acct-offer { background: var(--clr-dark); border-color: var(--clr-dark); }
.hm-acct-offer .hm-acct-eyebrow { color: var(--clr-yellow); }
.hm-acct-offer .hm-acct-muted { color: rgba(246,241,231,.7); }
.hm-acct-offer__code { font-family: "HM Serif", Georgia, serif; font-size: 40px; font-weight: 600; letter-spacing: .08em; color: #F6F1E7; margin: 0 0 8px; line-height: 1; }
.hm-acct-offer__code--sm { font-size: 30px; letter-spacing: 0; font-weight: 500; }
.hm-acct-help__title { font-family: "HM Serif", Georgia, serif; font-size: 26px; font-weight: 500; margin: 0 0 16px; line-height: 1.15; }
.hm-acct-help__links { display: flex; flex-wrap: wrap; gap: 10px; }
.hm-acct-help__links a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--clr-border); border-radius: 999px; font-size: 14px; color: var(--clr-text); }
.hm-acct-help__links a:hover { border-color: var(--clr-text); }

/* WooCommerce screens inside the shell: addresses, profile, view order */
.hm-acct__main .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hm-acct__main .woocommerce-Addresses::before, .hm-acct__main .woocommerce-Addresses::after { display: none; }
.hm-acct__main .woocommerce-Address { width: auto !important; float: none !important; background: #fff; border: 1px solid var(--clr-border); border-radius: 18px; padding: 24px 26px; }
.hm-acct__main .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.hm-acct__main .woocommerce-Address-title h2, .hm-acct__main .woocommerce-Address-title h3 { font-family: "HM Serif", Georgia, serif; font-weight: 500; font-size: 24px; margin: 0; }
.hm-acct__main .woocommerce-Address-title .edit { font-size: 13px; font-weight: 500; color: var(--clr-teal); }
.hm-acct__main address { font-style: normal; line-height: 1.7; color: var(--clr-text-muted); font-size: 14px; }
.hm-acct__main > .woocommerce-notices-wrapper + p, .hm-acct__main > p:first-child { color: var(--clr-text-muted); font-size: 14px; }
.hm-acct__main form .form-row { margin: 0 0 16px; padding: 0; }
.hm-acct__main form .form-row label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--clr-text); }
.hm-acct__main form .input-text, .hm-acct__main form select, .hm-acct__main .select2-container .select2-selection--single {
  width: 100%; height: 48px; border: 1px solid #DCCFBA; border-radius: 12px; padding: 0 14px; font: 400 15px var(--ff-base); background: #FFFDF9; box-sizing: border-box; }
.hm-acct__main .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 0; }
.hm-acct__main .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
.hm-acct__main form .input-text:focus { outline: 0; border-color: var(--clr-yellow); box-shadow: 0 0 0 3px rgba(201,154,85,.2); }
.hm-acct__main form fieldset { border: 1px solid var(--clr-border); border-radius: 16px; padding: 22px 24px 8px; margin: 24px 0; }
.hm-acct__main form legend { font-family: "HM Serif", Georgia, serif; font-size: 22px; padding: 0 8px; }
.hm-acct__main form .button, .hm-acct__main .woocommerce-button, .hm-acct__main a.button {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--clr-dark); color: #F6F1E7; font: 600 14px var(--ff-base); cursor: pointer; }
.hm-acct__main form .button:hover, .hm-acct__main a.button:hover { background: #44301F; color: #fff; }
.hm-acct__main .woocommerce-order-details, .hm-acct__main .woocommerce-customer-details { background: #fff; border: 1px solid var(--clr-border); border-radius: 18px; padding: 24px 26px; margin: 0 0 20px; }
.hm-acct__main .woocommerce-order-details__title, .hm-acct__main .woocommerce-column__title { font-family: "HM Serif", Georgia, serif; font-weight: 500; font-size: 26px; margin: 0 0 14px; }
.hm-acct__main table.shop_table { width: 100%; border-collapse: collapse; border: 0; font-size: 14px; }
.hm-acct__main table.shop_table th, .hm-acct__main table.shop_table td { padding: 12px 0; border: 0; border-bottom: 1px solid var(--clr-border); text-align: left; }
.hm-acct__main table.shop_table td:last-child, .hm-acct__main table.shop_table th:last-child { text-align: right; }
.hm-acct__main table.shop_table tfoot tr:last-child th, .hm-acct__main table.shop_table tfoot tr:last-child td { border-bottom: 0; font-size: 16px; font-weight: 600; }
.hm-acct__main mark { background: #F4EDE2; color: var(--clr-text); padding: 1px 6px; border-radius: 6px; }
.hm-acct__main .woocommerce-message, .hm-acct__main .woocommerce-info, .hm-acct__main .woocommerce-error { border-radius: 12px; }

@media (max-width: 1024px) {
  .hm-auth { grid-template-columns: minmax(0, 520px); padding: 40px 0 72px; gap: 32px; }
  .hm-auth__aside { padding-top: 0; }
  .hm-acct__grid { grid-template-columns: 1fr; gap: 24px; }
  .hm-acct__nav { position: static; flex-direction: row; overflow-x: auto; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .hm-acct__nav::-webkit-scrollbar { display: none; }
  .hm-acct__nav a { flex: 0 0 auto; border: 1px solid var(--clr-border); border-radius: 999px; padding: 9px 16px; white-space: nowrap; }
  .hm-acct__nav a[href*="customer-logout"] { margin-top: 0; border-top: 1px solid var(--clr-border); border-radius: 999px; padding-top: 9px; }
  .hm-acct-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hm-auth { padding: 24px 0 56px; }
  .hm-auth__card { padding: 30px 22px 24px; border-radius: 18px; }
  .hm-auth__title { font-size: 36px; }
  .hm-auth__aside { display: none; }
  .hm-acct { padding: 28px 0 64px; }
  .hm-acct__head { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 20px; margin-bottom: 20px; }
  .hm-acct__hello { font-size: 36px; }
  .hm-acct-card { padding: 22px 20px; }
  .hm-acct-latest__body { grid-template-columns: 64px minmax(0, 1fr); }
  .hm-acct-latest__img img { width: 64px; height: 80px; }
  .hm-acct-latest__total { grid-column: 2; }
  .hm-acct-pair, .hm-acct__main .woocommerce-Addresses { grid-template-columns: 1fr; }
  .hm-acct__main .hm-account-title { font-size: 28px; }
  .woocommerce-account .woocommerce-ResetPassword, .woocommerce-account form.lost_reset_password { margin: 24px 0 56px; padding: 28px 22px; }
}
