:root {
  --ntm-black: #1A1A1A;
  --ntm-white: #FFFFFF;
  --ntm-birch: #F5ECDD;
  --ntm-warm-white: #FBF8F2;
  --ntm-greige: #B7A899;
  --ntm-taupe: #7B7167;
  --ntm-line: #D9D0C3;
  --ntm-radius-sm: 8px;
  --ntm-radius-md: 12px;
  --ntm-radius-lg: 16px;
  --ntm-shadow-soft: 0 8px 30px rgba(26,26,26,.06);
  --ntm-content-max: 1280px;
}

/* Base brand tone */
body.ntm-brand {
  background: var(--ntm-warm-white);
  color: var(--ntm-black);
}

body.ntm-brand,
body.ntm-brand button,
body.ntm-brand input,
body.ntm-brand textarea,
body.ntm-brand select {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.ntm-brand h1,
body.ntm-brand h2,
body.ntm-brand h3,
body.ntm-brand h4,
body.ntm-brand h5,
body.ntm-brand h6 {
  color: var(--ntm-black);
  letter-spacing: -0.02em;
}

body.ntm-brand a { color: inherit; }

/* Flatsome header */
body.ntm-brand #header .header-wrapper,
body.ntm-brand #header .header-bg-color {
  background: rgba(251, 248, 242, .96);
}

body.ntm-brand #header .nav > li > a {
  color: var(--ntm-black);
  font-weight: 500;
  letter-spacing: .01em;
}

body.ntm-brand #header .nav > li > a:hover {
  color: var(--ntm-taupe);
}

/* Desktop/tablet only (Flatsome "medium" = 850px+): centre the main menu between
   the logo and the Search/Account/Cart group. -30px cancels the logo's 30px right margin. */
@media (min-width: 850px) {
  body.ntm-brand #header .header-main .flex-left.flex-grow { margin-left: -30px; }
  body.ntm-brand #header .header-main .flex-left.flex-grow .header-nav-main { justify-content: center; }
}

/* Narrow desktop/tablet band (850-999px): logo, main-menu text and item gaps scale fluidly (logo 172-220px, text 11-12.8px,
   gaps 5-14px) so the five-item menu stays on one row with breathing room. Every value equals the default at 1000px,
   so 1024px and wider are unchanged. Scoped to the left (main menu) column only; search/account/cart is untouched. */
@media (min-width: 850px) and (max-width: 999.98px) {
  body.ntm-brand #header .header-main #logo { width: calc(32vw - 100px); }
  body.ntm-brand #header .header-main .flex-left.flex-grow .header-nav-main > li { margin-right: 0; margin-left: 0; }
  body.ntm-brand #header .header-main .flex-left.flex-grow .header-nav-main > li + li { margin-left: calc(6vw - 46px); }
  body.ntm-brand #header .header-main .flex-left.flex-grow .header-nav-main > li > a { font-size: calc(1.2vw + .8px); }
}

/* Compact cart (850-1023px): with a real cart total the right group grows from ~243px to ~291px and the five-item menu wraps
   at 1000px and below. Here the bag icon + amount stay and the "Giỏ hàng /" label (a bare text node in .header-cart-title)
   is collapsed with font-size:0; the amount span keeps its size. The link keeps aria-label="Xem giỏ hàng", so its accessible
   name is unchanged. 1024px and wider and the mobile header (<850px) are untouched. */
@media (min-width: 850px) and (max-width: 1023.98px) {
  body.ntm-brand #header .header-main .header-cart-link .header-cart-title { font-size: 0; }
  body.ntm-brand #header .header-main .header-cart-link .header-cart-title .cart-price { font-size: 12.8px; }
}

/* Buttons */
body.ntm-brand .button,
body.ntm-brand button,
body.ntm-brand input[type="submit"] {
  border-radius: var(--ntm-radius-sm);
  font-weight: 600;
  box-shadow: none;
}

body.ntm-brand .button.primary,
body.ntm-brand .button.checkout,
body.ntm-brand .single_add_to_cart_button {
  background-color: var(--ntm-black) !important;
  border-color: var(--ntm-black) !important;
  color: var(--ntm-white) !important;
}

