/*
Theme Name: New Tex
Description: قالب اختصاصی فروشگاه پارچه مبلی نیوتکس — طراحی Superdesign Warm Atelier
Version: 2.0.0
Text Domain: newtex
*/

@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Superdesign Direction A — Warm Atelier Tokens (swappable for OQ-2) */
  --ntx-bg: #FAF7F2;
  --ntx-surface: #FFFFFF;
  --ntx-surface-alt: #EDE4D8;
  --ntx-ink: #1F2421;
  --ntx-ink-muted: #4C554F;
  --ntx-accent: #9F4626;
  --ntx-accent-hover: #80351B;
  --ntx-accent-secondary: #2F4832;
  --ntx-border: #E5DDD0;
  --ntx-border-strong: #9A9082;
  --ntx-focus-ring: #1F2421;
  --ntx-credit-bg: #FFF6E5;
  --ntx-credit-ink: #7A4B00;
  --ntx-credit-border: #E0B86A;
  --ntx-shadow-sm: 0 2px 8px rgba(31, 36, 33, .05);
  --ntx-shadow-md: 0 10px 28px rgba(31, 36, 33, .08);
  --ntx-radius-sm: 10px;
  --ntx-radius-md: 16px;
  --ntx-radius-lg: 22px;
  --ntx-tap-min: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ntx-surface);
  color: var(--ntx-ink);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  direction: rtl;
  line-height: 1.85;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; touch-action: manipulation; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; touch-action: manipulation; }
button, .button, input[type=submit] { cursor: pointer; min-height: var(--ntx-tap-min); }
:focus-visible { outline: 3px solid var(--ntx-focus-ring); outline-offset: 2px; }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.01em; scroll-margin-top: 90px; }
p { text-wrap: pretty; }
.woocommerce-Price-amount, .card-price, .ntx-meter-live-total, .ntx-selected-color-bar { font-variant-numeric: tabular-nums; }

/* A11Y-03 Skip Link */
.skip-link {
  position: absolute;
  inset-block-start: -120px;
  inset-inline-start: 16px;
  background: var(--ntx-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--ntx-radius-sm);
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus { inset-block-start: 12px; }

.wrap { width: min(1240px, calc(100% - 32px)); margin: auto; }

/* Announcement & Sticky Glass Header */
.announcement {
  background: var(--ntx-ink);
  color: #FAF7F2;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 12px;
}
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ntx-border);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 0;
}
.brand {
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  color: var(--ntx-ink);
  direction: ltr;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  text-align: center;
  margin-top: 5px;
  color: var(--ntx-ink-muted);
}
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; flex: 1; }
.nav a { min-height: var(--ntx-tap-min); display: inline-flex; align-items: center; padding: 0 4px; white-space: nowrap; transition: color .15s; }
.nav a:hover, .footer a:hover { color: var(--ntx-accent); }

.ntx-drawer-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--ntx-tap-min);
  padding: 0 12px;
  border: 1px solid var(--ntx-border-strong);
  border-radius: var(--ntx-radius-sm);
  background: var(--ntx-bg);
  color: var(--ntx-ink);
  font-weight: 700;
  font-size: 13px;
}

.ntx-header-search { display: flex; align-items: center; gap: 6px; }
.ntx-header-search input[type="search"] {
  min-height: var(--ntx-tap-min);
  padding: 6px 14px;
  border: 1px solid var(--ntx-border);
  border-radius: 999px;
  font-size: 13px;
  width: 225px;
  background: var(--ntx-bg);
  transition: border-color .15s, width .2s;
}
.ntx-header-search input[type="search"]:focus { border-color: var(--ntx-ink); background: #fff; }
.ntx-header-search button {
  min-height: var(--ntx-tap-min);
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ntx-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.cart-link {
  border: 1px solid var(--ntx-border-strong);
  background: var(--ntx-bg);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  min-height: var(--ntx-tap-min);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .15s, background .15s;
}
.cart-link:hover { border-color: var(--ntx-ink); background: var(--ntx-surface-alt); }
.cart-link .ntx-cart-count {
  background: var(--ntx-accent);
  color: #fff;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Mobile Slide-Out Drawer */
.ntx-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 36, 33, .45);
  z-index: 950;
  display: none;
}
.ntx-drawer-backdrop.is-open { display: block; }
.ntx-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(320px, 86vw);
  background: var(--ntx-surface);
  z-index: 960;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  transform: translateX(105%);
  transition: transform .18s ease-out, visibility .18s ease-out;
  box-shadow: var(--ntx-shadow-md);
}
.ntx-drawer.is-open { visibility: visible; transform: translateX(0); }
.ntx-drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ntx-border); padding-bottom: 12px; margin-bottom: 14px; }
.ntx-drawer-close, .ntx-minicart-close { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--ntx-border); border-radius: var(--ntx-radius-sm); background: var(--ntx-bg); color: var(--ntx-ink); }
.woocommerce .woocommerce-breadcrumb a, .woocommerce .product_meta a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; }
.ntx-drawer-links { display: grid; gap: 6px; }
.ntx-drawer-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--ntx-tap-min);
  padding: 8px 12px;
  border-radius: var(--ntx-radius-sm);
  font-weight: 600;
}
.ntx-drawer-links a:hover { background: var(--ntx-bg); }

