/*
 * NeoTribe shop pages (EC-CUBE only). Loaded after neotribe.css.
 * Everything is scoped to body.nt-shop, which restyled templates opt into via body_class.
 * Not-yet-restyled EC-CUBE pages keep the standard look.
 */
body.nt-shop, body.nt-ec {
  font-family: var(--nt-font);
  color: var(--nt-text);
  background: var(--nt-bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.nt-shop a, body.nt-ec a { color: inherit; }
body.nt-shop a:hover, body.nt-ec a:hover { color: var(--nt-accent); }

/* neutralise EC-CUBE's centred 1130px container for restyled pages */
body.nt-shop .ec-layoutRole__contents,
body.nt-shop .ec-layoutRole__main,
body.nt-shop .ec-layoutRole__mainWithColumn,
body.nt-shop .ec-layoutRole__mainBetweenColumn {
  max-width: none; width: 100%; margin: 0; padding: 0;
}
body.nt-shop .ec-layoutRole { width: 100%; }

/* ---- layout primitives ---- */
.nt-wrap {
  max-width: calc(var(--nt-max) + var(--nt-gutter) * 2);
  margin: 0 auto; padding-left: var(--nt-gutter); padding-right: var(--nt-gutter);
}
.nt-section { padding-top: 40px; padding-bottom: 80px; }
.nt-band { background: var(--nt-surface); }
.nt-kicker {
  display: block; margin-bottom: 16px;
  font-size: 13px; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase;
  color: var(--nt-accent);
}
.nt-h1 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.nt-h1__count { margin-left: 8px; font-size: 15px; font-weight: 400; color: var(--nt-muted); font-feature-settings: "tnum" 1; }
.nt-h2 { margin: 0 0 16px; font-size: 20px; font-weight: 500; line-height: 1.4; }
.nt-lead { margin: 0 0 24px; font-size: 14px; color: var(--nt-muted); }
.nt-link { color: var(--nt-accent-hover); text-decoration: none; font-size: 14px; }
.nt-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--nt-muted); }
.nt-crumb .is-current { color: var(--nt-text); }
.nt-pagehead {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  margin: 20px 0 32px;
}

/* tags / buttons */
.nt-tag {
  display: inline-flex; align-items: center; padding: 3px 10px;
  font-size: 11px; letter-spacing: .02em; border-radius: 6px;
}
.nt-tag--accent { background: #6b3008; color: var(--nt-accent-tint); }
.nt-tag--neutral { background: #3f424d; color: #f3f5fe; }
.nt-btn-link, .nt-btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2;
  color: var(--nt-text); background: var(--nt-accent); border: 1px solid var(--nt-accent);
  border-radius: var(--nt-radius); cursor: pointer; text-decoration: none;
}
.nt-btn-link:hover, .nt-btn-cta:hover { background: var(--nt-accent-hover); border-color: var(--nt-accent-hover); color: #fff; }
.nt-btn-cta[disabled] { opacity: .45; cursor: not-allowed; background: var(--nt-accent); color: var(--nt-text); }
.nt-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--nt-accent-hover); background: transparent; border: 0; border-radius: var(--nt-radius); cursor: pointer;
}
.nt-btn-ghost:hover { background: var(--nt-accent-tint); }
.nt-btn-ghost[disabled] { opacity: .5; cursor: default; }
body.nt-shop :focus-visible, body.nt-ec :focus-visible { outline: 2px solid var(--nt-accent); outline-offset: 2px; }

