:root {
  --xgbt-sf-ink: #392820;
  --xgbt-sf-accent: #964427;
  --xgbt-sf-warm: #fff8f0;
  --xgbt-sf-line: #e4d1c3;
}

.xgbt-sf-filters,
.xgbt-sf-commerce-title,
.xgbt-sf-order-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--xgbt-sf-line);
  border-radius: 12px;
  background: var(--xgbt-sf-warm);
  color: var(--xgbt-sf-ink);
}

.xgbt-sf-filters {
  align-items: flex-end;
}

.xgbt-sf-filters label {
  margin: 0;
  min-width: 0;
  color: inherit;
  font-size: 13px;
}

.xgbt-sf-filters :is(input, select) {
  display: block;
  height: 42px;
  margin: 4px 0 0;
  border: 1px solid #d7c0af;
  border-radius: 7px;
  background-color: #fff;
  font-size: 14px;
}

.xgbt-sf-filters :is(button, .xgbt-sf-reset) {
  margin: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
}

.xgbt-sf-filters button {
  border: 1px solid var(--xgbt-sf-accent);
  border-radius: 8px;
  background: var(--xgbt-sf-accent);
  color: #fff;
}

.xgbt-sf-reset,
.xgbt-sf-order-help a,
.xgbt-sf-commerce-title a {
  color: var(--xgbt-sf-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.xgbt-sf-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid var(--xgbt-sf-line);
  border-radius: 7px;
  background: var(--xgbt-sf-warm);
  color: var(--xgbt-sf-accent);
  font-size: 13px;
  font-weight: 700;
}

.xgbt-sf-card-link:hover,
.xgbt-sf-home-all:hover {
  border-color: var(--xgbt-sf-accent);
  background: var(--xgbt-sf-accent);
  color: #fff;
}

.xgbt-sf-commerce-title {
  justify-content: space-between;
}

.xgbt-sf-commerce-title h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
}

.xgbt-sf-order-help {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 14px;
}

.xgbt-sf-checkout #main #ez-toc-container {
  display: none;
}

.xgbt-sf-checkout form.checkout :is(input.input-text, textarea.input-text) {
  border-radius: 8px;
  box-shadow: none;
}

.xgbt-sf-checkout #order_review_heading,
.xgbt-sf-checkout #main #place_order,
.woocommerce-cart #main .checkout-button {
  text-transform: none;
  letter-spacing: normal;
}

#xgbt-chon-mua {
  scroll-margin-top: 92px;
}

.xgbt-sf-pairings {
  margin: 24px auto 36px;
}

.xgbt-sf-pairings h2 {
  margin-bottom: 16px;
  color: var(--xgbt-sf-ink);
  font-size: clamp(21px, 3vw, 29px);
}

.xgbt-sf-home-news > .section-content > .row {
  width: calc(100% - 30px);
  max-width: 1280px;
  margin: 25px auto 38px;
  padding: clamp(14px, 2.3vw, 30px);
  border: 1px solid var(--xgbt-sf-line);
  border-radius: 16px;
  background: var(--xgbt-sf-warm);
}

.xgbt-sf-home-news .xgbt-sf-news-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 15px;
}

.xgbt-sf-news-head h2 {
  flex: 1 1 0;
  min-width: min(150px, 100%);
  width: auto;
  margin: 0;
  color: var(--xgbt-sf-ink);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
  scroll-margin-top: 90px;
}

.xgbt-sf-news-head > p {
  margin: 0;
}

.xgbt-sf-home-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 6px 13px;
  border: 1px solid #d7b5a1;
  border-radius: 8px;
  background: #fff;
  color: var(--xgbt-sf-accent);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.xgbt-sf-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 12px;
}

.xgbt-sf-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--xgbt-sf-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.xgbt-sf-home-news .col-inner > .row.xgbt-sf-home-posts,
body.xgbt-sf-knowledge .blog-wrapper .row:has(> .post-item) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.xgbt-sf-home-news .col-inner > .row.xgbt-sf-home-posts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.xgbt-sf-home-posts::after,
body.xgbt-sf-knowledge .blog-wrapper .row:has(> .post-item)::after {
  content: none;
}