/* Editorial Split Hero (Superdesign v3.0 — Aesop + Land-book) */
.ntx-hero-split {
  background: var(--ntx-bg);
  border-bottom: 1px solid var(--ntx-border);
  padding: 36px 0 42px;
}
.ntx-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 36px;
  align-items: center;
}
.ntx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ntx-surface);
  border: 1px solid var(--ntx-border);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ntx-accent-secondary);
  letter-spacing: .5px;
}
.eyebrow { display: inline-block; font-size: 11px; letter-spacing: 2px; color: var(--ntx-accent-secondary); font-weight: 800; text-transform: uppercase; }
.ntx-hero-copy h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.28;
  margin: 14px 0;
  color: var(--ntx-ink);
  font-weight: 900;
}
.ntx-hero-copy h1 em { font-style: normal; color: var(--ntx-accent); }
.ntx-hero-copy p { max-width: 500px; color: var(--ntx-ink-muted); font-size: 15.5px; margin: 0 0 20px; }
.ntx-hero-swatches { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--ntx-border); }
.ntx-hero-swatches-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ntx-ink-muted); margin-bottom: 10px; }
.ntx-hero-swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ntx-hero-swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 10px;
  min-height: 42px;
  background: var(--ntx-surface);
  border: 1px solid var(--ntx-border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform .15s ease-out, border-color .15s ease-out;
}
.ntx-hero-swatch:hover { transform: translateY(-2px); border-color: var(--ntx-ink); }
.ntx-hero-swatch img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(0,0,0,.12); }

.ntx-hero-media { position: relative; border-radius: var(--ntx-radius-lg); overflow: hidden; box-shadow: var(--ntx-shadow-md); aspect-ratio: 4 / 3; background: var(--ntx-surface-alt); }
.ntx-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.ntx-hero-float {
  position: absolute;
  bottom: 16px;
  inset-inline-start: 16px;
  inset-inline-end: 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--ntx-radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ntx-hero-float strong { font-size: 13.5px; color: var(--ntx-ink); }
.ntx-hero-float span { font-size: 12px; color: var(--ntx-ink-muted); }

/* Visual Bento Collection Mosaic */
.ntx-bento-section { padding: 48px 0 24px; }
.ntx-bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ntx-bento-card {
  position: relative;
  border-radius: var(--ntx-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ntx-surface-alt);
  box-shadow: var(--ntx-shadow-sm);
}
.ntx-bento-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease-out; }
.ntx-bento-card:hover img { transform: scale(1.04); }
.ntx-bento-overlay {
  position: absolute;
  bottom: 14px;
  inset-inline: 14px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-radius: var(--ntx-radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ntx-bento-overlay small { display: block; font-size: 11.5px; color: var(--ntx-ink-muted); }
.ntx-bento-overlay h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ntx-ink); }
.ntx-bento-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ntx-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* Card badge & swatch count */
.card-img { position: relative; }
.ntx-card-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: rgba(255,255,255,.92);
  color: var(--ntx-ink);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
}
.card-dot-count { font-size: 11.5px; color: var(--ntx-ink-muted); font-weight: 600; margin-inline-start: 4px; }

/* Dark Charcoal Atelier Studio Band */
.ntx-atelier-studio {
  background: var(--ntx-ink);
  color: #FAF7F2;
  padding: 56px 0;
  margin: 24px 0;
}
.ntx-studio-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.ntx-studio-eyebrow { font-size: 11px; letter-spacing: 2px; color: #C5A880; font-weight: 800; }
.ntx-atelier-studio h2 { font-size: clamp(23px, 3vw, 32px); color: #fff; margin: 10px 0 12px; }
.ntx-atelier-studio p { color: #D7D2C8; font-size: 14.5px; margin-bottom: 20px; }
.ntx-studio-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.ntx-studio-pill {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  color: #FAF7F2;
  font-size: 13.5px;
  font-weight: 700;
}
.ntx-studio-pill.is-active, .ntx-studio-pill:hover { background: #C5A880; color: #1F2421; border-color: #C5A880; }
.ntx-studio-result {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(197,168,128,.35);
  border-radius: var(--ntx-radius-lg);
  padding: 26px;
}
.ntx-studio-res-label { display: block; font-size: 12px; color: #C5A880; font-weight: 700; }
.ntx-studio-res-val { display: block; font-size: clamp(28px, 3.2vw, 38px); font-weight: 900; color: #fff; margin: 8px 0; font-variant-numeric: tabular-nums; }
.ntx-studio-res-desc { margin: 0 0 18px !important; font-size: 13.5px !important; color: #D7D2C8; }
.ntx-studio-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ntx-studio-actions .primary { margin-top: 0; }
.ntx-studio-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--ntx-radius-sm);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}
.ntx-studio-ghost:hover { background: rgba(255,255,255,.1); }

/* Brand Story 2-Image Collage */
.ntx-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ntx-collage img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--ntx-radius-lg); box-shadow: var(--ntx-shadow-sm); }
.ntx-collage img:last-child { margin-top: 24px; }

@media (max-width: 900px) {
  .ntx-hero-grid, .ntx-studio-grid, .ntx-bento-grid { grid-template-columns: 1fr; }
  .ntx-hero-split { padding: 20px 0 28px; }
  .ntx-bento-grid { gap: 12px; }
  .ntx-collage img { height: 210px; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ntx-accent);
  color: #fff !important;
  border-radius: var(--ntx-radius-sm);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  min-height: var(--ntx-tap-min);
  transition: background .15s, transform .12s;
}
.primary:hover { background: var(--ntx-accent-hover); transform: translateY(-1px); }
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.9);
  color: var(--ntx-ink) !important;
  border: 1.5px solid var(--ntx-border-strong);
  border-radius: var(--ntx-radius-sm);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  min-height: var(--ntx-tap-min);
}
.secondary-btn:hover { background: #fff; border-color: var(--ntx-ink); }

/* Benefits Trust Strip */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0 10px;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
  padding: 16px 18px;
}
.benefit i {
  font-style: normal;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ntx-surface);
  border: 1px solid var(--ntx-border);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--ntx-accent);
  flex-shrink: 0;
}
.benefit strong { display: block; font-size: 14px; font-weight: 700; }
.benefit span { display: block; font-size: 12.5px; color: var(--ntx-ink-muted); }