/* segmented control + select */
.nt-sort { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.nt-seg { display: inline-flex; overflow: hidden; border: 1px solid #d9dbe0; border-radius: var(--nt-radius); }
.nt-seg__opt {
  min-height: 40px; padding: 0 14px; font: inherit; font-size: 13px; color: var(--nt-text);
  background: transparent; border: 0; cursor: pointer;
}
.nt-seg__opt + .nt-seg__opt { border-left: 1px solid #d9dbe0; }
.nt-seg__opt:hover { background: var(--nt-tint); }
.nt-seg__opt.is-active { background: #ffe1c7; color: #9d470b; font-weight: 500; }
.nt-select select, body.nt-shop .ec-select select {
  width: 100%; min-height: 44px; padding: 0 12px;
  font: inherit; font-size: 14px; color: var(--nt-text);
  background: var(--nt-bg); border: 1px solid #d9dbe0; border-radius: var(--nt-radius);
}
.nt-select--sm select { min-height: 40px; width: auto; font-size: 13px; }

/* side + grid */
.nt-sidegrid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.nt-side__title { margin-bottom: 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--nt-muted); }
.nt-side__body { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.nt-side__link {
  display: block; padding: 6px 8px 6px calc(8px + var(--nt-depth, 0) * 12px);
  border-radius: 4px; color: var(--nt-text);
}
.nt-side__link:hover { background: var(--nt-accent-tint); }
.nt-side__link.is-current { background: var(--nt-accent-tint); color: #9d470b; font-weight: 500; }
.nt-side__sp { display: none; margin-bottom: 12px; border: 1px solid var(--nt-line); border-radius: var(--nt-radius); }
.nt-side__sp summary { display: flex; align-items: center; min-height: 44px; padding: 0 14px; cursor: pointer; font-size: 14px; font-weight: 500; }
.nt-side__sp .nt-side__body { padding: 4px 8px 12px; }

.nt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16.8px; }
.nt-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--nt-surface); border-radius: var(--nt-radius);
  color: var(--nt-text); text-decoration: none;
}
.nt-card:hover { box-shadow: var(--nt-shadow-md); color: var(--nt-text); }
.nt-card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--nt-tint); }
.nt-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nt-card__soldout { position: absolute; top: 10px; left: 10px; }
.nt-card__body { display: flex; flex-direction: column; gap: 8.4px; flex: 1; padding: 16.8px; }
.nt-card__code { font-size: 12px; color: var(--nt-muted); }
.nt-card__name { font-size: 14px; line-height: 1.5; font-weight: 500; }
.nt-card__fit { font-size: 13px; line-height: 1.6; color: var(--nt-muted); }
.nt-card__price { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 8.4px; }
.nt-price { font-size: 17px; font-weight: 500; font-feature-settings: "tnum" 1; }
.nt-card__tax { font-size: 12px; color: var(--nt-muted); }

.nt-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 28px; font-feature-settings: "tnum" 1; }
.nt-pager__btn, .nt-pager__gap {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 36px; padding: 0 8px; font-size: 13px; border-radius: 4px;
}
.nt-pager__btn { color: var(--nt-text); text-decoration: none; border: 0; }
.nt-pager__btn:hover { background: var(--nt-surface); color: var(--nt-text); }
.nt-pager__btn.is-current { background: var(--nt-dark); color: var(--nt-accent-light); font-weight: 500; }

.nt-empty .nt-card-panel { padding: 24px; background: var(--nt-surface); border-radius: var(--nt-radius); }
.nt-bullets { margin: 8px 0 16px; padding-left: 18px; font-size: 14px; line-height: 1.9; color: var(--nt-muted); }
.nt-empty p a + a { margin-left: 16px; }

/* ---- product detail ---- */
.nt-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); margin-top: 24px; align-items: start; }
.nt-gallery__main { aspect-ratio: 4 / 3; background: var(--nt-tint); border-radius: var(--nt-radius); box-shadow: var(--nt-shadow-sm); overflow: hidden; }
.nt-gallery__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nt-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.nt-gallery__thumb {
  aspect-ratio: 1; padding: 0; overflow: hidden; cursor: pointer;
  background: var(--nt-tint); border: 0; border-radius: 4px; box-shadow: var(--nt-shadow-sm);
}
.nt-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-gallery__thumb.is-active { box-shadow: 0 0 0 2px var(--nt-accent); }