:is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .post-item {
  max-width: none;
  min-width: 0;
  padding: 0;
}

:is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .post-item > .col-inner,
:is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .box-blog-post {
  height: 100%;
}

:is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .box-blog-post {
  overflow: hidden;
  border: 1px solid var(--xgbt-sf-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

:is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .box-blog-post:hover {
  border-color: #c88662;
}

:is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .box-blog-post .box-text {
  position: relative;
  padding: 12px 14px;
  text-align: left;
}

:is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .post-title {
  margin: 0;
  color: var(--xgbt-sf-ink);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

:is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .is-divider {
  display: none;
}

.xgbt-sf-home-news .from_the_blog_excerpt {
  margin-top: 6px;
  color: #66574e;
  font-size: 13px;
  line-height: 1.5;
}

.xgbt-sf-knowledge .blog-wrapper .page-numbers :is(a,span) {
  min-width: 36px;
  min-height: 36px;
}

@media (max-width: 1023px) {
  body.xgbt-sf-knowledge .blog-wrapper .row:has(> .post-item) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 849px) {
  #masthead .show-for-medium.header-nav .cart-item,
  #masthead .show-for-medium .header-nav .cart-item {
    margin: 0 3px;
  }

  #masthead .xgbt-mobile-search-trigger {
    margin-inline: 3px;
  }

  .single-product .custom-nav-list:has(.xgbt-sf-buy-item) > .custom-nav-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .single-product .custom-nav-list .xgbt-sf-buy-link {
    color: var(--xgbt-sf-accent);
    font-weight: 800;
  }
}

@media (max-width: 767px) {
  .home #main .xg-hero-v13.xgbt-sf-compact-hero {
    padding: 17px 14px 12px !important;
  }

  .home #main .xg-hero-v13.xgbt-sf-compact-hero .xg-wrap {
    gap: 10px !important;
  }

  .home #main .xg-hero-v13.xgbt-sf-compact-hero .hero-title {
    margin-bottom: 6px !important;
    font-size: clamp(26px, 8vw, 37px) !important;
  }

  .home #main .xg-hero-v13.xgbt-sf-compact-hero .hero-keyline {
    margin-bottom: 10px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .home #main .xg-hero-v13.xgbt-sf-compact-hero .hero-buttons {
    display: grid !important;
    grid-template-columns: 1.15fr 1fr;
    gap: 7px !important;
    margin: 0 0 6px !important;
  }

  .home #main .xg-hero-v13.xgbt-sf-compact-hero .hero-btn {
    min-height: 42px !important;
    margin: 0 !important;
    padding: 6px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
  }

  .xgbt-sf-hero-details {
    margin: 0;
    color: var(--xgbt-sf-ink);
    font-size: 13px;
  }

  .xgbt-sf-hero-details summary {
    width: max-content;
    max-width: 100%;
    padding: 5px 2px;
    color: var(--xgbt-sf-accent);
    font-weight: 700;
    cursor: pointer;
  }

  .home #main .xg-hero-v13 .xgbt-sf-hero-details .hero-description {
    display: block !important;
    margin: 5px 0 !important;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: unset;
  }

  .home #main .xg-hero-v13.xgbt-sf-compact-hero .xg-slider {
    margin-top: 0 !important;
  }

  .home #main .xg-hero-v13.xgbt-sf-compact-hero .xg-stage {
    height: clamp(190px, 57vw, 260px) !important;
  }

  .home #main .xg-hero-v13.xgbt-sf-compact-hero .xg-slide {
    height: 100% !important;
  }

  .home #main section:has(.xgbt8-shell) {
    padding-block: 14px !important;
  }

  .home #main .xgbt8-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .home #main .xgbt8-card {
    border-radius: 10px !important;
  }

  .home #main .xgbt8-title {
    min-height: 35px !important;
    padding: 3px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .xgbt-sf-catalog .shop-container > .custom-top-content {
    margin-bottom: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .xgbt-sf-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    padding: 10px;
    gap: 6px 8px;
    margin-bottom: 12px;
  }

  .xgbt-sf-filters :is(input, select) {
    min-width: 0;
    padding-inline: 7px;
    font-size: 13px;
  }

  .xgbt-sf-filters button {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .xgbt-sf-filters:has(.xgbt-sf-reset) button {
    grid-column: auto;
  }

  .xgbt-sf-reset {
    justify-content: center;
  }

  .xgbt-sf-catalog .shop-container .product-small .box-text {
    padding-inline: 8px;
  }

  .xgbt-sf-commerce-title,
  .xgbt-sf-order-help {
    padding: 12px;
    gap: 6px 10px;
  }

  .xgbt-sf-commerce-title a { font-size: 13px; }

  .xgbt-sf-checkout form.checkout :is(.woocommerce-billing-fields, #order_review),
  .woocommerce-cart #main .cart_totals {
    padding: 13px;
    border: 1px solid var(--xgbt-sf-line);
    border-radius: 12px;
    background: #fffdfa;
  }

  .xgbt-sf-checkout form.checkout :is(input.input-text, textarea.input-text) {
    min-height: 44px;
    font-size: 16px;
  }

  .xgbt-sf-checkout #main #place_order,
  .woocommerce-cart #main .checkout-button {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
  }

  .single-product #final_quick_order_modal .quick-order-content {
    max-height: calc(100dvh - 28px);
  }

  .xgbt-sf-home-news .col-inner > .row.xgbt-sf-home-posts,
  body.xgbt-sf-knowledge .blog-wrapper .row:has(> .post-item) {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  :is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .box-blog-post {
    display: flex;
    align-items: stretch;
  }

  :is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .box-image {
    flex: 0 0 clamp(78px, 24vw, 115px);
    width: auto;
    margin: 0;
  }

  :is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .box-image .image-cover {
    min-height: 100%;
    aspect-ratio: 1;
    padding-top: 0 !important;
  }

  :is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .box-blog-post .box-text {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 80px;
    padding: 9px;
  }

  :is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .post-title {
    font-size: 14px;
  }

  :is(.xgbt-sf-home-news, .xgbt-sf-knowledge .blog-wrapper) .from_the_blog_excerpt {
    display: none;
  }

  .xgbt-sf-knowledge .xgbt-archive-network .xgbt-archive-network-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .xgbt-sf-knowledge .xgbt-archive-network .xgbt-archive-network-card {
    min-height: auto;
    padding: 10px;
  }

  .xgbt-sf-knowledge .xgbt-archive-network-number,
  .xgbt-sf-knowledge .xgbt-archive-network-arrow {
    display: none;
  }

  .xgbt-sf-knowledge .xgbt-archive-network-copy small {
    margin-top: 3px;
    font-size: 11px;
  }
}

