:root {
  --color-ink: #123024;
  --color-muted: #5f766b;
  --color-line: #dceee4;
  --color-bg: #f5fbf7;
  --color-surface: #ffffff;
  --color-soft: #eaf7ef;
  --color-primary: #2f9b63;
  --color-primary-dark: #1f7649;
  --color-accent: #f0b429;
  --shadow-sm: 0 10px 28px rgb(18 48 36 / 8%);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-bg);
  font-family: Inter, Arial, "Helvetica Neue", Helvetica, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(47 155 99 / 32%);
  outline-offset: 3px;
}

input,
select,
textarea {
  max-width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
}

textarea {
  width: 100%;
}

@keyframes cartBadgePulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.28);
    box-shadow: 0 0 0 8px rgb(240 180 41 / 22%);
  }

  100% {
    transform: scale(1);
    box-shadow: none;
  }
}

@keyframes cartLinkPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-2px);
  }
}

@keyframes cartFlyToHeader {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
  }

  70% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--cart-fly-x)), calc(-50% + var(--cart-fly-y))) scale(0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-link.is-cart-pulsing,
  .cart-count.is-cart-pulsing,
  .cart-fly-dot {
    animation: none !important;
  }
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--color-ink);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #1f8f5f;
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  color: #fff;
  box-shadow: 0 12px 30px rgb(18 48 36 / 12%);
}

.header-top {
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  background: #18764f;
  color: rgb(255 255 255 / 88%);
  font-size: 0.9rem;
  font-weight: 700;
}

.header-top-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding-block: 8px;
}

.header-top a {
  text-decoration: none;
}

.header-announcement {
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  background: #e8fff2;
  color: #14613f;
  font-size: 0.88rem;
  font-weight: 800;
}

.header-announcement-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 30px;
  padding-block: 7px;
  white-space: nowrap;
  animation: bachhoa-announcement-scroll 32s linear infinite;
}

.header-announcement span {
  position: relative;
  padding-left: 18px;
}

.header-announcement span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1f8f5f;
  transform: translateY(-50%);
}

@keyframes bachhoa-announcement-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.header-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgb(255 255 255 / 18%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgb(10 74 48 / 22%);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.12rem;
  line-height: 1.15;
}

.brand small {
  max-width: 190px;
  color: rgb(255 255 255 / 76%);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.header-search {
  display: none;
}

.header-search input {
  width: 100%;
  min-height: 46px;
  border-color: rgb(255 255 255 / 74%);
  border-radius: 999px 0 0 999px;
  padding-inline: 16px;
  background: #fff;
  color: var(--color-ink);
}

.header-search button {
  min-height: 46px;
  border: 1px solid #0f6f49;
  border-radius: 0 999px 999px 0;
  padding-inline: 18px;
  background: #0f6f49;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle,
.cart-link,
.button,
.added_to_cart,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  min-height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.button-primary:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--color-primary-dark);
}

.menu-toggle:hover,
.cart-link:hover {
  border-color: #b9e5c9;
  background: var(--color-soft);
  color: var(--color-primary-dark);
}

.site-header .menu-toggle,
.site-header .cart-link {
  border-color: rgb(255 255 255 / 28%);
  background: rgb(255 255 255 / 14%);
  color: #fff;
}

.site-header .menu-toggle:hover,
.site-header .cart-link:hover {
  border-color: rgb(255 255 255 / 54%);
  background: rgb(255 255 255 / 22%);
  color: #fff;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-icon {
  display: none;
}

.cart-icon {
  display: none;
}

.cart-count {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 0.8rem;
}

.cart-link.is-cart-pulsing {
  animation: cartLinkPulse 520ms ease;
}

.cart-count.is-cart-pulsing {
  animation: cartBadgePulse 640ms ease;
}

.cart-fly-dot {
  position: fixed;
  z-index: 9999;
  width: 18px;
  height: 18px;
  pointer-events: none;
  border: 3px solid rgb(255 255 255 / 92%);
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 10px 24px rgb(18 48 36 / 24%);
  transform: translate(-50%, -50%);
  animation: cartFlyToHeader 700ms cubic-bezier(0.2, 0.85, 0.24, 1) forwards;
}