.nt-buy { display: flex; flex-direction: column; gap: 20px; }
.nt-buy__tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nt-buy__code { font-size: 13px; color: var(--nt-muted); }
.nt-buy__title { margin: 0; font-size: 26px; line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.nt-buy__regular { margin: -8px 0 0; font-size: 13px; color: var(--nt-muted); }
.nt-buy__price { display: flex; align-items: baseline; gap: 8px; }
.nt-buy__priceMain { font-size: 32px; font-weight: 500; font-feature-settings: "tnum" 1; }
.nt-buy__priceTax { font-size: 13px; color: var(--nt-muted); }
.nt-buy__meta {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; margin: 0; padding-top: 16px;
  font-size: 14px; border-top: 1px solid rgba(31, 33, 36, .14);
}
.nt-buy__meta dt { color: var(--nt-muted); }
.nt-buy__meta dd { margin: 0; }
.nt-buy__meta dd a { color: var(--nt-text); text-decoration: underline; text-underline-offset: 3px; }
.nt-buy__meta dd.is-ok { color: #9d470b; }
.nt-buy__cat { display: block; }
/* the form must not be a box of its own: the SP purchase bar is sticky relative to .nt-buy */
.nt-buy__form { display: contents; }
.nt-buy__form .nt-buy__classes { margin-bottom: -8px; }
.nt-buy__classes { display: grid; gap: 12px; }
.nt-buy__classes .ec-select label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--nt-muted); }
.nt-buy__classes .ec-select { margin: 0; }
.nt-buy__actions { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.nt-buy__actions .nt-btn-cta { flex: 1; min-width: 200px; min-height: 48px; }
.nt-qty { display: inline-flex; align-items: center; overflow: hidden; border-radius: var(--nt-radius); box-shadow: var(--nt-shadow-sm); }
.nt-qty__btn { width: 44px; height: 48px; font-size: 18px; color: var(--nt-text); background: var(--nt-tint); border: 0; cursor: pointer; }
.nt-qty__btn:hover { background: #ffe1c7; }
.nt-qty__input {
  width: 56px; height: 48px; padding: 0; text-align: center; font: inherit; font-weight: 500;
  font-feature-settings: "tnum" 1; border: 0; background: var(--nt-bg); -moz-appearance: textfield;
}
.nt-qty__input::-webkit-outer-spin-button, .nt-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nt-buy__fav { margin: 0; }
.nt-buy__notes { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--nt-muted); }
.nt-buy__notes li::before { content: "✓ "; }

.nt-prose { font-size: 14px; line-height: 1.9; color: rgba(31, 33, 36, .88); max-width: 860px; }
.nt-prose img { max-width: 100%; height: auto; }
.nt-band .nt-section { padding-top: 56px; padding-bottom: 64px; }

/* plugin areas appended to the main column (RelatedProduct42 / ProductReview42) */
body.nt-shop #RelatedProduct-product_area,
body.nt-shop #product_review_area {
  max-width: calc(var(--nt-max) + var(--nt-gutter) * 2);
  margin: 0 auto; padding: 40px var(--nt-gutter);
}
body.nt-shop #RelatedProduct-product_area::before {
  content: "関連商品"; display: block; margin-bottom: 20px; font-size: 20px; font-weight: 500;
}
body.nt-shop #RelatedProduct-product_area .ec-shelfGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16.8px; margin: 0; padding: 0; list-style: none; }
body.nt-shop #RelatedProduct-product_area .ec-shelfGrid__item { width: auto; margin: 0; padding: 0; }
body.nt-shop #RelatedProduct-product_area .ec-shelfGrid__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--nt-tint); border-radius: var(--nt-radius); }
body.nt-shop #product_review_area { border-top: 1px solid var(--nt-line); }

/* the standard add-to-cart modal keeps its markup; just match the palette */
body.nt-shop .ec-modal .ec-inlineBtn--action { background: var(--nt-accent); border-color: var(--nt-accent); color: var(--nt-text); }