@media (max-width: 849px) {
  #masthead #logo a img {
    max-width: clamp(126px, 41vw, 178px) !important;
    height: auto !important;
  }

  #masthead .flex-right.show-for-medium {
    position: absolute;
    top: 50%;
    right: 8px;
    min-width: 0;
    transform: translateY(-50%);
  }

  #masthead .flex-right.show-for-medium .cart-item .header-cart-link {
    min-width: 37px;
    min-height: 37px;
    margin: 0;
    padding: 0;
  }

  #masthead .xgbt-mobile-search-trigger {
    right: 53px;
    width: 38px;
    height: 38px;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .home #main .xg-hero-v13.xgbt-sf-compact-hero .hero-buttons > .hero-btn {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .home #main section:has(.xgbt8-shell) .xgbt8-grid {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }

  .home #main section:has(.xgbt8-shell) .xgbt8-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .xgbt-sf-category-details {
    padding-bottom: 2px;
    color: var(--xgbt-sf-ink);
    text-align: left;
  }

  .xgbt-sf-category-details summary {
    width: fit-content;
    margin: 2px 0 4px;
    color: var(--xgbt-sf-accent);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
}

.single-product main .add-to-cart-container .single_add_to_cart_button.final-styled {
  background: var(--xgbt-sf-accent) !important;
}