body.ntm-brand .button.primary:hover,
body.ntm-brand .single_add_to_cart_button:hover {
  background-color: #000 !important;
  border-color: #000 !important;
}

/* Cards and sections */
.ntm-section-birch { background: var(--ntm-birch); }
.ntm-section-light { background: var(--ntm-warm-white); }
.ntm-card {
  background: var(--ntm-white);
  border: 1px solid rgba(217,208,195,.7);
  border-radius: var(--ntm-radius-md);
  box-shadow: var(--ntm-shadow-soft);
}

/* Brand logo artwork helpers */
.ntm-brand-logo img,
.ntm-brand-mark img {
  display: block;
  height: auto;
}
.ntm-brand-logo img { max-width: 360px; }
.ntm-brand-mark img { max-width: 64px; }

/* Text helpers */
.ntm-eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--ntm-taupe);
}

.ntm-lead {
  color: var(--ntm-taupe);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Footer v1 — widgets in sidebar-footer-1: [logo + intro] then one Nav Menu widget per column.
   Layout follows the widget count: 2 widgets = two columns, 4 widgets = four (logo column wider). */
body.ntm-brand #footer,
body.ntm-brand .footer-wrapper {
  background: var(--ntm-birch);
  color: var(--ntm-black);
}

/* Flatsome paints <html> in the old dark footer colour; match the footer on short pages. */
html:has(> body.ntm-brand) { background-color: var(--ntm-birch); }

body.ntm-brand #footer .footer-widgets {
  background: transparent;
  padding: 64px 0 40px;
}

body.ntm-brand #footer .footer-1 .col { padding-bottom: 0; margin-bottom: 0; }

body.ntm-brand #footer .ntm-footer-brand .img { width: 200px; max-width: 100%; }

body.ntm-brand #footer .ntm-footer-intro {
  max-width: 500px;
  margin: 20px 0 0;
  line-height: 1.7;
  color: rgba(26, 26, 26, .82);
}

body.ntm-brand #footer .ntm-footer-intro__lead {
  font-weight: 600;
  color: var(--ntm-black);
}

body.ntm-brand #footer .widget-title {
  display: block;
  margin: 6px 0 14px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ntm-black);
}

body.ntm-brand #footer .widget .is-divider { display: none; }

body.ntm-brand #footer .widget_nav_menu ul.menu { margin: 0; }

body.ntm-brand #footer .widget_nav_menu ul.menu > li {
  border: 0;
  margin: 0;
  padding: 0;
}

body.ntm-brand #footer .widget_nav_menu ul.menu > li > a {
  display: inline-block;
  padding: 7px 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ntm-black);
  transition: color .2s ease;
}

body.ntm-brand #footer .widget_nav_menu ul.menu > li > a:hover { color: var(--ntm-taupe); }

body.ntm-brand #footer .absolute-footer {
  background: transparent;
  padding: 0 0 20px;
  font-size: .875rem;
  color: rgba(26, 26, 26, .72);
}

body.ntm-brand #footer .absolute-footer .container::before {
  content: "";
  display: block;
  margin-bottom: 18px;
  border-top: 1px solid rgba(183, 168, 153, .6);
}

@media (min-width: 850px) {
  body.ntm-brand #footer .footer-1 .row > .col:first-child:nth-last-child(2) { flex-basis: 48%; max-width: 48%; }
  body.ntm-brand #footer .footer-1 .row > .col:last-child:nth-child(2) { flex-basis: 30%; max-width: 30%; }
  body.ntm-brand #footer .footer-1 .row > .col:first-child:nth-last-child(4) { flex-basis: 34%; max-width: 34%; }
  body.ntm-brand #footer .footer-1 .row > .col:nth-child(n+2):nth-last-child(-n+3) { flex-basis: 22%; max-width: 22%; }
}

@media (min-width: 850px) and (max-width: 1199px) {
  body.ntm-brand #footer .footer-1 .row > .col:first-child:nth-last-child(2) { flex-basis: 55%; max-width: 55%; }
  body.ntm-brand #footer .footer-1 .row > .col:last-child:nth-child(2) { flex-basis: 35%; max-width: 35%; }
}