.primary-nav {
  display: none;
  border-top: 1px solid rgb(255 255 255 / 14%);
  background: #1b8056;
}

.primary-nav.is-open {
  display: block;
}

.primary-nav ul,
.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a,
.site-footer a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  font-weight: 700;
}

.primary-nav a {
  color: rgb(255 255 255 / 90%);
}

.primary-nav a:hover {
  color: #fff;
}

.hero {
  display: grid;
  min-height: min(660px, 88vh);
  align-items: center;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 94%), rgb(234 247 239 / 76%)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Crect width='1600' height='900' fill='%23f5fbf7'/%3E%3Ccircle cx='245' cy='275' r='130' fill='%23bfe8cf' opacity='.75'/%3E%3Ccircle cx='560' cy='620' r='190' fill='%23ffffff' opacity='.95'/%3E%3Ccircle cx='1010' cy='350' r='230' fill='%23d8f2e2' opacity='.9'/%3E%3Ccircle cx='1280' cy='555' r='160' fill='%232f9b63' opacity='.28'/%3E%3Cpath d='M1130 250c95 18 170 75 205 155-110 6-226-9-335-46 19-51 62-89 130-109Z' fill='%23f0b429' opacity='.22'/%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  color: var(--color-ink);
}

.hero-inner {
  padding-block: 72px 96px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-primary-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.98;
}

.hero p:not(.eyebrow) {
  max-width: 54ch;
  margin: 18px 0 28px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.home-hero {
  padding-block: 16px 46px;
}

.home-hero-grid {
  display: grid;
  gap: 18px;
}

.home-hero .container {
  width: min(100% - 32px, 1320px);
}

.home-category-panel,
.home-hero-banner,
.category-card {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.home-category-panel {
  padding: 18px;
}

.home-category-panel h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.home-category-panel ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-category-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 800;
}

.home-category-panel a:hover {
  background: var(--color-soft);
}

.home-category-panel span {
  display: inline-grid;
  min-width: 26px;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--color-soft);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
}

.home-hero-banner {
  display: grid;
  align-content: center;
  min-height: 460px;
  padding: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 96%), rgb(230 248 238 / 80%)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='620' viewBox='0 0 1200 620'%3E%3Crect width='1200' height='620' fill='%23f5fbf7'/%3E%3Ccircle cx='820' cy='250' r='190' fill='%23bfe8cf'/%3E%3Ccircle cx='980' cy='380' r='120' fill='%232f9b63' opacity='.28'/%3E%3Ccircle cx='650' cy='430' r='130' fill='%23fff'/%3E%3Cpath d='M770 150c80 18 135 65 160 130-92 3-175-12-250-44 15-42 45-70 90-86Z' fill='%23f0b429' opacity='.36'/%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
}

.home-hero-banner h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 5.4vw, 4.8rem);
  line-height: 1;
}

.home-hero-banner p:not(.eyebrow) {
  max-width: 58ch;
  margin: 18px 0 26px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-building-banner {
  margin-bottom: 28px;
}

.site-building-banner > div {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #bce8cc;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgb(236 250 241 / 96%), rgb(255 255 255 / 98%)),
    radial-gradient(circle at 88% 20%, rgb(47 155 99 / 16%), transparent 28%);
  box-shadow: var(--shadow-soft);
}

.site-building-banner span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dff5e8;
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-building-banner h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.site-building-banner p {
  max-width: 78ch;
  margin: 12px 0 0;
  color: var(--color-muted);
  font-weight: 700;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.category-card:hover {
  border-color: #b9e5c9;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgb(18 48 36 / 11%);
}

.category-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--color-soft);
  color: var(--color-primary-dark);
  font-weight: 900;
}

.category-card strong {
  color: var(--color-ink);
  line-height: 1.2;
}

.category-card small {
  color: var(--color-muted);
  font-weight: 700;
}

.content-section,
.shop-layout,
.trust-band {
  padding-block: 44px;
}