/* Sections & NTX-049 Typography Micro-Pass */
.section, .cat-showcase, .all-cats, .ntx-blog-teaser { padding: 48px 0; }
.section.alt, .cat-showcase:nth-of-type(even) { background: var(--ntx-bg); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 4px 0; font-size: clamp(21px, 2.5vw, 27px); color: var(--ntx-ink); font-weight: 800; }
.section-head p { margin: 0; color: var(--ntx-ink-muted); font-size: 13.5px; }
.more {
  font-size: 14px;
  color: var(--ntx-accent);
  font-weight: 700;
  min-height: var(--ntx-tap-min);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 6px;
}
.more:hover { color: var(--ntx-accent-hover); }

/* Horizontal Category Swiper & Superdesign Product Cards */
.ntx-cat-swiper { padding: 6px 2px 16px; }
.ntx-scroll-btns { display: inline-flex; gap: 6px; align-items: center; }
.ntx-scroll-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ntx-border-strong);
  background: var(--ntx-surface);
  color: var(--ntx-ink);
  display: grid;
  place-items: center;
}
.ntx-scroll-btn:hover { background: var(--ntx-ink); color: #fff; border-color: var(--ntx-ink); }
.product-card {
  height: auto;
  background: var(--ntx-surface);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ntx-shadow-md);
  border-color: var(--ntx-border-strong);
}
.card-img {
  display: block;
  border-radius: var(--ntx-radius-sm);
  overflow: hidden;
  background: var(--ntx-surface-alt);
  aspect-ratio: 4 / 5;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease-out; }
.product-card:hover .card-img img { transform: scale(1.04); }
.product-card h3 { margin: 4px 0 0; font-size: 15px; font-weight: 700; color: var(--ntx-ink); line-height: 1.5; }
.card-dots { display: flex; gap: 5px; align-items: center; margin-top: 2px; }
.card-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,.22); }
.card-price { display: block; font-size: 13.5px; font-weight: 700; color: var(--ntx-accent-secondary); margin-top: auto; }
.card-cta { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--ntx-accent); }

/* Brand Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.story-image { height: 340px; object-fit: cover; width: 100%; border-radius: var(--ntx-radius-lg); box-shadow: var(--ntx-shadow-sm); }
.story h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.5; margin: 8px 0 12px; }
.story p { color: var(--ntx-ink-muted); font-size: 15px; margin-bottom: 18px; }

/* All Categories Chips */
.all-cats { background: var(--ntx-bg); border-top: 1px solid var(--ntx-border); }
.all-cats-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--ntx-tap-min);
  padding: 8px 18px;
  background: var(--ntx-surface);
  border: 1.5px solid var(--ntx-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .15s, background .15s;
}
.cat-chip:hover { border-color: var(--ntx-ink); background: var(--ntx-surface-alt); }
.cat-chip small { font-size: 12px; color: var(--ntx-ink-muted); font-weight: 500; }