@media (max-width: 849px) {
  body.ntm-brand #footer .footer-widgets { padding: 36px 0 24px; }
  body.ntm-brand #footer .footer-1 .col { margin-bottom: 20px; }
  body.ntm-brand #footer .footer-1 .col:last-child { margin-bottom: 0; }
  body.ntm-brand #footer .ntm-footer-brand .img { width: 176px; }
  body.ntm-brand #footer .widget_nav_menu ul.menu > li > a { padding: 7px 0; }
  body.ntm-brand #footer .absolute-footer { padding-bottom: 12px; }
  body.ntm-brand #footer .absolute-footer .container::before { margin-bottom: 14px; }
}

/* Homepage v1 — UX Builder sections tagged with ntm-* classes (see docs/homepage-v1.md).
   Native Flatsome settings carry the structure; this block only closes visual gaps to the reference. */

/* Microcopy tone shared by hero and About */
body.ntm-brand .ntm-hero__eyebrow,
body.ntm-brand .ntm-hero__micro,
body.ntm-brand .ntm-about__eyebrow {
  font-size: .75rem;
  line-height: 1.7;
  letter-spacing: .2em;
  color: rgba(26, 26, 26, .72);
}

body.ntm-brand .ntm-hero__eyebrow p,
body.ntm-brand .ntm-hero__micro p,
body.ntm-brand .ntm-about__eyebrow p { margin: 0; }

/* Hero */
body.ntm-brand .ntm-hero__title h1 {
  max-width: 8.7em;
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.12;
}

body.ntm-brand .ntm-hero__lead p { max-width: 25em; margin: 0 0 28px; }

body.ntm-brand .ntm-hero__cta {
  min-height: 48px;
  margin: 0;
  padding: 0 28px;
  font-size: .9375rem;
}

/* Side gutter for the 1300px rows on narrower viewports (Flatsome sections only pad top/bottom) */
body.ntm-brand .ntm-gutter > .section-content { padding-right: 14px; padding-left: 14px; }

/* Homepage Featured Products (.ntm-featured-section only): Flatsome's full-width product row is 100% of the column's inner width but
   keeps the row-small negative left margin, so it ended ~20px short of the 1300px category grid. Widen it by the two gutters (2 x 9.8px);
   the max-width reset needs !important because Flatsome sets `.row-full-width { max-width: 100% !important }`.
   Cards stay name + price only: the hover-only YITH wishlist icon (.image-tools) is removed here, nowhere else. */
body.ntm-brand .ntm-featured-section .row-full-width { width: calc(100% + 19.6px); max-width: none !important; }
body.ntm-brand .ntm-featured-section .product-small .image-tools { display: none; }

/* Media fills its row height (hero, About) */
body.ntm-brand .ntm-media-fill .col-inner,
body.ntm-brand .ntm-media-fill .img,
body.ntm-brand .ntm-media-fill .img-inner { height: 100%; }

/* Categories */
body.ntm-brand .ntm-cats .box-image { overflow: hidden; border-radius: 8px; }
body.ntm-brand .ntm-cats .box-text { padding: 14px 0 0; }
body.ntm-brand .ntm-cats .box-text p { margin: 0; font-size: 1rem; line-height: 1.35; }