.content-section:nth-of-type(even) {
  background: linear-gradient(180deg, rgb(234 247 239 / 0%), rgb(234 247 239 / 42%));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading h2,
.prose h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.1;
}

.trust-band {
  display: grid;
  gap: 12px;
}

.trust-band div,
.post-card,
.widget,
.woocommerce ul.products li.product,
.woocommerce div.product {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.trust-band div {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, var(--color-soft));
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band span,
.post-excerpt,
.woocommerce-loop-product__title,
.price,
.widget {
  color: var(--color-muted);
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-card {
  padding: 22px;
}

.post-title {
  margin: 0 0 10px;
}

.prose {
  max-width: 820px;
}

.shop-layout {
  display: grid;
  gap: 24px;
  padding-block: 42px 56px;
}

.shop-layout.no-sidebar {
  max-width: var(--container);
}

.shop-content {
  min-width: 0;
}

.shop-category-strip {
  display: flex;
  gap: 10px;
  clear: both;
  margin: 0 0 24px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.shop-category-strip a {
  flex: 0 0 auto;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--color-surface);
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.shop-category-strip a:hover,
.shop-category-strip a.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.shop-sidebar {
  display: grid;
  gap: 14px;
}

.widget {
  padding: 18px;
}

.widget-title {
  margin: 0 0 12px;
  font-size: 1rem;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  float: none;
  width: auto !important;
  margin: 0;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.woocommerce ul.products li.product:hover {
  border-color: #b9e5c9;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgb(18 48 36 / 11%);
}

.woocommerce ul.products li.product a {
  text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  display: block;
  flex: 1;
}

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  font-size: 0 !important;
}

.woocommerce span.onsale::after,
.woocommerce ul.products li.product .onsale::after {
  content: "Khuyến mãi";
  font-size: 0.78rem;
}

.home-product-section .woocommerce ul.products li.product .onsale {
  display: none;
}

.home-product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.home-product-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--color-ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.home-product-badge.is-sale {
  background: var(--color-accent);
}

.home-product-badge.is-featured {
  background: #d8f3e1;
  color: var(--color-primary-dark);
}

.home-product-badge.is-new {
  background: #e8f2ff;
  color: #255a8f;
}

.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--color-soft);
}

.woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-inline: 12px;
}

.woocommerce-loop-product__title {
  min-height: 2.8em;
  margin-top: 12px;
  color: var(--color-ink);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.woocommerce ul.products li.product .price {
  display: block;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.woocommerce ul.products li.product .price del {
  color: var(--color-muted);
  font-size: 0.88rem;
  opacity: 0.75;
}

.woocommerce ul.products li.product .price ins {
  display: block;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.woocommerce ul.products li.product .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 24px);
  max-width: 220px;
  margin-bottom: 12px;
  white-space: normal;
  text-align: center;
}

.woocommerce ul.products li.product .button.is-adding-to-cart {
  pointer-events: none !important;
  opacity: 0.82 !important;
}

.woocommerce ul.products li.product .button.is-added-to-cart {
  background: var(--color-primary-dark) !important;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 22px;
}

.woocommerce .woocommerce-result-count {
  float: none;
}

.woocommerce .woocommerce-ordering {
  float: none;
}

.woocommerce .woocommerce-products-header {
  clear: both;
  margin-bottom: 20px;
}

.woocommerce .woocommerce-products-header__title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.woocommerce-info,
.woocommerce-error,
.woocommerce-message {
  clear: both;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.woocommerce .woocommerce-ordering select {
  min-height: 42px;
  max-width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 8px 36px 8px 12px;
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
}

.woocommerce div.product,
.commerce-page .wp-block-woocommerce-cart,
.commerce-page .wp-block-woocommerce-checkout,
.commerce-page .woocommerce {
  padding: 18px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none;
  width: 100%;
  min-width: 0;
}

.woocommerce div.product .woocommerce-product-gallery {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--color-soft), var(--color-surface));
  overflow: hidden;
}

