:root {
  --hb-ivory: #f4efe8;
  --hb-paper: #fffdf9;
  --hb-sand: #e8dcc8;
  --hb-clay: #c4a574;
  --hb-terracotta: #c45c38;
  --hb-forest: #3d4f44;
  --hb-forest-deep: #2a372f;
  --hb-ink: #1f1a16;
  --hb-muted: #6f675e;
  --hb-line: rgba(31, 26, 22, 0.1);
  --hb-shadow: 0 18px 40px rgba(31, 26, 22, 0.08);
  --hb-radius: 18px;
  --hb-max: 1240px;
  --hb-serif: "Cormorant Garamond", "Times New Roman", serif;
  --hb-sans: "Outfit", system-ui, sans-serif;
  --hb-announce: 36px;
  --hb-header: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--hb-ivory);
  color: var(--hb-ink);
  font-family: var(--hb-sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--hb-terracotta);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--hb-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10000;
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
}

.hb-wrap {
  width: min(var(--hb-max), calc(100% - 40px));
  margin-inline: auto;
}

.hb-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hb-terracotta);
  margin-bottom: 12px;
}

/* Announcement */
.hb-announce {
  background: var(--hb-forest);
  color: #f6f1ea;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
  min-height: var(--hb-announce);
}

.hb-announce a {
  color: var(--hb-clay);
}

/* Header */
.hb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 232, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hb-line);
}

.hb-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--hb-header);
}

.hb-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hb-logo__mark {
  font-family: var(--hb-serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
}

.hb-logo__sub {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hb-muted);
}

.hb-nav ul {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hb-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.hb-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hb-icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--hb-ink);
  position: relative;
}

.hb-icon-btn:hover,
.hb-icon-btn:focus-visible {
  background: var(--hb-sand);
  outline: none;
}

.hb-cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  background: var(--hb-terracotta);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
}

.hb-cart-count[hidden] {
  display: none !important;
}

.hb-burger {
  display: none;
}

.hb-search {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--hb-paper);
  border-bottom: 1px solid var(--hb-line);
  padding: 16px 0 20px;
}

.hb-search.is-open {
  display: block;
}

.hb-search form {
  display: flex;
  gap: 10px;
}

.hb-search input[type="search"] {
  flex: 1;
  border: 1px solid var(--hb-line);
  background: #fff;
  border-radius: 999px;
  padding: 12px 18px;
}

.hb-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  background: var(--hb-forest);
  color: #f7f3ee !important;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hb-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--hb-forest-deep);
  transform: translateY(-1px);
}

.hb-btn--ghost {
  background: transparent;
  color: var(--hb-ink) !important;
  border: 1px solid var(--hb-ink);
}

.hb-btn--ghost:hover {
  background: var(--hb-ink);
  color: #fff !important;
}

/* Hero */
.hb-hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: grid;
  place-items: end start;
  overflow: hidden;
  color: #fff;
}

.hb-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 26, 22, 0.15), rgba(31, 26, 22, 0.58));
}

.hb-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 0 72px;
  max-width: 760px;
}

.hb-hero h1 {
  color: #fff;
  margin-bottom: 18px;
}

.hb-hero p {
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
}

.hb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.hb-section {
  padding: 88px 0;
}

.hb-section--tight {
  padding: 56px 0;
}

.hb-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.hb-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hb-cat {
  position: relative;
  min-height: 340px;
  border-radius: var(--hb-radius);
  overflow: hidden;
  color: #fff;
}

.hb-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.hb-cat:hover img {
  transform: scale(1.06);
}

.hb-cat span,
.hb-cat strong {
  position: relative;
  z-index: 1;
}

.hb-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(20, 16, 12, 0.72));
}

.hb-cat__body {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.hb-cat strong {
  display: block;
  font-family: var(--hb-serif);
  font-size: 2rem;
  font-weight: 500;
}

/* Products */
.hb-products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.products::before,
ul.products::after {
  display: none !important;
}

.hb-card,
ul.products li.product {
  background: var(--hb-paper);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  overflow: hidden;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hb-card:hover,
ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--hb-shadow);
}

.hb-card__media,
ul.products li.product a img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  margin: 0;
  border-radius: 0;
}

.hb-card__body,
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price {
  padding-left: 18px;
  padding-right: 18px;
}

.hb-card__body {
  padding: 18px 18px 22px;
}

.hb-card__cat,
.hb-kicker-sm {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hb-muted);
}

.hb-card h3,
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--hb-serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 6px 0 8px;
  padding: 0 18px;
}

ul.products li.product .price {
  color: var(--hb-ink);
  font-weight: 500;
  display: block;
  padding-bottom: 8px;
}

ul.products li.product .button {
  margin: 8px 18px 18px;
  width: calc(100% - 36px);
}

.hb-price {
  font-weight: 500;
}

.hb-price del {
  color: var(--hb-muted);
  margin-right: 8px;
}

/* Split */
.hb-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hb-split img {
  width: 100%;
  border-radius: 24px;
  min-height: 460px;
  object-fit: cover;
}

.hb-usp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hb-usp article {
  background: var(--hb-paper);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  padding: 24px;
}

