/* Tuấn Mộc controls: the outlined cart pill is the reference for shape, border and icons. */
:root {
  --tm-control-ink: #315740;
  --tm-control-green: #356344;
  --tm-control-border: #cfdfca;
  --tm-control-hover: #edf5e9;
  --tm-control-height: 46px;
  --tm-control-font: 14px;
  --tm-control-pad: 20px;
  --tm-control-shadow: 0 3px 12px rgba(34, 66, 42, .045);
}

/* Keep the four header actions aligned at every width. */
.site-header .header-actions { gap: 8px; }
.site-header .header-actions :is(.search-trigger, .account-trigger, .cart-trigger, .menu-toggle) {
  box-sizing: border-box;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid var(--tm-control-border);
  border-radius: 999px;
  background: #fff;
  color: var(--tm-control-ink);
  box-shadow: var(--tm-control-shadow);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.site-header .header-actions .search-trigger { display: grid; place-items: center; width: 42px; padding: 0; }
.site-header .header-actions .menu-toggle { display: none; place-items: center; width: 42px; padding: 0; }
.site-header .header-actions :is(.account-trigger, .cart-trigger) { display: inline-flex; gap: 8px; padding: 0 14px; }
.site-header .header-actions :is(.search-trigger, .account-trigger, .cart-trigger, .menu-toggle):hover {
  background: var(--tm-control-hover);
  border-color: #a9c5a5;
  box-shadow: 0 5px 16px rgba(34, 66, 42, .075);
}
.site-header .header-actions :is(.search-trigger, .account-trigger, .cart-trigger, .menu-toggle):focus-visible {
  outline: 2px solid var(--tm-control-green);
  outline-offset: 3px;
}
.site-header .header-actions :is(.search-trigger, .account-trigger, .cart-trigger, .menu-toggle) svg {
  display: block;
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-header .header-actions .menu-toggle { flex-direction: row; }
.site-header .header-actions .cart-count { width: 20px; height: 20px; font-size: 10px; }

/* Filled actions and outlined actions use the same type scale and silhouette. */
.button,
.partner-cta,
.partner-popup-submit,
.tm-account-button,
.tm-account-guest input[type="submit"],
.review-form-wrap .submit,
.tm-search-form button {
  box-sizing: border-box;
  min-height: var(--tm-control-height);
  border-radius: 999px;
  padding-inline: var(--tm-control-pad);
  font-family: Montserrat, Arial, sans-serif;
  font-size: var(--tm-control-font);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  box-shadow: var(--tm-control-shadow);
}
.button { gap: 14px; }
.button-primary,
.partner-cta,
.partner-popup-submit,
.tm-account-button:not(.secondary),
.tm-account-guest input[type="submit"],
.review-form-wrap .submit,
.tm-search-form button {
  border: 1px solid var(--tm-control-green);
  background: var(--tm-control-green);
  color: #fff;
}
.button-primary:hover,
.partner-cta:hover,
.partner-popup-submit:hover,
.tm-account-button:not(.secondary):hover,
.tm-account-guest input[type="submit"]:hover,
.review-form-wrap .submit:hover,
.tm-search-form button:hover { background: #284f36; color: #fff; }
.button-outline,
.tm-account-button.secondary { border: 1px solid var(--tm-control-border); background: #fff; color: var(--tm-control-ink); }
.button-outline:hover,
.tm-account-button.secondary:hover { background: var(--tm-control-hover); border-color: #a9c5a5; }
.button :is(svg, span), .partner-cta svg, .tm-account-button svg { flex: none; }

/* Small, repeated controls remain quiet beside the product photography. */
.add-button,
.tm-catalog .page-numbers,
.tm-affiliate-item button,
.partner-product-link button,
.tm-account-file label,
.review-form-actions .review-file-button,
.file-download,
.review-reply-controls button,
.wood-option,
.size-option,
.tm-catalog-filters a,
.rating-options span {
  border-radius: 999px;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
}
.add-button,
.tm-affiliate-item button,
.partner-product-link button,
.tm-account-file label,
.review-form-actions .review-file-button,
.file-download,
.review-reply-controls button {
  min-height: 38px;
  padding-inline: 15px;
  border: 1px solid var(--tm-control-border);
  background: #fff;
  color: var(--tm-control-ink);
  box-shadow: var(--tm-control-shadow);
}
.add-button:hover,
.tm-affiliate-item button:hover,
.partner-product-link button:hover,
.tm-account-file label:hover,
.review-form-actions .review-file-button:hover,
.file-download:hover,
.review-reply-controls button:hover { background: var(--tm-control-hover); border-color: #a9c5a5; }
.review-reply-controls .review-reply-submit { background: var(--tm-control-green); border-color: var(--tm-control-green); color: #fff; }
.single-variant .wood-option, .single-variant .size-option { min-height: 44px; }
.single-purchase .qty-control, .dialog-actions .qty-control { border-radius: 999px; }

/* The footer contact action uses the same outlined treatment as the cart. */
.site-footer .footer-hotline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  min-height: var(--tm-control-height);
  padding: 0 var(--tm-control-pad);
  border: 1px solid var(--tm-control-border);
  border-radius: 999px;
  background: #fff;
  color: var(--tm-control-ink);
  box-shadow: var(--tm-control-shadow);
  font-size: var(--tm-control-font);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.site-footer .footer-hotline:hover { background: var(--tm-control-hover); border-color: #a9c5a5; color: var(--tm-control-ink); }
.site-footer .footer-hotline svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer .footer-hotline span { margin: 0; }
.tm-google-button-compact { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-google-button-compact > span { color: var(--tm-control-ink); font-size: 12px; font-weight: 700; line-height: 1.35; }

@media (max-width: 980px) {
  .site-header .header-actions .menu-toggle { display: grid; }
}

@media (min-width: 1600px) {
  :root { --tm-control-height: 50px; --tm-control-font: 15px; --tm-control-pad: 24px; }
  .site-header .header-actions :is(.search-trigger, .account-trigger, .cart-trigger) { height: 46px; min-height: 46px; }
  .site-header .header-actions .search-trigger { width: 46px; }
  .site-header .header-actions :is(.account-trigger, .cart-trigger) { padding-inline: 17px; font-size: 14px; }
}
@media (min-width: 761px) and (max-width: 1199px) {
  :root { --tm-control-height: 43px; --tm-control-font: 13px; --tm-control-pad: 17px; }
  .site-header .header-actions :is(.search-trigger, .account-trigger, .cart-trigger, .menu-toggle) { height: 39px; min-height: 39px; }
  .site-header .header-actions :is(.search-trigger, .menu-toggle) { width: 39px; }
  .site-header .header-actions :is(.account-trigger, .cart-trigger) { padding-inline: 11px; font-size: 12px; }
}
@media (max-width: 760px) {
  :root { --tm-control-height: 43px; --tm-control-font: 13px; --tm-control-pad: 16px; }
  .site-header .header-actions { gap: 6px; }
  .site-header .header-actions :is(.search-trigger, .account-trigger, .cart-trigger, .menu-toggle) {
    height: 40px; min-height: 40px; border-radius: 11px; padding: 0;
  }
  .site-header .header-actions :is(.search-trigger, .account-trigger, .menu-toggle) { width: 40px; min-width: 40px; }
  .site-header .header-actions .cart-trigger { min-width: 61px; padding-inline: 8px; gap: 4px; }
  .site-header .header-actions :is(.account-trigger, .cart-trigger) > span { display: none; }
  .site-header .header-actions .cart-count { width: 17px; height: 17px; font-size: 9px; }
  .site-footer .footer-hotline { min-height: 44px; }
}
@media (max-width: 480px) {
  :root { --tm-control-height: 41px; --tm-control-font: 13px; --tm-control-pad: 14px; }
  .site-header .header-actions :is(.search-trigger, .account-trigger, .cart-trigger, .menu-toggle) { height: 38px; min-height: 38px; }
  .site-header .header-actions :is(.search-trigger, .account-trigger, .menu-toggle) { width: 38px; min-width: 38px; }
  .site-header .header-actions .cart-trigger { min-width: 58px; }
  .site-header .header-actions :is(.search-trigger, .account-trigger, .cart-trigger, .menu-toggle) svg { width: 18px; height: 18px; }
  .site-footer .footer-hotline { min-height: 43px; font-size: 12px; }
  .site-footer .footer-hotline svg { width: 16px; height: 16px; }
  .add-button { font-size: 11px; padding-inline: 11px; }
}
@media (max-width: 340px) {
  .tm-catalog-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-catalog-heading, .tm-catalog-search-block { min-width: 0; }
  .site-header .header-row.container { width: calc(100% - 20px); gap: 5px; }
  .site-header .brand { gap: 5px; }
  .site-header .brand-mark { width: 27px; height: 27px; }
  .site-header .brand strong { font-size: 16px; }
  .site-header .brand small { font-size: 6px; letter-spacing: .08em; }
  .site-header .header-actions { gap: 4px; }
  .site-header .header-actions :is(.search-trigger, .account-trigger, .cart-trigger, .menu-toggle) { height: 36px; min-height: 36px; }
  .site-header .header-actions :is(.search-trigger, .account-trigger, .menu-toggle) { width: 36px; min-width: 36px; }
  .site-header .header-actions .cart-trigger { min-width: 54px; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .header-actions :is(.search-trigger, .account-trigger, .cart-trigger, .menu-toggle) { transition: none; }
}