.woocommerce div.product .woocommerce-product-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.woocommerce div.product .product_title {
  margin-top: 0;
  font-size: clamp(1.9rem, 5vw, 3.8rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.woocommerce div.product .summary .price {
  color: var(--color-primary-dark);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
}

.woocommerce div.product .summary .price del {
  margin-right: 8px;
  color: var(--color-muted);
  font-size: 0.72em;
  opacity: 0.7;
}

.woocommerce div.product .summary .price ins {
  text-decoration: none;
}

.woocommerce-product-details__short-description,
.product_meta,
.stock {
  color: var(--color-muted);
}

.woocommerce div.product .stock.in-stock {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--color-soft);
  color: var(--color-primary-dark);
  font-weight: 800;
}

.woocommerce div.product .product_meta {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.95rem;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-block: 22px;
}

.woocommerce .quantity .qty {
  width: 86px;
  min-height: 44px;
  text-align: center;
}

.woocommerce div.product form.cart .button {
  min-width: min(100%, 220px);
}

.woocommerce-tabs,
.related.products {
  grid-column: 1 / -1;
  min-width: 0;
  clear: both;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  border-bottom: 1px solid var(--color-line);
  list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 1px solid var(--color-line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--color-soft);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs .panel {
  margin: 0 0 28px;
  border: 1px solid var(--color-line);
  border-top: 0;
  border-radius: 0 8px 8px;
  padding: 20px;
  background: var(--color-surface);
}

.related.products {
  margin-top: 24px;
  width: 100%;
}

.related.products ul.products {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.related.products > h2,
.upsells.products > h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.woocommerce table.shop_table,
.woocommerce form.checkout,
.commerce-page .wp-block-woocommerce-cart,
.commerce-page .wp-block-woocommerce-checkout,
.commerce-page .woocommerce {
  border-radius: 8px;
  background: var(--color-surface);
}

.commerce-page {
  max-width: var(--container);
}

.commerce-page .wp-block-heading,
.commerce-page h1,
.commerce-page h2 {
  line-height: 1.15;
}

.commerce-page table,
.woocommerce table.shop_table {
  width: 100%;
}

.woocommerce table.shop_table {
  border: 1px solid var(--color-line);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--color-line);
  padding: 14px;
  vertical-align: middle;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 0 0 18px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  color: var(--color-ink);
}

.commerce-page .wc-block-cart,
.commerce-page .wc-block-checkout {
  margin: 0;
}

.commerce-page .wp-block-woocommerce-cart,
.commerce-page .wp-block-woocommerce-checkout,
.woocommerce form.checkout {
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}

.commerce-page .wc-block-components-sidebar,
.commerce-page .wc-block-components-main,
.commerce-page .wc-block-components-totals-wrapper,
.commerce-page .wc-block-cart-items,
.commerce-page .wc-block-checkout__form {
  min-width: 0;
}

.commerce-page .wc-block-cart__submit-button,
.commerce-page .wc-block-components-checkout-place-order-button {
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  min-height: 48px;
}

.commerce-page .wc-block-components-text-input input,
.commerce-page .wc-block-components-combobox .wc-block-components-combobox-control input,
.commerce-page .wc-block-components-form .wc-block-components-text-input input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-ink);
}

.woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--color-soft);
  text-decoration: none;
  font-weight: 800;
}

.woocommerce-MyAccount-content {
  min-width: 0;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 18px;
  background: var(--color-surface);
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout-review-order {
  min-width: 0;
}

.bachhoa-hidden-field {
  display: none !important;
}

.woocommerce-checkout form.checkout {
  display: grid;
  gap: 24px;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
  min-width: 0;
}

.woocommerce-checkout #customer_details {
  display: grid;
  gap: 18px;
}

.woocommerce-checkout #order_review_heading {
  margin: 0;
}

.woocommerce-checkout #order_review {
  align-self: start;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 18px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.woocommerce-checkout table.shop_table {
  width: 100%;
  table-layout: fixed;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
  border-color: var(--color-line);
  padding: 14px 12px;
  vertical-align: top;
  overflow-wrap: break-word;
}

.woocommerce-checkout #payment {
  border-radius: 8px;
  background: var(--color-surface);
}