/* NTX-046 Blog Teaser before Footer */
.ntx-blog-teaser { background: var(--ntx-surface); border-top: 1px solid var(--ntx-border); }
.ntx-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ntx-blog-card {
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ntx-blog-card h3, .ntx-blog-card h2 { margin: 0; font-size: 16px; line-height: 1.6; }
.ntx-blog-card p { margin: 0; font-size: 13.5px; color: var(--ntx-ink-muted); }

/* Scroll Reveal */
.ntx-js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
.ntx-js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ntx-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Footer */
.footer { background: var(--ntx-ink); color: #fff; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer .brand { color: #fff; display: inline-block; margin-bottom: 10px; }
.footer .brand small { color: #D7D2C8; }
.footer p, .footer a { color: #D7D2C8; font-size: 13.5px; }
.footer h3 { font-size: 15px; margin-bottom: 10px; }
.footer-grid a:not(.brand) { display: flex; width: fit-content; align-items: center; min-height: 36px; margin: 2px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 30px; padding-top: 18px; font-size: 12px; color: #C2BCB2; }

.content { padding: 36px 0 72px; min-height: 440px; }
.notice-demo {
  background: var(--ntx-credit-bg);
  color: var(--ntx-credit-ink);
  border: 1px solid var(--ntx-credit-border);
  border-radius: var(--ntx-radius-sm);
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* WooCommerce Shop, Product Detail & Swatches */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ntx-surface);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
  padding: 12px;
  transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--ntx-shadow-md);
  border-color: var(--ntx-border-strong);
}
.woocommerce ul.products li.product img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--ntx-radius-sm); background: var(--ntx-surface-alt); }
.woocommerce ul.products li.product .ntx-card-badge { top: 20px; inset-inline-start: 20px; z-index: 2; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; line-height: 1.6; font-weight: 700; }
.woocommerce ul.products li.product .price { color: var(--ntx-accent-secondary); font-size: 13.5px; font-weight: 700; margin-top: auto; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background: var(--ntx-accent);
  color: #fff;
  border-radius: var(--ntx-radius-sm);
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  min-height: var(--ntx-tap-min);
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--ntx-accent-hover); color: #fff; }
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled { background: var(--ntx-accent) !important; opacity: .55; color: #fff !important; cursor: not-allowed; }
.woocommerce-message { border-top-color: var(--ntx-accent-secondary); background: var(--ntx-bg); border-radius: var(--ntx-radius-sm); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.woocommerce input.input-text, .woocommerce textarea, .woocommerce select {
  padding: 10px 12px;
  border: 1px solid var(--ntx-border-strong);
  border-radius: var(--ntx-radius-sm);
  min-height: var(--ntx-tap-min);
}
.woocommerce .quantity {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ntx-border-strong);
  border-radius: var(--ntx-radius-sm);
  background: var(--ntx-surface);
  overflow: hidden;
  vertical-align: middle;
}
.ntx-qty-step {
  width: 44px;
  min-height: 44px;
  border: 0;
  background: var(--ntx-bg);
  color: var(--ntx-ink);
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.ntx-qty-step:hover { background: var(--ntx-surface-alt); }
.woocommerce .quantity .qty {
  direction: ltr;
  text-align: center;
  font-variant-numeric: tabular-nums;
  width: 78px;
  min-height: 44px;
  border: 0;
  font-weight: 800;
  background: transparent;
}
.ntx-selected-color-bar {
  margin: 12px 0 10px;
  padding: 10px 14px;
  background: var(--ntx-surface-alt);
  border-radius: var(--ntx-radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ntx-ink);
  display: none;
  clear: both;
  width: 100%;
}
.ntx-selected-color-bar.is-visible { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
/* Single product 2-col luxury layout (min-width:0 prevents grid blowout at 1024-1440px) */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.woocommerce div.product > * { min-width: 0; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; max-width: 100%; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images { overflow: hidden; }
.woocommerce div.product div.images img { border-radius: var(--ntx-radius-md); border: 1px solid var(--ntx-border); }
.woocommerce div.product div.summary { background: var(--ntx-bg); border: 1px solid var(--ntx-border); border-radius: var(--ntx-radius-md); padding: 24px; container-type: inline-size; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ntx-accent-secondary); font-weight: 800; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product section.related.products { grid-column: 1 / -1; margin-top: 24px; }
@media (max-width: 860px) { .woocommerce div.product { grid-template-columns: minmax(0, 1fr); gap: 20px; } .woocommerce div.product div.summary { padding: 18px; } }
.ntx-unit { font-weight: 700; color: var(--ntx-ink-muted); margin-inline-start: 6px; }
.ntx-meter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.ntx-chip {
  min-height: var(--ntx-tap-min);
  padding: 6px 14px;
  border: 1.5px solid var(--ntx-border-strong);
  border-radius: 999px;
  background: var(--ntx-bg);
  color: var(--ntx-ink);
  font-size: 13px;
  font-weight: 700;
}
.ntx-chip:hover, .ntx-chip.is-active { background: var(--ntx-ink); color: #fff; border-color: var(--ntx-ink); }
.ntx-meter-live-total {
  margin: 10px 0;
  padding: 12px 16px;
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-sm);
  font-size: 14.5px;
  font-weight: 700;
}

/* Visual Color Swatch Pills */
.ntx-swatch-group { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 8px; }
.ntx-swatch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--ntx-tap-min);
  padding: 6px 14px;
  border: 1.5px solid var(--ntx-border-strong);
  border-radius: 999px;
  background: var(--ntx-surface);
  color: var(--ntx-ink);
  font-size: 14px;
  font-weight: 700;
  transition: border-color .15s, background .15s;
}
.ntx-swatch-pill:hover { border-color: var(--ntx-ink); }
.ntx-swatch-pill.is-selected { border-color: var(--ntx-ink); background: var(--ntx-bg); box-shadow: 0 0 0 2px var(--ntx-ink); }
.ntx-swatch-dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.22); flex-shrink: 0; }
.ntx-select-enhanced { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.ntx-in-cart-strip { margin: 12px 0; padding: 12px 14px; background: var(--ntx-bg); border: 1px solid var(--ntx-border); border-radius: var(--ntx-radius-sm); font-size: 13px; }
.ntx-in-cart-strip strong { display: block; margin-bottom: 6px; }
.ntx-in-cart-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ntx-in-cart-pill { background: var(--ntx-surface); border: 1px solid var(--ntx-border-strong); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }

.ntx-consult-form { max-width: 580px; background: var(--ntx-bg); border: 1px solid var(--ntx-border); border-radius: var(--ntx-radius-md); padding: 24px; display: grid; gap: 14px; }
.ntx-consult-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.ntx-consult-form input, .ntx-consult-form textarea, .ntx-consult-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--ntx-border-strong); border-radius: var(--ntx-radius-sm); min-height: var(--ntx-tap-min); background: #fff; }
.ntx-consult-msg { padding: 12px 14px; border-radius: var(--ntx-radius-sm); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.ntx-consult-msg.is-ok { background: #E9F4EC; color: #1B5E32; border: 1px solid #9FD1AE; }
.ntx-consult-msg.is-err { background: #FDECEC; color: #8A1F1F; border: 1px solid #E5A1A1; }
.ntx-credit-notice { background: var(--ntx-credit-bg); color: var(--ntx-credit-ink); border: 1px solid var(--ntx-credit-border); border-radius: var(--ntx-radius-sm); padding: 10px 12px; font-size: 13px; font-weight: 700; margin-top: 8px; }
.woocommerce-cart table.cart td.actions .coupon .input-text { min-width: 170px; }

/* Superdesign Luxury Textile Specs Grid & Meter Calculator */
.ntx-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0 18px;
  padding: 12px;
  background: var(--ntx-surface);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-sm);
}
.ntx-specs-grid div { display: flex; flex-direction: column; gap: 2px; padding: 4px 6px; }
.ntx-specs-grid span { font-size: 11.5px; color: var(--ntx-ink-muted); }
.ntx-specs-grid strong { font-size: 13px; color: var(--ntx-ink); font-weight: 700; }
.ntx-meter-calc {
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--ntx-surface);
  border: 1px dashed #C5A880;
  border-radius: var(--ntx-radius-sm);
}
.ntx-meter-calc summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ntx-ink); min-height: 36px; display: flex; align-items: center; }
.ntx-calc-hint { font-size: 12px; color: var(--ntx-ink-muted); margin: 8px 0; }
.ntx-calc-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.ntx-calc-btn {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--ntx-border-strong);
  border-radius: var(--ntx-radius-sm);
  background: var(--ntx-bg);
  font-size: 12px;
  font-weight: 700;
  color: var(--ntx-ink);
}
.ntx-calc-btn:hover { background: var(--ntx-ink); color: #fff; border-color: var(--ntx-ink); }
.ntx-calc-btn span { opacity: .8; font-weight: 500; }
/* Full-Site Superdesign v3.0: Shop, Cart, Checkout, Account, Blog & FiboSearch */
.ntx-fibosearch-wrap { min-width: 220px; }
.ntx-fibosearch-wrap .dgwt-wcas-search-wrapp { min-width: 100%; }
.ntx-fibosearch-wrap .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
  border-radius: 999px !important;
  border: 1px solid var(--ntx-border) !important;
  background: var(--ntx-bg) !important;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
  font-size: 13px !important;
  min-height: 44px !important;
  padding-inline-start: 16px !important;
  padding-inline-end: 42px !important;
}
.ntx-archive-hero {
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-lg);
  padding: 26px 28px;
  margin-bottom: 24px;
}
.ntx-archive-hero h1 { margin: 10px 0 6px; font-size: clamp(24px, 3vw, 34px); }
.ntx-archive-hero p { margin: 0; color: var(--ntx-ink-muted); font-size: 14px; }