/* Value strip: four local line icons drawn as masks */
body.ntm-brand .ntm-icon {
  display: block;
  width: 52px;
  height: 52px;
  background-color: var(--ntm-black);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
body.ntm-brand .ntm-icon--box { -webkit-mask-image: url(../img/icons/box.svg); mask-image: url(../img/icons/box.svg); }
body.ntm-brand .ntm-icon--leaf { -webkit-mask-image: url(../img/icons/leaf.svg); mask-image: url(../img/icons/leaf.svg); }
body.ntm-brand .ntm-icon--gear { -webkit-mask-image: url(../img/icons/gear.svg); mask-image: url(../img/icons/gear.svg); }
body.ntm-brand .ntm-icon--house { -webkit-mask-image: url(../img/icons/house.svg); mask-image: url(../img/icons/house.svg); }

body.ntm-brand .ntm-value.row-divided > .col + .col:not(.large-12) { border-color: rgba(183, 168, 153, .6); }
body.ntm-brand .ntm-value__title { margin: 0 0 6px; font-size: 1rem; font-weight: 600; line-height: 1.3; }
body.ntm-brand .ntm-value__desc { margin: 0; font-size: .84375rem; line-height: 1.5; color: rgba(26, 26, 26, .68); }

/* About */
body.ntm-brand .ntm-about__text .col-inner { display: flex; flex-direction: column; justify-content: center; height: 100%; }
body.ntm-brand .ntm-about__title h2 { margin: 8px 0 12px; font-size: 2rem; font-weight: 500; line-height: 1.19; }
body.ntm-brand .ntm-about__title strong { font-weight: 700; }
body.ntm-brand .ntm-about__body p { max-width: 33em; margin: 0 0 24px; color: rgba(26, 26, 26, .72); }
body.ntm-brand .ntm-about__cta { align-self: flex-start; min-height: 44px; margin: 0; padding: 0 26px; font-size: .9375rem; }

@media (min-width: 850px) {
  body.ntm-brand .ntm-hero__text {
    position: relative;
    z-index: 1;
    flex-basis: 50%;
    max-width: 50%;
    padding-left: max(15px, calc((100vw - 1050px) / 2)) !important; /* Flatsome forces .row-collapse > .col { padding: 0 !important } */
  }
  body.ntm-brand .ntm-hero__media { flex-basis: 55.3%; max-width: 55.3%; margin-left: -5.3%; }
  body.ntm-brand .ntm-hero__media img {
    /* Focus right: the subject (bench + shelf) sits in the right half of the photo and would be trimmed by a centred crop. */
    object-position: 88% center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
    mask-image: linear-gradient(to right, transparent 0, #000 22%);
  }
  body.ntm-brand .ntm-hero__eyebrow { position: relative; display: inline-block; margin-bottom: 24px; }
  body.ntm-brand .ntm-hero__eyebrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 16px);
    width: 60px;
    border-top: 1px solid rgba(26, 26, 26, .4);
  }
  body.ntm-brand .ntm-hero__micro { margin-top: 40px; }
  body.ntm-brand .ntm-cats .col { padding-bottom: 0; }
}

@media (max-width: 849px) {
  /* Hero: image first (force_first), then text; the two microcopy lines share the last row */
  body.ntm-brand .ntm-hero__media .img-inner { padding-top: 50% !important; }
  body.ntm-brand .ntm-hero__text .col-inner { display: flex; flex-wrap: wrap; align-items: flex-start; }
  body.ntm-brand .ntm-hero__title,
  body.ntm-brand .ntm-hero__lead { flex: 0 0 100%; }
  body.ntm-brand .ntm-hero__title { order: 1; }
  body.ntm-brand .ntm-hero__lead { order: 2; }
  body.ntm-brand .ntm-hero__cta { order: 3; margin-bottom: 16px; }
  body.ntm-brand .ntm-hero__eyebrow { order: 4; flex: 0 0 50%; letter-spacing: 0; text-transform: none; }
  body.ntm-brand .ntm-hero__micro { order: 5; flex: 0 0 50%; text-align: right; font-size: .625rem; letter-spacing: .16em; }
  body.ntm-brand .ntm-hero__title h1 { font-size: 2.5rem; }
  body.ntm-brand .ntm-hero__lead p { max-width: none; margin-bottom: 18px; }

  body.ntm-brand .ntm-cats .box-image .image-cover { padding-top: 75% !important; }
  body.ntm-brand .ntm-value.row-divided > .col + .col:not(.large-12) { border-left: 0; }
  body.ntm-brand .ntm-about__media .img-inner { padding-top: 40% !important; }
  body.ntm-brand .ntm-about__title h2 { font-size: 1.75rem; }
}