.woocommerce-checkout #payment ul.payment_methods {
  padding: 16px;
  border-bottom-color: var(--color-line);
}

.woocommerce-checkout #payment div.payment_box {
  border-radius: 14px;
  background: var(--color-soft);
  color: var(--color-ink);
}

.woocommerce-checkout .form-row {
  margin-bottom: 14px;
}

.woocommerce-checkout .form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.woocommerce-checkout .form-row .optional {
  color: var(--color-muted);
  font-weight: 600;
}

.woocommerce-checkout #payment {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-soft);
  overflow: hidden;
}

.woocommerce-checkout #payment ul.payment_methods {
  margin: 0;
  padding: 18px;
  list-style: none;
}

.woocommerce-checkout #payment div.form-row {
  padding: 18px;
}

.woocommerce-checkout #payment .place-order {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.woocommerce-checkout #place_order,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce ul.products li.product .button,
.woocommerce-message a.button.wc-forward {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.woocommerce ul.products li.product a.added_to_cart,
.woocommerce-page ul.products li.product a.added_to_cart {
  display: none !important;
}

.woocommerce-checkout #place_order:disabled,
.woocommerce-checkout #place_order.disabled,
.bachhoa-checkout-coupon .button:disabled,
.bachhoa-checkout-coupon .button.disabled {
  background: var(--color-primary) !important;
  color: #fff !important;
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.woocommerce-checkout .blockUI.blockOverlay {
  display: none !important;
  pointer-events: none !important;
}

.woocommerce-cart .cart_totals h2,
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  overflow-wrap: break-word;
}

.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals {
  width: 100% !important;
  float: none !important;
}

.woocommerce-cart .cart_totals {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 18px;
  background: var(--color-surface);
}

.woocommerce-cart .woocommerce {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals {
  min-width: 0;
}

.woocommerce-cart table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  padding: 16px 12px;
  border-color: var(--color-line);
  vertical-align: middle;
}

.woocommerce-cart .cart_item .product-thumbnail img {
  width: 72px;
  max-width: 72px;
  border-radius: 8px;
  background: var(--color-soft);
}

.woocommerce-cart .product-name a {
  color: var(--color-ink);
  font-weight: 800;
}

.woocommerce-cart .quantity .qty {
  max-width: 86px;
  text-align: center;
}

.woocommerce-cart .return-to-shop .button,
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none;
}

.bachhoa-checkout-coupon-row td {
  padding: 0 !important;
}

.bachhoa-checkout-coupon {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--color-line);
  padding: 16px 0 2px;
}

.bachhoa-checkout-coupon label {
  font-weight: 900;
}

.bachhoa-checkout-coupon div {
  display: grid;
  gap: 8px;
}

.bachhoa-checkout-coupon input {
  width: 100%;
}