/* ---- responsive ---- */
@media (max-width: 1100px) { .nt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .nt-grid, body.nt-shop #RelatedProduct-product_area .ec-shelfGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nt-detail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  .nt-sidegrid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .nt-side__sp { display: block; }
  .nt-side__pc { display: none; }
  .nt-section { padding-top: 32px; padding-bottom: 48px; }
  .nt-wrap { padding-left: 16px; padding-right: 16px; }
  .nt-h1 { font-size: 24px; }
  .nt-buy__title { font-size: 22px; }
  .nt-buy__priceMain { font-size: 28px; }
  /* CTA pinned to the bottom of the screen */
  .nt-buy__actions .nt-btn-cta { min-width: 0; }
  .nt-buy__actions {
    position: sticky; bottom: 0; z-index: 20; flex-wrap: nowrap;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    background: var(--nt-bg); border-top: 1px solid var(--nt-line);
    margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  }
}
@media (max-width: 360px) { .nt-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- brand page (user_data/brand_coverite) ---- */
.nt-kicker--onDark { color: var(--nt-accent-light); }
.nt-btn-line {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 32px;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none;
  color: var(--nt-on-dark); border: 1px solid var(--nt-on-dark-muted); border-radius: var(--nt-radius);
}
.nt-btn-line:hover { color: var(--nt-accent-light); border-color: var(--nt-accent-light); }
.nt-brand-hero { position: relative; display: flex; align-items: center; min-height: 360px; overflow: hidden; background: var(--nt-dark); color: var(--nt-on-dark); }
.nt-brand-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.nt-brand-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(43, 45, 49, .95) 0%, rgba(43, 45, 49, .6) 60%, rgba(43, 45, 49, .2) 100%); }
.nt-brand-hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.nt-brand-hero__title { margin: 0; max-width: 20ch; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.nt-brand-hero__lead { margin: 20px 0 0; max-width: 46ch; font-size: 15px; line-height: 1.9; color: var(--nt-on-dark-muted); }
.nt-brand-hero__actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.nt-brand-hero .nt-btn-link { padding: 0 36px; min-height: 48px; }
.nt-brand-section { padding-top: 64px; padding-bottom: 64px; }
.nt-brand-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16.8px; }
.nt-brand-feature { padding: 24px 0; border-top: 2px solid var(--nt-accent); }
.nt-brand-feature__n { font-size: 13px; color: var(--nt-accent); font-feature-settings: "tnum" 1; }
.nt-brand-feature h2 { margin: 10px 0 8px; font-size: 18px; font-weight: 500; }
.nt-brand-feature p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--nt-muted); }
.nt-brand-h2 { margin: 0 0 12px; font-size: 24px; font-weight: 500; line-height: 1.4; }
.nt-table-wrap { max-width: 760px; overflow-x: auto; background: var(--nt-bg); border-radius: var(--nt-radius); }
.nt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nt-table th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 500; color: var(--nt-muted); border-bottom: 1px solid var(--nt-line); }
.nt-table td { padding: 12px; border-bottom: 1px solid var(--nt-line); }
.nt-table tr:last-child td { border-bottom: 0; }
.nt-table .is-num { text-align: right; font-feature-settings: "tnum" 1; white-space: nowrap; }
.nt-brand-others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16.8px; }
.nt-card__img--wide { aspect-ratio: 2 / 1; background-size: cover; background-position: center; }
@media (max-width: 1000px) { .nt-brand-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .nt-brand-others { grid-template-columns: minmax(0, 1fr); }
  .nt-brand-features { grid-template-columns: minmax(0, 1fr); }
  .nt-brand-section { padding-top: 40px; padding-bottom: 40px; }
  .nt-brand-hero__actions .nt-btn-link, .nt-brand-hero__actions .nt-btn-line { width: 100%; }
}

/* ---- error page (error.twig: standalone, no site frame) ---- */
body.nt-err { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.nt-err__header { background: var(--nt-dark); border-bottom: 1px solid var(--nt-dark-2); }
.nt-err__headerInner { display: flex; align-items: center; height: 65px; padding-top: 0; padding-bottom: 0; }
.nt-err__headerInner img { height: 44px; width: auto; display: block; }
.nt-err__main { flex: 1; width: 100%; max-width: calc(760px + var(--nt-gutter) * 2); padding-top: 96px; padding-bottom: 120px; box-sizing: border-box; }
.nt-err__code { font-size: clamp(72px, 12vw, 140px); line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--nt-line); font-feature-settings: "tnum" 1; }
.nt-err__title { margin: 16px 0 0; font-size: 28px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.nt-err__message { margin: 16px 0 0; max-width: 48ch; font-size: 15px; line-height: 1.8; color: var(--nt-muted); }
.nt-err__search { display: flex; gap: 12px; max-width: 480px; margin-top: 28px; }
.nt-err__search input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; font: inherit; font-size: 16px;
  border: 1px solid #d9dbe0; border-radius: var(--nt-radius);
}
.nt-err__search input:focus { border-color: var(--nt-accent); outline: none; box-shadow: 0 0 0 2px rgba(232, 113, 26, .25); }
.nt-err__search .nt-btn-link { min-height: 44px; padding: 0 24px; }
.nt-err__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.nt-err__links a { text-decoration: none; }
.nt-err__footer { background: var(--nt-dark); border-top: 3px solid var(--nt-accent); color: var(--nt-on-dark-muted); font-size: 12px; }
.nt-err__footer .nt-wrap { padding-top: 20px; padding-bottom: 20px; }
@media (max-width: 760px) {
  .nt-err__main { padding-top: 56px; padding-bottom: 72px; }
  .nt-err__title { font-size: 24px; }
}