.hb-usp h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.hb-newsletter {
  background: var(--hb-forest);
  color: #f6f1ea;
  border-radius: 28px;
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.hb-newsletter h2,
.hb-newsletter p {
  color: inherit;
}

.hb-newsletter form {
  display: flex;
  gap: 10px;
}

.hb-newsletter input[type="email"] {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
}

.hb-instagram {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.hb-instagram a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
}

.hb-instagram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
.hb-footer {
  background: var(--hb-forest-deep);
  color: #e8dcc8;
  padding: 64px 0 28px;
  margin-top: 40px;
}

.hb-footer a:hover {
  color: #fff;
}

.hb-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.hb-footer h3 {
  color: #fff;
  font-size: 1.2rem;
}

.hb-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hb-footer li {
  margin: 8px 0;
}

.hb-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* Page */
.hb-page-hero {
  padding: 64px 0 24px;
}

#content {
  min-height: 40vh;
}

.hb-prose {
  max-width: 760px;
}

.hb-prose p,
.hb-prose li {
  color: var(--hb-muted);
}

/* Woo single */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary {
  width: 100% !important;
  float: none !important;
}

.woocommerce div.product .product_title {
  font-family: var(--hb-serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
}

.woocommerce div.product p.price {
  color: var(--hb-ink);
  font-size: 1.4rem;
}

.woocommerce div.product .woocommerce-product-gallery img {
  border-radius: 20px;
}

.woocommerce .quantity .qty {
  width: 72px;
  border: 1px solid var(--hb-line);
  border-radius: 999px;
  padding: 10px;
  text-align: center;
}

.woocommerce div.product form.cart {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.woocommerce-tabs {
  grid-column: 1 / -1;
  background: var(--hb-paper);
  border-radius: var(--hb-radius);
  padding: 8px 28px 28px;
  margin-top: 24px;
}

.woocommerce-Tabs-panel h2 {
  font-size: 1.6rem;
}

.woocommerce nav.woocommerce-breadcrumb {
  font-size: 0.82rem;
  color: var(--hb-muted);
  margin: 24px 0;
}

/* Color swatches */
.hb-swatches {
  display: flex;
  gap: 10px;
  margin: 12px 0 4px;
}

.hb-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(31, 26, 22, 0.25);
  cursor: pointer;
}

.hb-swatch.is-active {
  box-shadow: 0 0 0 2px var(--hb-ink);
}

.variations select {
  border: 1px solid var(--hb-line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
}

/* Cart / checkout */
.woocommerce-cart table.cart,
.woocommerce-checkout .woocommerce {
  background: var(--hb-paper);
  border-radius: var(--hb-radius);
  padding: 12px 20px 20px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--hb-forest) !important;
  background: var(--hb-paper) !important;
  border-radius: 12px;
}

.woocommerce-error {
  border-top-color: var(--hb-terracotta) !important;
}

/* Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.comment-form input,
.comment-form textarea {
  border: 1px solid var(--hb-line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  width: 100%;
}

/* 404 / search */
.hb-empty {
  text-align: center;
  padding: 80px 0;
}

/* Mobile nav */
.hb-nav-drawer {
  display: none;
}

@media (max-width: 980px) {
  .hb-nav,
  .hb-header__tools .hb-account-label {
    display: none;
  }

  .hb-burger {
    display: grid;
  }

  .hb-header__bar {
    grid-template-columns: auto 1fr auto;
  }

  .hb-cats,
  .hb-products,
  ul.products,
  .hb-usp,
  .hb-split,
  .hb-newsletter,
  .woocommerce div.product,
  .hb-footer__grid,
  .hb-instagram {
    grid-template-columns: 1fr 1fr;
  }

  .hb-hero {
    min-height: 72vh;
  }

  .hb-nav-drawer.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(31, 26, 22, 0.46);
  }

  .hb-nav-drawer__panel {
    margin-left: auto;
    width: min(86vw, 360px);
    height: 100%;
    background: var(--hb-ivory);
    padding: 28px 24px;
  }

  .hb-nav-drawer ul {
    list-style: none;
    padding: 24px 0 0;
    margin: 0;
  }

  .hb-nav-drawer li {
    border-bottom: 1px solid var(--hb-line);
  }

  .hb-nav-drawer a {
    display: block;
    padding: 14px 0;
    font-size: 1.15rem;
  }
}

@media (max-width: 640px) {
  .hb-wrap {
    width: min(var(--hb-max), calc(100% - 28px));
  }

  .hb-cats,
  .hb-products,
  ul.products,
  .hb-usp,
  .hb-split,
  .hb-newsletter,
  .woocommerce div.product,
  .hb-footer__grid,
  .hb-instagram,
  .hb-hero__actions {
    grid-template-columns: 1fr;
  }

  .hb-section {
    padding: 56px 0;
  }

  .hb-hero__content {
    padding-bottom: 40px;
  }

  .hb-hero__actions {
    flex-direction: column;
  }

  .hb-hero__actions .hb-btn {
    width: 100%;
  }

  .hb-newsletter form,
  .woocommerce div.product form.cart {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce div.product form.cart .button {
    width: 100%;
  }

  .hb-sticky-cart {
    position: sticky;
    bottom: 0;
    background: var(--hb-paper);
    padding: 12px 0;
    border-top: 1px solid var(--hb-line);
    z-index: 20;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