.single-product main .add-to-cart-container .quick-order-btn-primary {
  border: 1px solid #c69074 !important;
  background: var(--xgbt-sf-warm) !important;
  color: var(--xgbt-sf-accent) !important;
}

@media (max-width: 849px) {
  #masthead .header-inner {
    position: relative;
  }

  #masthead .header-inner > #logo {
    position: absolute !important;
    top: 50%;
    left: 50%;
    width: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%);
  }

  #masthead .flex-right.show-for-medium .cart-item .header-cart-link {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
  }
}

@media (max-width: 767px) {
  .home #main .xg-hero-v13.xgbt-sf-compact-hero .hero-content .hero-buttons {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
  }
}

.xgbt-sf-commerce-title h1 {
  flex: 1 1 90px;
  width: auto;
}

.single-product #final_quick_order_modal .quick-order-header {
  background: var(--xgbt-sf-accent);
}

.single-product #final_quick_order_modal .popup-variation-radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.single-product #final_quick_order_modal .popup-variation-radios label {
  display: grid;
  grid-auto-rows: min-content;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  margin: 0;
  padding-inline: 6px;
}

@media (max-width: 849px) {
  #masthead .header-inner > .flex-left.show-for-medium,
  #masthead .header-inner > .flex-right.show-for-medium {
    z-index: 11;
  }

  #masthead .header-inner > .flex-left.show-for-medium {
    position: absolute;
    top: 50%;
    left: 8px;
    width: auto;
    min-width: 0;
    transform: translateY(-50%);
  }

  #masthead .header-inner > .flex-left.show-for-medium .mobile-nav {
    width: auto;
  }
}

@media (max-width: 849px) {
  #masthead .header-inner .mobile-nav .nav-icon a[aria-label="Menu"] {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--xgbt-sf-line);
    border-radius: 50%;
    background: #fffdfa;
    color: var(--xgbt-sf-ink);
  }

  #masthead .mobile-nav a[aria-label="Menu"] .icon-menu {
    position: relative;
    display: block;
    width: 16px !important;
    height: 12px !important;
    min-width: 0 !important;
    margin: 0;
    padding: 0 !important;
    border-block: 2px solid currentColor;
    background: none !important;
  }

  #masthead .mobile-nav a[aria-label="Menu"] .icon-menu::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin: 0;
    transform: translateY(-50%);
    background: currentColor;
    content: "";
  }
}

/* Purchase controls inside the home shelves and product archive cards. */
body:is(.home, .xgbt-sf-catalog) .product-small.box .box-text:has(> .xgbt-card-actions) > .price-wrapper {
  margin-top: auto;
  padding-top: 4px;
}

body:is(.home, .xgbt-sf-catalog) .product-small.box .price-wrapper :is(.price, .amount, bdi) {
  color: #853c23;
  font-size: clamp(16px, 1.35vw, 19px) !important;
  font-weight: 750;
  line-height: 1.35;
}

body:is(.home, .xgbt-sf-catalog) .product-small.box .price-wrapper del .amount,
body:is(.home, .xgbt-sf-catalog) .product-small.box .price-wrapper del bdi {
  color: #70625a;
  font-size: 0.85em !important;
  font-weight: 500;
}

.xgbt-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.xgbt-card-actions > a {
  display: inline-flex;
  flex: 1 1 100px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 5px 6px;
  border: 1px solid #caa48c;
  border-radius: 8px;
  background: #fffdf9;
  color: #78391f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.xgbt-card-actions > .xgbt-card-buy {
  border-color: #944526;
  background: #944526;
  color: #fff;
}

.xgbt-card-actions > a:hover,
.xgbt-card-actions > a:focus-visible {
  border-color: #70341d;
  background: #70341d;
  color: #fff;
}

.xgbt-card-actions > .loading { opacity: 0.65; }
.xgbt-card-actions > .added_to_cart { flex-basis: 100%; }

.single-product #xgbt-chon-mua { scroll-margin-top: 80px; }