/* =====================================================================
 * Top page (index.twig)
 * ===================================================================== */
/* the standard layout blocks (new items / topic / category / news) and the PC category bar are replaced by this page */
body.nt-top .ec-layoutRole__mainTop,
body.nt-top .ec-layoutRole__mainBottom,
body.nt-top .ec-layoutRole__contentTop,
body.nt-top .ec-layoutRole__contentBottom,
body.nt-top .ec-layoutRole__header > :not(.nt-header) { display: none; }
body.nt-top .ec-layoutRole__contents,
body.nt-top .ec-layoutRole__main { padding: 0; max-width: none; }

.nt-top-h2 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.nt-top-section { padding-top: 64px; padding-bottom: 72px; }
.nt-top-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 0 0 32px; }
.nt-top-head--end { align-items: flex-end; }
.nt-top-head .nt-kicker { margin-bottom: 20px; }

/* hero */
.nt-hero { position: relative; display: flex; align-items: center; min-height: min(72vh, 680px); overflow: hidden; background: var(--nt-dark); color: var(--nt-on-dark); }
.nt-hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.nt-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.nt-hero__inner { position: relative; width: 100%; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); }
.nt-hero__title { margin: 0; font-weight: 700; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.12; letter-spacing: -.015em; }
.nt-hero__title span { display: block; }
.nt-hero__lead { margin: 28px 0 0; max-width: 40ch; font-size: 16px; line-height: 1.8; color: var(--nt-on-dark-muted); }
.nt-hero__actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 32px; }
.nt-hero__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 43px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--nt-on-dark);
  border: 1px solid var(--nt-on-dark-muted); border-radius: var(--nt-radius);
}
.nt-hero__btn:hover { color: var(--nt-on-dark); border-color: var(--nt-on-dark); background: rgba(233, 233, 237, .08); }
.nt-hero__btn--primary { color: var(--nt-accent-light); border-color: var(--nt-accent-light); }
.nt-hero__btn--primary:hover { color: var(--nt-accent-light); background: rgba(232, 113, 26, .18); border-color: var(--nt-accent-light); }

/* brands */
.nt-top-brands { padding: 11.2px; background: var(--nt-dark); }
.nt-top-brands__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11.2px; }
.nt-top-brands .nt-card { background: var(--nt-bg); }
.nt-card__img--wide { aspect-ratio: 2 / 1; background-size: cover; background-position: center; background-color: var(--nt-tint); }

/* search by vehicle */
.nt-top-search { padding: 64px 0 72px; }
.nt-top-search__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(24px, 5vw, 80px); align-items: start; margin-top: 20px; }
.nt-top-search__lead { margin: 16px 0 0; max-width: 44ch; font-size: 15px; line-height: 1.8; color: rgba(31, 33, 36, .78); }
.nt-top-search__form { display: flex; gap: 8.4px; margin-top: 24px; max-width: 440px; }
.nt-top-search__form input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; font: inherit; font-size: 16px; background: var(--nt-bg);
  border: 1px solid #d9dbe0; border-radius: var(--nt-radius);
}
.nt-top-search__form input:focus { border-color: var(--nt-accent); outline: none; box-shadow: 0 0 0 2px rgba(232, 113, 26, .25); }
.nt-top-regions { display: flex; flex-wrap: wrap; gap: 5.6px; }
.nt-top-region {
  display: inline-flex; align-items: center; gap: 5.6px; min-height: 40px; padding: 0 12px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--nt-accent-hover);
  background: transparent; border: 1px solid transparent; border-radius: var(--nt-radius);
}
.nt-top-region span { font-size: 12px; opacity: .7; font-feature-settings: "tnum" 1; }
.nt-top-region:hover { background: rgba(232, 113, 26, .1); }
.nt-top-region.is-active { color: var(--nt-accent); border-color: var(--nt-accent); }
.nt-top-makers {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; margin-top: 20px;
  background: var(--nt-line); border-radius: var(--nt-radius); overflow: hidden; box-shadow: var(--nt-shadow-sm);
}
.nt-top-makers[hidden] { display: none; }
.nt-top-makers a { display: block; padding: 11.2px 16.8px; background: var(--nt-bg); font-size: 14px; text-decoration: none; color: var(--nt-text); }
.nt-top-makers a:hover { background: var(--nt-accent-tint); color: #9d470b; }
.nt-top-cats { display: flex; flex-wrap: wrap; gap: 5.6px; margin-top: 20px; }
.nt-top-cats a { padding: 6px 12px; font-size: 12px; }

/* new items */
.nt-top-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* news */
.nt-top-news { padding-top: 0; }
.nt-top-news::before { content: ""; display: block; height: 1px; margin-bottom: 64px; background: linear-gradient(to right, transparent, rgba(31, 33, 36, .14) 48px calc(100% - 48px), transparent); }
.nt-top-news__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(24px, 5vw, 80px); }
.nt-news { border-bottom: 1px solid rgba(31, 33, 36, .14); }
.nt-news summary { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 0; cursor: pointer; list-style: none; }
.nt-news summary::-webkit-details-marker { display: none; }
.nt-news summary:hover .nt-news__title { color: var(--nt-accent); }
.nt-news__date { font-size: 13px; color: var(--nt-muted); font-feature-settings: "tnum" 1; }
.nt-news__title { font-size: 15px; font-weight: 500; }
.nt-news__body { margin: 0 5px 20px 136px; font-size: 14px; line-height: 1.8; color: rgba(31, 33, 36, .78); }
.nt-news__body p { margin: 0 0 8px; }