@media (max-width: 549px) {
  body.ntm-brand .ntm-gutter > .section-content { padding-right: 12px; padding-left: 12px; }
  body.ntm-brand .ntm-hero__media .img-inner { padding-top: 59% !important; }
  body.ntm-brand .ntm-hero__title h1 { margin-bottom: 10px; font-size: 2.05rem; }
  body.ntm-brand .ntm-hero__lead p { margin-bottom: 16px; }
  body.ntm-brand .ntm-hero__cta { min-height: 42px; padding: 0 22px; }

  body.ntm-brand .ntm-cats .col { padding: 0 5px 10px; }
  body.ntm-brand .ntm-cats .box { position: relative; overflow: hidden; border-radius: 8px; }
  body.ntm-brand .ntm-cats .box-image .image-cover { padding-top: 58% !important; }
  body.ntm-brand .ntm-cats .box-text {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 7px 10px;
    background: rgba(251, 248, 242, .88);
  }
  body.ntm-brand .ntm-cats .box-text p { font-size: .8125rem; font-weight: 600; }

  body.ntm-brand .ntm-value > .col { margin-bottom: 6px; padding-left: 24px !important; }
  body.ntm-brand .ntm-value > .col:last-child { margin-bottom: 0; }
  body.ntm-brand .ntm-icon { width: 32px; height: 32px; }
  body.ntm-brand .ntm-value__title { margin-bottom: 2px; font-size: .9375rem; }
  body.ntm-brand .ntm-value__desc { font-size: .78125rem; }

  body.ntm-brand .ntm-about-section.ntm-gutter > .section-content { padding-right: 0; padding-left: 0; }
  body.ntm-brand .ntm-about__media .img-inner { padding-top: 31% !important; }
  body.ntm-brand .ntm-about__title h2 { margin: 6px 0 10px; font-size: 1.375rem; line-height: 1.27; }
  body.ntm-brand .ntm-about__cta { padding: 0 22px; }
}

/* ---- v0.2 homepage system ---- */
.ntm-home-hero h1{font-size:clamp(2.7rem,5vw,5.2rem);line-height:1.02;max-width:760px;margin-bottom:24px}.ntm-home-hero .ntm-lead{max-width:620px}
.ntm-visual-placeholder{min-height:420px;display:flex;align-items:center;justify-content:center;text-align:center;background:linear-gradient(145deg,#f9f2e7,#ead9bf);border:1px solid var(--ntm-line);border-radius:var(--ntm-radius-lg);color:var(--ntm-taupe);padding:32px}.ntm-visual-placeholder small{display:block;margin-top:8px;opacity:.75}.ntm-visual-placeholder--story{min-height:360px;background:linear-gradient(145deg,#e7d5bd,#c5a982)}
.ntm-home-card,.ntm-collection-card{height:100%;background:var(--ntm-white);border:1px solid rgba(217,208,195,.8);border-radius:var(--ntm-radius-md);padding:18px;transition:transform .2s ease,box-shadow .2s ease}.ntm-home-card:hover,.ntm-collection-card:hover{transform:translateY(-3px);box-shadow:var(--ntm-shadow-soft)}.ntm-home-card__visual{height:150px;border-radius:10px;margin-bottom:18px;background:linear-gradient(145deg,#f2e5d2,#dfc5a4)}
.ntm-home-card h3,.ntm-collection-card span{margin:0 0 8px;font-size:1.15rem;font-weight:650}.ntm-home-card p,.ntm-collection-card p,.ntm-promise p{color:var(--ntm-taupe)}.ntm-collection-card{min-height:190px;display:flex;flex-direction:column;justify-content:flex-end;background:var(--ntm-birch)}.ntm-collection-card span{font-size:2rem}
.ntm-material-swatch{min-height:280px;border-radius:var(--ntm-radius-lg);background:#ead6b9;padding:28px;display:flex;flex-direction:column;justify-content:flex-end}.ntm-material-swatch strong{font-size:2rem;letter-spacing:.08em}.ntm-material-swatch span{color:var(--ntm-taupe);text-transform:uppercase;letter-spacing:.12em;font-size:.75rem}.ntm-promise{padding:10px 0}.ntm-promise strong{display:block;font-size:1rem;margin-bottom:4px}.ntm-page-hero{background:var(--ntm-birch)}
.ntm-brand-logo img,.ntm-brand-mark img{mix-blend-mode:multiply}.ntm-brand .products .product-small{margin-bottom:22px}.ntm-brand .product-small .box-text{padding-left:2px;padding-right:2px}