/* Cart 2-Column Editorial Layout */
.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: 1.45fr .85fr;
  gap: 28px;
  align-items: start;
}
.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart table.shop_table {
  border: 1px solid var(--ntx-border) !important;
  border-radius: var(--ntx-radius-md) !important;
  background: var(--ntx-surface);
  overflow: hidden;
}
.woocommerce-cart table.shop_table th { background: var(--ntx-bg); color: var(--ntx-ink); font-weight: 800; padding: 14px 12px; }
.woocommerce-cart table.shop_table td { padding: 14px 12px; }
.woocommerce a.remove { min-width: 44px; min-height: 44px; display: inline-grid !important; place-items: center; font-size: 20px; }
.woocommerce-cart .cart-collaterals { width: 100%; }
.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  float: none !important;
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
  padding: 22px;
  position: sticky;
  top: 96px;
}
.ntx-cart-trust { margin: 12px 0 0; font-size: 12.5px; color: var(--ntx-ink-muted); text-align: center; }

/* Checkout 2-Column Editorial Layout */
.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: 1.2fr .95fr;
  gap: 28px;
  align-items: start;
}
.woocommerce-checkout #customer_details {
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
  padding: 24px;
}
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { width: 100% !important; float: none !important; }
.woocommerce-checkout #order_review_heading { display: none; }
.woocommerce-checkout #order_review {
  background: var(--ntx-surface);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
  padding: 22px;
  box-shadow: var(--ntx-shadow-sm);
  position: sticky;
  top: 96px;
}
.woocommerce-checkout #payment { background: var(--ntx-bg) !important; border-radius: var(--ntx-radius-sm) !important; margin-top: 16px; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--ntx-border) !important; padding: 14px !important; }
.woocommerce-checkout #payment div.payment_box { background: var(--ntx-surface) !important; border: 1px solid var(--ntx-border) !important; border-radius: var(--ntx-radius-sm) !important; }
.woocommerce-checkout #place_order { width: 100%; min-height: 48px; font-size: 15.5px; }

/* My Account Navigation Pills & Dashboard */
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 100% !important;
  float: none !important;
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
  padding: 12px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--ntx-radius-sm);
  font-weight: 700;
  font-size: 14px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--ntx-ink); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-content {
  width: 100% !important;
  float: none !important;
  background: var(--ntx-surface);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
  padding: 24px;
}
.ntx-account-status { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ntx-border); }