.bachhoa-checkout-coupon .button {
  width: 100%;
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.bachhoa-coupon-message,
.bachhoa-checkout-terms {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.bachhoa-checkout-terms {
  padding: 0 18px 14px;
}

.bachhoa-checkout-terms a {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.account-auth-switch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 8px 10px 8px 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.account-auth-switch span {
  color: var(--color-muted);
  font-weight: 700;
}

.account-auth-switch button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--color-primary-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.account-auth-switch button.is-active {
  background: var(--color-primary);
  color: #fff;
}

.account-auth-panels {
  display: block;
}

.account-auth-panels .u-column1,
.account-auth-panels .u-column2 {
  display: none;
}

.account-auth-panels .u-column1.is-active,
.account-auth-panels .u-column2.is-active {
  display: block;
}

.account-auth-panels form.login,
.account-auth-panels form.register {
  max-width: 560px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.bachhoa-order-success {
  margin: 0 0 22px;
  border: 1px solid #b9e5c9;
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff, var(--color-soft));
  box-shadow: var(--shadow-sm);
}

.bachhoa-order-success h2 {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
}

.bachhoa-order-success ul {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.bachhoa-tracking-form,
.bachhoa-tracking-result {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.bachhoa-tracking-form {
  display: grid;
  gap: 14px;
  margin-block: 18px;
}

.bachhoa-tracking-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.bachhoa-tracking-form input {
  width: 100%;
}

.bachhoa-tracking-message {
  border: 1px solid #f5c2c7;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff5f5;
  color: #9f1239;
  font-weight: 700;
}

.bachhoa-tracking-result {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

.bachhoa-tracking-summary {
  display: grid;
  gap: 12px;
}

.bachhoa-tracking-summary div {
  border-radius: 8px;
  padding: 14px;
  background: var(--color-soft);
}

.bachhoa-tracking-summary span,
.bachhoa-tracking-summary strong {
  display: block;
}

.bachhoa-tracking-summary span {
  color: var(--color-muted);
  font-weight: 700;
}

.bachhoa-tracking-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bachhoa-tracking-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
}

.bachhoa-tracking-steps span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-line);
  border-radius: 999px;
}

.bachhoa-tracking-steps li.is-done {
  color: var(--color-primary-dark);
}

.bachhoa-tracking-steps li.is-done span {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.bachhoa-tracking-logistics h2 {
  margin-top: 0;
}

.bachhoa-tracking-logistics ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer {
  margin-top: 32px;
  border-top: 1px solid rgb(207 234 221 / 88%);
  background:
    radial-gradient(circle at top left, rgb(150 202 174 / 22%), transparent 34rem),
    linear-gradient(180deg, #2f604b, #254b3c);
  color: #fff;
}

.footer-cta {
  display: grid;
  gap: 16px;
  align-items: center;
  transform: translateY(-28px);
  border: 1px solid rgb(233 255 242 / 20%);
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(135deg, #56ad7c, #3b8060);
  box-shadow: 0 18px 42px rgb(18 48 36 / 18%);
}

.footer-cta span,
.footer-cta strong {
  display: block;
}

.footer-cta span {
  color: rgb(255 255 255 / 78%);
  font-weight: 700;
}

.footer-cta strong {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.footer-cta .button {
  width: fit-content;
  border-color: #fff;
  background: #fff;
  color: var(--color-primary-dark);
}

.footer-grid {
  display: grid;
  gap: 18px;
  padding-block: 10px 34px;
}

.footer-brand p {
  max-width: 42ch;
  color: rgb(255 255 255 / 76%);
}

.footer-column {
  min-width: 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #f7fff9;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-accordion-toggle {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: default;
}

.footer-accordion-icon {
  display: none;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.footer-accordion-panel {
  overflow: visible;
}

.site-footer ul {
  color: rgb(247 255 250 / 78%);
}

.footer-column ul {
  gap: 3px;
}

.footer-column a,
.footer-column li {
  color: rgb(247 255 250 / 84%);
}

.footer-column a {
  border-radius: 8px;
  padding: 6px 0;
  font-weight: 650;
}

.footer-column a:hover {
  color: #d8f3e1;
}

.footer-contact li {
  padding: 6px 0;
}

.footer-contact span {
  color: rgb(225 246 235 / 72%);
}

.footer-contact strong {
  color: #fff;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.footer-socials a {
  border: 1px solid rgb(225 246 235 / 26%);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgb(225 246 235 / 11%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-socials a:hover {
  border-color: rgb(216 243 225 / 58%);
  background: rgb(216 243 225 / 16%);
}

.bachhoa-social-login {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.bachhoa-social-login span {
  font-weight: 800;
}

.woocommerce-cart .coupon,
.woocommerce-cart .cart-collaterals .coupon,
.woocommerce-cart [name="coupon_code"],
.woocommerce-cart [name="apply_coupon"] {
  display: none !important;
}

.floating-contact {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  gap: 10px;
}

.floating-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  padding: 8px 13px 8px 9px;
  background: #1f8f5f;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgb(18 48 36 / 20%);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.floating-contact__item span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 18%);
  font-weight: 900;
}

.floating-contact__item strong {
  font-size: 0.9rem;
  line-height: 1;
}

.floating-contact__item--zalo {
  background: #0b8fda;
}

.floating-contact__item:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgb(18 48 36 / 26%);
}

.woocommerce-cart .floating-contact,
.woocommerce-checkout .floating-contact {
  bottom: max(86px, env(safe-area-inset-bottom));
}

.site-footer a:hover {
  color: #d8f3e1;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.payment-badges span {
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgb(255 255 255 / 9%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgb(247 255 250 / 14%);
  padding-block: 18px;
  color: rgb(247 255 250 / 74%);
  font-size: 0.9rem;
}

.bachhoa-bank-transfer-box {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #f7fff9;
  box-shadow: var(--shadow-soft);
}

.bachhoa-bank-transfer-box h2 {
  margin-top: 0;
}

.bachhoa-bank-transfer-box code {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-900);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.bachhoa-vietqr-box {
  margin: 24px 0;
  border: 1px solid rgb(185 229 201 / 90%);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 26px);
  background:
    radial-gradient(circle at top right, rgb(47 158 112 / 11%), transparent 18rem),
    #f7fff9;
  box-shadow: var(--shadow-soft);
}

.bachhoa-vietqr-content {
  display: grid;
  gap: 20px;
  align-items: start;
}

.bachhoa-vietqr-eyebrow {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bachhoa-vietqr-box h2 {
  margin: 0 0 8px;
}

.bachhoa-vietqr-details {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.bachhoa-vietqr-details div {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 8px 14px;
  border-bottom: 1px solid rgb(207 234 221 / 70%);
  padding-bottom: 10px;
}

.bachhoa-vietqr-details dt {
  color: var(--muted);
  font-weight: 800;
}

.bachhoa-vietqr-details dd {
  margin: 0;
  color: var(--color-ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.bachhoa-vietqr-details code {
  display: inline-block;
  border-radius: 10px;
  padding: 5px 8px;
  background: #e7f6ed;
  color: var(--color-primary-dark);
  font-size: 0.95em;
  white-space: normal;
}

.bachhoa-vietqr-image-wrap {
  display: grid;
  justify-items: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.bachhoa-vietqr-image {
  width: min(100%, 260px);
  height: auto;
}

.bachhoa-vietqr-note {
  margin: 18px 0 0;
  border-left: 4px solid var(--color-primary);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgb(231 246 237 / 72%);
  color: var(--color-ink);
  font-weight: 700;
}

.bachhoa-bank-transfer-qr {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: #fff;
}

.bachhoa-bank-transfer-qr img {
  width: min(100%, 280px);
  height: auto;
  border-radius: 14px;
}

.bachhoa-bank-transfer-qr figcaption {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

@media (min-width: 760px) {
  .header-top-inner {
    justify-content: space-between;
  }

  .header-main {
    grid-template-columns: auto minmax(280px, 1fr) auto;
  }

  .header-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav {
    display: block;
  }

  .primary-nav ul {
    flex-direction: row;
    justify-content: flex-start;
    gap: 22px;
  }

  .trust-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-hero-grid {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: stretch;
  }

  .category-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .woocommerce div.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 34px;
    padding: 28px;
    align-items: start;
  }

  .shop-layout.has-sidebar {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }

  .woocommerce-checkout form.checkout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
    align-items: start;
  }

  .woocommerce-checkout #customer_details {
    grid-column: 1;
  }

  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    grid-column: 2;
  }

  .woocommerce-checkout #order_review_heading {
    grid-row: 1;
  }

  .woocommerce-checkout #order_review {
    grid-row: 1 / span 2;
    margin-top: 42px;
    position: sticky;
    top: 148px;
  }

  .bachhoa-vietqr-content {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-footer ul {
    flex-direction: column;
    gap: 3px;
  }
}

@media (min-width: 1080px) {
  .home-hero-grid {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 759px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  body {
    font-size: 15px;
  }

  .header-top {
    display: none;
  }

  .header-announcement {
    font-size: 0.78rem;
  }

  .header-announcement-track {
    gap: 22px;
    padding-block: 5px;
    animation-duration: 24s;
  }

  .header-announcement span {
    padding-left: 14px;
  }

  .header-announcement span::before {
    width: 6px;
    height: 6px;
  }

  .header-main {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding-block: 10px;
  }

  .brand {
    order: 1;
  }

  .cart-link {
    order: 2;
  }

  .menu-toggle {
    order: 3;
  }

  .brand small {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    overflow: hidden;
    max-width: clamp(9.4rem, 46vw, 13.6rem);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .cart-link,
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 9px 11px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .menu-icon {
    display: block;
    font-size: 1.34rem;
    line-height: 1;
  }

  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .cart-link {
    position: relative;
    justify-content: center;
    gap: 0;
  }

  .cart-icon {
    display: inline-grid;
    font-size: 1.1rem;
    line-height: 1;
  }

  .cart-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #1f8f5f;
    font-size: 0.72rem;
    font-weight: 900;
  }

  .primary-nav.is-open {
    padding-block: 10px;
  }

  .hero {
    min-height: auto;
  }

  .home-hero {
    padding-block: 10px 28px;
  }

  .home-category-panel {
    display: none;
  }

  .home-hero-banner {
    min-height: 278px;
    align-content: center;
    padding: 24px 18px;
    background:
      linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(235 248 241 / 88%)),
      radial-gradient(circle at 88% 18%, rgb(47 155 99 / 15%), transparent 38%),
      radial-gradient(circle at 0 100%, rgb(240 180 41 / 13%), transparent 42%);
  }

  .home-hero-banner .eyebrow {
    margin-bottom: 8px;
    font-size: 0.78rem;
  }

  .home-hero-banner h1 {
    max-width: 13.5em;
    font-size: clamp(1.86rem, 9.1vw, 2.45rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
  }

  .home-hero-banner p:not(.eyebrow) {
    max-width: 32ch;
    margin: 12px 0 18px;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .home-hero-banner .button {
    min-height: 46px;
    padding-inline: 18px;
  }

  .hero-inner {
    padding-block: 52px 64px;
  }

  .woocommerce-loop-product__title {
    font-size: 0.94rem;
  }

  .woocommerce ul.products li.product .button {
    max-width: none;
  }

  .woocommerce div.product .woocommerce-tabs .panel {
    padding: 16px;
  }

  .bachhoa-vietqr-details div {
    grid-template-columns: 1fr;
  }

  .commerce-page .wp-block-woocommerce-cart,
  .commerce-page .wp-block-woocommerce-checkout,
  .commerce-page .woocommerce {
    padding: 14px;
  }

  .woocommerce-checkout #order_review,
  .account-auth-panels form.login,
  .account-auth-panels form.register {
    padding: 16px;
  }

  .account-auth-switch {
    width: 100%;
    border-radius: 8px;
  }

  .footer-cta {
    transform: translateY(-18px);
  }

  .footer-grid {
    gap: 10px;
  }

  .footer-column {
    border-bottom: 1px solid rgb(255 255 255 / 13%);
    padding-bottom: 0;
  }

  .footer-column:last-child {
    border-bottom: 0;
  }

  .site-footer h2 {
    margin: 0;
  }

  .footer-accordion-toggle {
    min-height: 48px;
    padding: 14px 0;
    cursor: pointer;
  }

  .footer-accordion-toggle:focus-visible {
    outline: 2px solid rgb(255 255 255 / 76%);
    outline-offset: 4px;
    border-radius: 8px;
  }

  .footer-accordion-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    background: rgb(255 255 255 / 8%);
    font-size: 1.1rem;
    line-height: 1;
  }

  .footer-column.is-open .footer-accordion-icon {
    transform: rotate(180deg);
  }

  .footer-accordion-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
  }

  .footer-column.is-open .footer-accordion-panel {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 14px;
  }

  .footer-column a,
  .footer-contact li {
    padding-block: 8px;
  }

  .footer-bottom {
    display: grid;
  }

  .floating-contact {
    right: 12px;
    bottom: 14px;
    gap: 8px;
  }

  .woocommerce-cart .floating-contact,
  .woocommerce-checkout .floating-contact {
    bottom: max(76px, env(safe-area-inset-bottom));
  }

  .floating-contact__item {
    min-height: 44px;
    padding: 7px;
  }

  .floating-contact__item strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 900px) {
  .woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
  }
}
