:root {
  --bb-page: #fbf7f3;
  --bb-surface: #fffdfc;
  --bb-surface-elevated: #ffffff;
  --bb-blush: #f7e8e4;
  --bb-beige: #efe3da;
  --bb-cocoa: #4b2a1e;
  --bb-dark-cocoa: #281712;
  --bb-red: #c63e48;
  --bb-red-hover: #b3343d;
  --bb-border: #e6cec5;
  --bb-muted: #7d6a63;
  --bb-available: #3f7f4d;
  --bb-available-bg: #e9f5eb;
  --bb-limited: #a96b1f;
  --bb-limited-bg: #fff1d7;
  --bb-full: #b3343d;
  --bb-full-bg: #fce4e5;
  --bb-shadow: 0 16px 46px rgba(75, 42, 30, 0.1);
  --bb-serif: "Noto Serif Thai", Thonburi, Georgia, serif;
  --bb-sans: "Noto Sans Thai", Thonburi, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bb-page);
  color: var(--bb-dark-cocoa);
  font-family: var(--bb-sans);
}

a {
  text-underline-offset: 0.16em;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--bb-red);
  outline-offset: 3px;
}

.bb-site-header,
header.wp-block-template-part {
  background: rgba(255, 253, 252, 0.94);
  border-bottom: 1px solid rgba(230, 206, 197, 0.75);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.bb-site-header__inner,
header.wp-block-template-part {
  min-height: 76px;
  padding: 12px 24px;
}

/* WordPress can flatten nested group markup in a template part. Keep the
   actual rendered header aligned even when only the title and navigation remain. */
header.wp-block-template-part {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: space-between;
}

header.wp-block-template-part > .wp-block-site-title {
  display: block !important;
  margin: 0;
}

header.wp-block-template-part > .wp-block-navigation {
  margin-left: auto;
}

.bb-wordmark,
.bb-wordmark a {
  color: var(--bb-dark-cocoa);
  font-family: var(--bb-serif);
  font-size: clamp(1.32rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.bb-site-header .wp-block-navigation-item__content {
  color: var(--bb-cocoa);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 8px 10px;
}

.bb-site-footer {
  background: var(--bb-dark-cocoa);
  color: #fdf6f1;
  margin-top: 0;
}

.bb-site-footer__inner {
  min-height: 108px;
  padding: 28px 24px;
}

/* Shared storefront components returned by the ERP plugin. */
.bb-storefront {
  overflow: clip;
}

.bb-shell {
  margin: 0 auto;
  max-width: 1280px;
  padding-left: 24px;
  padding-right: 24px;
}

.bb-page-content {
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(42px, 7vw, 88px) 24px;
}

.bb-page-content > :first-child {
  margin-top: 0;
}

.bb-hero {
  background: radial-gradient(circle at 90% 10%, rgba(247, 232, 228, 0.88), transparent 36%), linear-gradient(111deg, #fbf7f3 0%, #f9eee8 100%);
  min-height: min(720px, calc(100vh - 76px));
  padding: clamp(48px, 7vw, 112px) 0;
}

.bb-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 88px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
}

.bb-eyebrow {
  align-items: center;
  color: var(--bb-red);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bb-eyebrow::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 6px;
  width: 6px;
}

.bb-hero h1,
.bb-section-heading h2 {
  font-family: var(--bb-serif);
  letter-spacing: -0.035em;
}

.bb-hero h1 {
  font-size: clamp(2.45rem, 5.2vw, 4.2rem);
  line-height: 1.14;
  margin: 16px 0;
  max-width: 10ch;
}

.bb-hero__copy {
  color: var(--bb-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  margin: 0;
  max-width: 48ch;
}

.bb-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.bb-button,
.bb-button:visited {
  align-items: center;
  background: var(--bb-red);
  border: 1px solid var(--bb-red);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.96rem;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.bb-button:hover {
  background: var(--bb-red-hover);
  border-color: var(--bb-red-hover);
  color: #fff;
  transform: translateY(-1px);
}

.bb-button--secondary,
.bb-button--secondary:visited {
  background: transparent;
  border-color: var(--bb-cocoa);
  color: var(--bb-cocoa);
}

.bb-button--secondary:hover {
  background: var(--bb-cocoa);
  border-color: var(--bb-cocoa);
  color: #fff;
}

.bb-hero-card {
  background: var(--bb-surface-elevated);
  border: 1px solid rgba(230, 206, 197, 0.9);
  border-radius: 28px;
  box-shadow: var(--bb-shadow);
  overflow: hidden;
  position: relative;
}

.bb-hero-card__image {
  aspect-ratio: 4 / 4.8;
  background:
    linear-gradient(180deg, rgba(61, 36, 27, 0.04), rgba(61, 36, 27, 0.16)),
    url("../images/hero-strawberry-v1.png") center / cover no-repeat;
  display: block;
  object-fit: cover;
  width: 100%;
}

.bb-hero-card__caption {
  align-items: center;
  background: rgba(255, 253, 252, 0.96);
  bottom: 16px;
  display: flex;
  gap: 12px;
  left: 16px;
  padding: 12px 14px;
  position: absolute;
  right: 16px;
}

.bb-hero-card__caption strong,
.bb-hero-card__caption small {
  display: block;
}

.bb-hero-card__caption small {
  color: var(--bb-muted);
  margin-top: 2px;
}

.bb-status-dot {
  background: var(--bb-available);
  border: 3px solid var(--bb-available-bg);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 14px;
  width: 14px;
}

.bb-section {
  padding: clamp(56px, 8vw, 112px) 0;
}

.bb-section--surface {
  background: var(--bb-surface);
}

.bb-section--blush {
  background: var(--bb-blush);
}

.bb-section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.bb-section-heading h2 {
  font-size: clamp(2rem, 3.3vw, 3rem);
  margin: 8px 0 0;
}

.bb-section-heading p {
  color: var(--bb-muted);
  margin: 0;
  max-width: 48ch;
}

.bb-product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bb-product-card {
  background: var(--bb-surface-elevated);
  border: 1px solid var(--bb-border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.bb-product-card:hover {
  box-shadow: var(--bb-shadow);
  transform: translateY(-3px);
}

.bb-product-card__image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d9aa91, #8a4c3a);
  display: block;
  object-fit: cover;
  width: 100%;
}

.bb-product-card:nth-child(2) .bb-product-card__image {
  background: linear-gradient(135deg, #f3d9cf, #d87969);
}

.bb-product-card:nth-child(3) .bb-product-card__image {
  background: linear-gradient(135deg, #e9d8bb, #8e6544);
}

.bb-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px;
}

.bb-product-card__meta {
  color: var(--bb-muted);
  font-size: 0.82rem;
  margin: 0 0 8px;
}

.bb-product-card h3 {
  font-family: var(--bb-serif);
  font-size: 1.35rem;
  margin: 0;
}

.bb-product-card__footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
}

.bb-price {
  color: var(--bb-cocoa);
  font-weight: 800;
}

.bb-pill {
  background: var(--bb-available-bg);
  border-radius: 999px;
  color: var(--bb-available);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 9px;
}

.bb-pill--limited {
  background: var(--bb-limited-bg);
  color: var(--bb-limited);
}

.bb-steps {
  counter-reset: bb-step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bb-step {
  background: rgba(255, 253, 252, 0.76);
  border: 1px solid rgba(230, 206, 197, 0.86);
  border-radius: 18px;
  padding: 24px;
}

.bb-step::before {
  align-items: center;
  background: var(--bb-cocoa);
  border-radius: 999px;
  color: #fff;
  content: counter(bb-step, decimal-leading-zero);
  counter-increment: bb-step;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.bb-step h3 {
  font-family: var(--bb-serif);
  font-size: 1.3rem;
  margin: 18px 0 8px;
}

.bb-step p {
  color: var(--bb-muted);
  margin: 0;
}

.bb-trust-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bb-trust-item {
  border-left: 2px solid var(--bb-red);
  padding: 6px 0 6px 14px;
}

.bb-trust-item strong,
.bb-trust-item span {
  display: block;
}

.bb-trust-item span {
  color: var(--bb-muted);
  font-size: 0.86rem;
  margin-top: 3px;
}

.bb-storefront-empty {
  border: 1px dashed var(--bb-border);
  border-radius: 18px;
  color: var(--bb-muted);
  margin: 48px auto;
  max-width: 720px;
  padding: 32px;
  text-align: center;
}

@media (max-width: 1023px) {
  .bb-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  }

  .bb-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bb-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .bb-site-header__inner,
  header.wp-block-template-part,
  .bb-shell,
  .bb-page-content,
  .bb-site-footer__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bb-site-header__inner,
  header.wp-block-template-part {
    min-height: 64px;
  }

  .bb-hero {
    min-height: auto;
    padding: 42px 0 56px;
  }

  .bb-hero__grid,
  .bb-product-grid,
  .bb-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .bb-hero-card {
    margin: 8px auto 0;
    max-width: 430px;
    width: 100%;
  }

  .bb-hero-card__image {
    aspect-ratio: 4 / 3.4;
  }

  .bb-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .bb-trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bb-button {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