/* Creative Innovation: Live Sofa Color & Lighting Visualizer + 2x Macro Weave Zoom */
.ntx-visualizer {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--ntx-surface);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
}
.ntx-vis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.ntx-vis-head strong { font-size: 13px; color: var(--ntx-ink); }
.ntx-vis-modes { display: inline-flex; gap: 6px; }
.ntx-vis-btn {
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ntx-border-strong);
  background: var(--ntx-bg);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ntx-ink);
}
.ntx-vis-btn.is-active { background: var(--ntx-ink); color: #fff; border-color: var(--ntx-ink); }
.ntx-sofa-stage {
  border-radius: var(--ntx-radius-sm);
  padding: 14px;
  background: #F4EFE6;
  display: grid;
  place-items: center;
  transition: background-color .18s ease-out, filter .18s ease-out;
}
.ntx-sofa-stage.is-warm { background: #EFE3CE; filter: sepia(.14) saturate(1.08); }
.ntx-sofa-stage svg { width: 100%; max-width: 300px; height: auto; }
.ntx-sofa-caption { margin: 8px 0 0; font-size: 12px; color: var(--ntx-ink-muted); text-align: center; }

.ntx-zoom-toggle {
  margin-top: 10px;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--ntx-border-strong);
  border-radius: var(--ntx-radius-sm);
  background: var(--ntx-bg);
  color: var(--ntx-ink);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ntx-zoom-toggle.is-zoomed { background: var(--ntx-ink); color: #fff; border-color: var(--ntx-ink); }
.woocommerce-product-gallery__image { overflow: hidden; border-radius: var(--ntx-radius-md); }
.woocommerce-product-gallery__image img { transition: transform .18s ease-out; }
.woocommerce-product-gallery__image.is-macro-zoom img { transform: scale(1.85); cursor: zoom-out; }

/* Two-Tone Cushion Combo & Quick Mini-Cart Drawer */
.ntx-cushion-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ntx-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--ntx-ink-muted);
}
.ntx-cushion-dot {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ntx-border-strong);
  padding: 0;
}
.ntx-cushion-dot.is-active { border-color: var(--ntx-ink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ntx-ink); }

.ntx-minicart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(370px, 92vw);
  background: var(--ntx-surface);
  z-index: 970;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  visibility: hidden;
  transform: translateX(-105%);
  transition: transform .18s ease-out, visibility .18s ease-out;
  box-shadow: var(--ntx-shadow-md);
  overscroll-behavior: contain;
}
.ntx-minicart-drawer.is-open { visibility: visible; transform: translateX(0); }

/* Mobile Bottom Sheet Filter & Sticky Mobile Buy Bar (<=750px) */
.ntx-mobile-filter-trigger {
  display: none;
  width: 100%;
  min-height: 46px;
  margin-bottom: 14px;
  border: 1.5px solid var(--ntx-border-strong);
  border-radius: var(--ntx-radius-sm);
  background: var(--ntx-bg);
  color: var(--ntx-ink);
  font-weight: 800;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ntx-sticky-buy { display: none; }
@media (max-width: 750px) {
  .ntx-mobile-filter-trigger { display: inline-flex; }
  .ntx-filter-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 965;
    margin: 0;
    border-radius: 20px 20px 0 0;
    padding: 20px 18px max(22px, env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(31,36,33,.18);
    visibility: hidden;
    transform: translateY(105%);
    transition: transform .18s ease-out, visibility .18s ease-out;
  }
  .ntx-filter-bar.is-sheet-open { visibility: visible; transform: translateY(0); }
  .ntx-sticky-buy {
    position: fixed;
    bottom: 61px;
    inset-inline: 0;
    z-index: 915;
    background: rgba(250, 247, 242, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--ntx-border);
    padding: 8px 14px;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .ntx-sticky-buy.is-visible { display: flex; }
  .ntx-sticky-buy-info { font-size: 12px; font-weight: 700; min-width: 0; }
  .ntx-sticky-buy-info strong { display: block; color: var(--ntx-ink); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ntx-sticky-buy-btn { min-height: 44px; padding: 8px 16px; border: 0; border-radius: var(--ntx-radius-sm); background: var(--ntx-accent); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
}
.ntx-minicart-items { flex: 1; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.ntx-minicart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-sm);
  font-size: 13px;
}
.ntx-minicart-item strong { display: block; color: var(--ntx-ink); }
.ntx-minicart-item small { color: var(--ntx-ink-muted); font-variant-numeric: tabular-nums; }
.ntx-minicart-foot { border-top: 1px solid var(--ntx-border); padding-top: 14px; display: grid; gap: 8px; }

/* Cross-Site Atelier Pillars, Studio Memory, Breadcrumb & Rich Mini-Cart (v3.6) */
.ntx-atelier-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.ntx-pillar {
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}
.ntx-pillar strong { font-size: 14px; color: var(--ntx-ink); }
.ntx-pillar span { font-size: 12.5px; color: var(--ntx-ink-muted); line-height: 1.6; }
.ntx-pillar-link { transition: border-color .16s ease, transform .16s ease; }
.ntx-pillar-link:hover { border-color: var(--ntx-accent); transform: translateY(-2px); }

.ntx-studio-memory {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--ntx-surface-alt);
  border: 1px solid var(--ntx-border-strong);
  border-radius: var(--ntx-radius-sm);
  font-size: 12.5px;
  color: var(--ntx-ink);
}

.woocommerce .woocommerce-breadcrumb {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--ntx-ink-muted);
}
.woocommerce .woocommerce-breadcrumb a { color: var(--ntx-ink); font-weight: 700; }

.ntx-minicart-progress {
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ntx-ink);
  display: grid;
  gap: 6px;
}
.ntx-minicart-bar { height: 7px; background: var(--ntx-border); border-radius: 999px; overflow: hidden; }
.ntx-minicart-bar > span { display: block; height: 100%; background: var(--ntx-accent-secondary); border-radius: 999px; transition: width .2s ease; }
.ntx-minicart-thumb { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 8px; overflow: hidden; border: 1px solid var(--ntx-border); }
.ntx-minicart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ntx-minicart-remove {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ntx-ink-muted);
}
.ntx-minicart-remove:hover { background: var(--ntx-surface-alt); color: var(--ntx-accent); }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.ntx-back-top {
  background: rgba(255,255,255,.08);
  color: #FAF7F2;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  min-height: 44px;
}
.ntx-back-top:hover { background: var(--ntx-accent); border-color: var(--ntx-accent); }

.ntx-mobile-bar a.is-active { color: var(--ntx-accent); position: relative; }
.ntx-mobile-bar a.is-active::before {
  content: '';
  position: absolute;
  top: -6px;
  width: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--ntx-accent);
}