/* column (from WordPress) */
.nt-top-column { padding: 64px 0 72px; }
.nt-top-column[hidden] { display: none; }
.nt-top-column__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11.2px; align-items: stretch; }
.nt-top-column__grid.is-single { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.nt-top-column__rest { display: flex; flex-direction: column; gap: 11.2px; }
.nt-top-column .nt-col-card { background: var(--nt-bg); border-radius: var(--nt-radius); overflow: hidden; display: flex; flex-direction: column; color: var(--nt-text); text-decoration: none; }
.nt-top-column .nt-col-card:hover { box-shadow: var(--nt-shadow-md); }
.nt-top-column .nt-col-card__img { aspect-ratio: 16 / 9; background: var(--nt-dark); overflow: hidden; }
.nt-top-column .nt-col-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nt-top-column .nt-col-card__body { display: flex; flex-direction: column; gap: 8.4px; padding: 16.8px; }
.nt-top-column .nt-col-card__meta { display: flex; gap: 8.4px; align-items: center; }
.nt-top-column .nt-col-card__meta time { font-size: 12px; color: var(--nt-muted); font-feature-settings: "tnum" 1; }
.nt-top-column .nt-col-card__title { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 500; }
.nt-top-column .nt-col-card--big .nt-col-card__body { padding: 22.4px; }
.nt-top-column .nt-col-card--big .nt-col-card__title { font-size: 20px; line-height: 1.4; }
.nt-top-column .nt-col-card__excerpt { margin: 0; font-size: 14px; line-height: 1.8; color: var(--nt-muted); }
.nt-top-column__rest .nt-col-card { display: grid; grid-template-columns: minmax(140px, 40%) minmax(0, 1fr); flex: 1; }
.nt-top-column__rest .nt-col-card__img { aspect-ratio: auto; min-height: 110px; height: 100%; }

@media (max-width: 1100px) { .nt-top-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .nt-top-brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .nt-top-search__grid, .nt-top-news__grid, .nt-top-column__grid { grid-template-columns: minmax(0, 1fr); }
  .nt-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nt-hero__video { display: none; }
  .nt-hero { min-height: 560px; }
  .nt-hero__btn { width: 100%; padding: 0 16px; }
  .nt-hero__actions { flex-direction: column; }
  .nt-top-brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-top-section, .nt-top-search, .nt-top-column { padding-top: 40px; padding-bottom: 48px; }
  .nt-top-h2 { font-size: 24px; }
  .nt-news summary { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .nt-news__body { margin-left: 0; }
  .nt-top-column__rest .nt-col-card { grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); }
}
@media (max-width: 420px) { .nt-top-brands__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) { .nt-top-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .nt-hero__video { display: none; } }

/* tag links keep their own text colour: the generic "body.nt-shop a { color: inherit }" rule would otherwise
   turn the light text of dark tags into dark-on-dark (e.g. the category tags on the top page) */
body.nt-shop a.nt-tag--neutral, body.nt-shop a.nt-tag--neutral:hover { color: #fff; }
body.nt-shop a.nt-tag--neutral:hover { background: #595d6c; }
body.nt-shop a.nt-tag--accent, body.nt-shop a.nt-tag--accent:hover { color: var(--nt-accent-tint); }
