/* Trần Gia UX baseline - 2026-11-04 */
:root {
  --tg-gold: #b7860b;
  --tg-gold-dark: #7a5700;
  --tg-surface: #fffdf8;
  --tg-text: #2f2a22;
}

.home .banner .bg {
  background-image: url("/wp-content/uploads/2023/10/banner-2-ux.webp") !important;
  background-size: cover !important;
}

@media (max-width: 849px) {
  .header-main {
    height: 68px !important;
  }

  #logo,
  #logo img {
    max-height: 50px !important;
  }

  #logo {
    width: 150px !important;
  }

  .home .slider-wrapper .banner {
    min-height: 300px;
  }

  .home #content > .section:first-of-type {
    padding-top: 24px !important;
  }

  .home #content > .section:first-of-type > .section-content > .row:first-child .col:first-child .img {
    width: 58% !important;
    max-width: 230px;
    margin-bottom: 10px;
  }

  .home #content > .section:first-of-type > .section-content > .row:first-child .col:nth-child(2) {
    text-align: left;
  }

  .home #content > .section:first-of-type > .section-content > .row:first-child .col:nth-child(2) h2 {
    font-size: 1.45rem;
    line-height: 1.3;
    text-align: left !important;
    margin-bottom: 12px;
  }

  .home #content > .section:first-of-type > .section-content > .row:first-child .col:nth-child(2) p {
    text-align: left !important;
    line-height: 1.65;
    color: var(--tg-text);
  }

  .home #content > .section:first-of-type > .section-content > .row:first-child .col:nth-child(2) p:nth-of-type(n+2) {
    display: none;
  }

  .home #content h2 {
    letter-spacing: .01em;
    line-height: 1.3;
  }

  .home #content .section {
    padding-left: 0;
    padding-right: 0;
  }

  #button-contact-vr {
    position: fixed !important;
    z-index: 9998 !important;
    left: 50% !important;
    right: auto !important;
    bottom: 12px !important;
    transform: translateX(-50%);
    width: auto !important;
  }

  #button-contact-vr #gom-all-in-one {
    position: static !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid rgba(183, 134, 11, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    backdrop-filter: blur(8px);
  }

  #button-contact-vr .button-contact,
  #button-contact-vr .phone-vr {
    position: relative !important;
    inset: auto !important;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
  }

  #button-contact-vr .phone-vr-circle-fill {
    display: none !important;
  }

  #button-contact-vr .phone-vr-img-circle {
    position: static !important;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    animation: none !important;
    box-shadow: none !important;
  }

  #button-contact-vr .phone-vr-img-circle img {
    width: 24px !important;
    height: 24px !important;
    margin: 11px !important;
  }

  body {
    padding-bottom: 76px;
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      scroll-behavior: auto !important;
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
  }
}

/* UX phase 2: homepage catalogue */
.home .tg-section-title {
  margin: 0 0 6px;
  color: #5b3a12;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
}
.home .tg-section-lead {
  max-width: 680px;
  margin: 0 auto 10px;
  color: #725c43;
  font-size: 1rem;
}
.home .tg-sacred-grid,
.home .tg-featured-products,
.home .tg-latest-news .row {
  margin-top: 28px;
  padding: 30px 18px 18px;
  border: 1px solid #ead9b8;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffaf0 0%, #fff 38%);
  box-shadow: 0 12px 34px rgba(95, 61, 16, .08);
}
.home .tg-sacred-grid .box,
.home .tg-featured-products .product-small,
.home .tg-latest-news .post-item .col-inner {
  height: 100%;
  overflow: hidden;
  border: 1px solid #eee2cd;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(78, 47, 7, .09);
  transition: transform .22s ease, box-shadow .22s ease;
}
.home .tg-sacred-grid .box:hover,
.home .tg-featured-products .product-small:hover,
.home .tg-latest-news .post-item .col-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(78, 47, 7, .16);
}
.home .tg-sacred-grid .box-text {
  padding: 14px 12px 16px;
  background: linear-gradient(135deg, #7b4b10, #bd8122);
  color: #fff;
}
.home .tg-sacred-grid .box-text h3 {
  margin: 0;
  color: inherit;
  font-size: 1.08rem;
  font-weight: 700;
}
.home .tg-featured-products {
  border-color: #d8ad55;
  background: linear-gradient(145deg, #fff7df 0%, #fff 48%, #f8ecd0 100%);
}
.home .tg-featured-title {
  color: #8b5500;
}
.home .tg-featured-products .product-small .box-text {
  padding: 13px 12px 16px;
}
.home .tg-featured-products .product-title a {
  color: #50340f;
  font-weight: 700;
}
.home .tg-latest-news {
  padding-top: 30px;
  padding-bottom: 44px;
}
.home .tg-latest-news .post-title {
  font-weight: 700;
  line-height: 1.35;
}
@media (max-width: 549px) {
  .home .tg-sacred-grid,
  .home .tg-featured-products,
  .home .tg-latest-news .row {
    margin: 18px 10px 0;
    padding: 22px 8px 10px;
    border-radius: 16px;
  }
  .home .tg-section-title { font-size: 1.42rem; }
  .home .tg-section-lead {
    padding: 0 8px;
    font-size: .92rem;
  }
  .home .tg-sacred-grid .row-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .home .tg-sacred-grid .row-inner::-webkit-scrollbar { display: none; }
  .home .tg-sacred-grid .row-inner > .col {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: center;
  }
  .home .tg-featured-products .product-title { font-size: .9rem; }
}