@media (max-width: 750px) {
  .ntx-atelier-pillars { grid-template-columns: 1fr; gap: 10px; }
}

/* Interactive Textile Matchmaker & Physical Swatch Request (v3.7) */
.ntx-matchmaker-section { padding: 48px 0; background: var(--ntx-bg); border-bottom: 1px solid var(--ntx-border); }
.ntx-match-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ntx-match-tab {
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ntx-border-strong);
  background: var(--ntx-surface);
  color: var(--ntx-ink);
  font-size: 12.5px;
  font-weight: 700;
}
.ntx-match-tab.is-active, .ntx-match-tab:hover { background: var(--ntx-ink); color: #fff; border-color: var(--ntx-ink); }
.ntx-match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ntx-match-card {
  background: var(--ntx-surface);
  border: 1.5px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
  padding: 20px;
  display: grid;
  gap: 14px;
  align-content: start;
  transition: border-color .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.ntx-match-card.is-highlighted { border-color: var(--ntx-accent); box-shadow: var(--ntx-shadow-md); }
.ntx-match-card.is-dimmed { opacity: .55; }
.ntx-match-top { display: grid; gap: 6px; }
.ntx-match-top strong { font-size: 17px; color: var(--ntx-ink); }
.ntx-match-tag {
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ntx-surface-alt);
  color: var(--ntx-ink);
  font-size: 11.5px;
  font-weight: 700;
}
.ntx-match-specs { margin: 0; display: grid; gap: 8px; border-top: 1px solid var(--ntx-border); border-bottom: 1px solid var(--ntx-border); padding: 12px 0; }
.ntx-match-specs > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.ntx-match-specs dt { color: var(--ntx-ink-muted); font-weight: 600; }
.ntx-match-specs dd { margin: 0; color: var(--ntx-ink); font-weight: 700; }

.ntx-sample-btn {
  margin-top: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px dashed var(--ntx-accent-secondary);
  border-radius: var(--ntx-radius-sm);
  background: var(--ntx-bg);
  color: var(--ntx-accent-secondary);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ntx-sample-btn:hover { background: var(--ntx-accent-secondary); color: #fff; border-style: solid; }

@media (max-width: 900px) {
  .ntx-match-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Blog Meta Parity & Cross-Fabric Saved Palette (v3.8) */
.ntx-blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ntx-blog-read {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ntx-accent-secondary);
  background: var(--ntx-surface-alt);
  padding: 2px 9px;
  border-radius: 999px;
}

.ntx-palette-btn {
  margin-top: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--ntx-border-strong);
  border-radius: var(--ntx-radius-sm);
  background: var(--ntx-surface);
  color: var(--ntx-ink);
  font-size: 13px;
  font-weight: 700;
}
.ntx-palette-btn.is-saved, .ntx-palette-btn:hover { background: var(--ntx-ink); color: #fff; border-color: var(--ntx-ink); }

.ntx-palette-bar {
  background: var(--ntx-bg);
  border-top: 2px solid var(--ntx-accent);
  padding: 20px 0;
}
.ntx-palette-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ntx-palette-inner > div:first-child strong { display: block; font-size: 15px; color: var(--ntx-ink); }
.ntx-palette-inner > div:first-child span { font-size: 12.5px; color: var(--ntx-ink-muted); }
.ntx-palette-list { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.ntx-palette-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--ntx-surface);
  border: 1px solid var(--ntx-border-strong);
  border-radius: 999px;
  min-height: 44px;
}
.ntx-palette-chip a { display: grid; line-height: 1.3; }
.ntx-palette-chip a strong { font-size: 12.5px; color: var(--ntx-ink); }
.ntx-palette-chip a small { font-size: 11px; color: var(--ntx-ink-muted); }
.ntx-palette-del {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ntx-surface-alt);
  color: var(--ntx-ink);
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.ntx-palette-del:hover { background: var(--ntx-accent); color: #fff; }

/* Full-Width WC Flow, Checkout Stepper, Order Tracking & Moodboards (v3.9) */
.ntx-wc-page { width: 100%; }
.ntx-page-shell { max-width: 860px; margin: auto; }
.ntx-checkout-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ntx-checkout-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--ntx-radius-sm);
  border: 1px solid var(--ntx-border);
  background: var(--ntx-surface);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ntx-ink-muted);
}
.ntx-checkout-steps li span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: var(--ntx-surface-alt);
  color: var(--ntx-ink);
  display: grid;
  place-items: center;
  font-size: 12px;
}
.ntx-checkout-steps li.is-active { border-color: var(--ntx-accent); color: var(--ntx-ink); }
.ntx-checkout-steps li.is-active span { background: var(--ntx-accent); color: #fff; }
.ntx-checkout-steps li.is-done { border-color: var(--ntx-accent-secondary); color: var(--ntx-ink); }
.ntx-checkout-steps li.is-done span { background: var(--ntx-accent-secondary); color: #fff; }

form.track_order {
  max-width: 580px;
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
  padding: 24px;
}

.ntx-moodboards { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ntx-mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border-strong);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ntx-ink);
  transition: border-color .15s ease, transform .15s ease;
}
.ntx-mood-pill:hover { border-color: var(--ntx-accent); transform: translateY(-1px); }
.ntx-mood-dots { display: inline-flex; }
.ntx-mood-dots i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #fff; display: block; margin-inline-start: -4px; }
.ntx-mood-dots i:first-child { margin-inline-start: 0; }

@media (max-width: 750px) {
  .ntx-checkout-steps { grid-template-columns: 1fr; gap: 6px; }
}

/* Side-by-Side Color Swatch Comparison */
.ntx-compare-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ntx-border);
}
.ntx-compare-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--ntx-ink-muted); }
.ntx-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 8px;
  border-radius: var(--ntx-radius-sm);
  overflow: hidden;
  border: 1px solid var(--ntx-border-strong);
}
.ntx-compare-half { padding: 14px 10px; text-align: center; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); min-height: 62px; display: grid; place-items: center; }

/* Blog Journal & Single Article Reading Layout */
.ntx-blog-date { display: block; font-size: 12px; color: var(--ntx-ink-muted); font-weight: 600; }
.ntx-single-article { max-width: 780px; margin: auto; }
.ntx-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.ntx-article-meta time { font-size: 13px; color: var(--ntx-ink-muted); }
.ntx-single-article h1 { font-size: clamp(26px, 3.5vw, 38px); line-height: 1.4; margin: 0 0 20px; }
.ntx-article-body { font-size: 16px; line-height: 2; color: var(--ntx-ink); }
.ntx-article-cta {
  margin-top: 36px;
  padding: 24px;
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ntx-article-cta strong { display: block; font-size: 16px; margin-bottom: 4px; }
.ntx-article-cta p { margin: 0; font-size: 13.5px; color: var(--ntx-ink-muted); }

@media (max-width: 900px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout form.checkout,
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 20px; }
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-checkout #order_review { position: static; }
}

/* F6 / F11 Shop & Category Color Filter Bar */
.ntx-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 12px 14px;
  background: var(--ntx-bg);
  border: 1px solid var(--ntx-border);
  border-radius: var(--ntx-radius-md);
}
.ntx-filter-label { font-size: 13px; font-weight: 700; color: var(--ntx-ink-muted); margin-inline-end: 4px; }
.ntx-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 12px;
  border: 1.5px solid var(--ntx-border-strong);
  border-radius: 999px;
  background: var(--ntx-surface);
  font-size: 13px;
  font-weight: 700;
}
.ntx-filter-chip.is-active, .ntx-filter-chip:hover { background: var(--ntx-ink); color: #fff; border-color: var(--ntx-ink); }

@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; white-space: nowrap; }
  .ntx-header-search { margin-inline-start: auto; }
  .ntx-header-search input[type="search"] { width: 160px; }
}

@media (max-width: 750px) {
  body { padding-bottom: 72px; }
  .wrap { width: calc(100% - 24px); }
  .header-inner { min-height: 60px; gap: 6px; padding: 8px 0; }
  .brand { font-size: 19px; }
  .brand small { font-size: 7.5px; letter-spacing: 1.5px; }
  .ntx-drawer-toggle { display: inline-flex; padding: 0 8px; font-size: 12px; white-space: nowrap; }
  .nav { display: none; }
  .ntx-header-search { order: 4; flex-basis: 100%; }
  .ntx-header-search input[type="search"] { flex: 1; width: auto; }
  .cart-link { margin-inline-start: auto; padding: 5px 10px; font-size: 12px; gap: 5px; }
  .hero { min-height: 290px; max-height: 54vh; background-position: 62% center; margin-top: 12px; }
  .hero-content { width: 100%; padding: 22px 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { width: 100%; text-align: center; }
  .benefits { grid-template-columns: 1fr; gap: 10px; }
  .ntx-scroll-btns .ntx-scroll-btn { display: none; }
  .ntx-blog-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products, .woocommerce ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .woocommerce div.product form.cart .single_add_to_cart_button { width: 100%; margin-top: 10px; min-height: 48px; }
  .woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: 100% !important; float: none !important; }
  .woocommerce-cart table.shop_table_responsive tr {
    display: block;
    background: var(--ntx-bg);
    border: 1px solid var(--ntx-border);
    border-radius: var(--ntx-radius-md);
    padding: 12px;
    margin-bottom: 12px;
  }
  .woocommerce-cart table.shop_table_responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 4px !important;
    border: 0 !important;
    text-align: end;
  }
  .woocommerce-cart table.shop_table_responsive td.product-remove { justify-content: flex-end; padding-top: 0 !important; }
  .woocommerce-cart table.shop_table_responsive td.product-remove a.remove { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; font-size: 20px; }
  .woocommerce-cart table.shop_table_responsive td.product-thumbnail { justify-content: center; }
  .woocommerce-cart table.shop_table_responsive td.product-thumbnail img { width: 84px; border-radius: var(--ntx-radius-sm); }
  .woocommerce-cart table.cart td.actions { display: block !important; padding: 12px 0 !important; }
  .woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 8px; width: 100%; margin-bottom: 10px; }
  .woocommerce-cart table.cart td.actions .coupon .input-text { flex: 1; min-width: 0; }
  .woocommerce-cart table.cart td.actions button[name="update_cart"] { width: 100%; }
  .section, .cat-showcase, .all-cats, .ntx-blog-teaser { padding: 30px 0; }
  .story { grid-template-columns: 1fr; gap: 20px; }
  .story-image { height: 210px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .ntx-mobile-bar {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 920;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--ntx-border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 4px max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(31, 36, 33, .06);
  }
  .ntx-mobile-bar a, .ntx-mobile-bar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    background: transparent;
    border: 0;
    color: var(--ntx-ink);
    font-size: 11px;
    font-weight: 700;
  }
  .ntx-mobile-bar span.ico { font-size: 16px; line-height: 1; }
}
@media (min-width: 751px) { .ntx-mobile-bar { display: none; } }
