/*
 * NaqshMetal interface system 1.5.41
 * A single visual layer for the public site. Legacy component rules remain in
 * style.css for plugin compatibility; this file owns layout and presentation.
 */

:root {
  --bg: #0a0e11;
  --bg-deep: #070a0d;
  --panel: #12181d;
  --panel2: #182026;
  --panel-soft: #1d262d;
  --line: #2a343b;
  --line-soft: rgba(230, 215, 190, .12);
  --text: #f4f0e8;
  --muted: #a8b0b5;
  --accent: #c9a26a;
  --accent2: #9b6d36;
  --bronze: #c9a26a;
  --bronze-soft: #e1c28f;
  --light-surface: #eee8dc;
  --ink: #182027;
  --radius-sm: 10px;
  --radius: 15px;
  --radius-lg: 22px;
  --shadow: 0 20px 55px rgba(0, 0, 0, .24);
}

html {
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 78% -10%, rgba(201, 162, 106, .06), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--bronze-soft);
  outline-offset: 3px;
}

.wrap {
  width: min(1200px, calc(100% - 40px));
}

.section {
  padding: 64px 0;
}

.page {
  padding: 52px 0 72px;
}

.line {
  border-top-color: var(--line-soft);
}

.kicker {
  color: var(--bronze-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.section-head {
  align-items: end;
  margin-bottom: 26px;
}

.section-head h1,
.section-head h2,
.nm-pattern-overview h1,
.nm-custom-cta h2,
.nm-home-faq-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.025em;
}

.section-head h1 {
  margin: 7px 0 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
}

.section-head h2 {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.08;
}

.section-head p {
  max-width: 650px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
}

.nm-section-link,
.section-head > a {
  color: var(--bronze-soft);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

/* Header */
.header {
  position: sticky;
  z-index: 80;
  background: rgba(8, 12, 15, .92);
  border-bottom: 1px solid rgba(230, 215, 190, .13);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  backdrop-filter: blur(16px);
}

.header-in {
  min-height: 68px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 18px;
  letter-spacing: .055em;
}

.nm-logo-mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.nm-logo-wordmark {
  white-space: nowrap;
}

.nav {
  margin-left: auto;
}

.nav ul {
  gap: 24px;
}

.nav a {
  position: relative;
  padding: 22px 0;
  color: #d8dddf;
  font-size: 13px;
  font-weight: 650;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 1px;
  background: var(--bronze-soft);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.nav a:hover::after,
.nav .current-menu-item > a::after {
  transform: scaleX(1);
}

.nm-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nm-search-toggle,
.nm-menu-toggle {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  border-color: rgba(230, 215, 190, .18);
  background: rgba(255, 255, 255, .025);
}

.nm-language-switcher {
  border-color: rgba(230, 215, 190, .18);
  background: rgba(255, 255, 255, .025);
}

.nm-language-switcher a {
  min-width: 39px;
  height: 32px;
}

.nm-language-switcher a.is-active {
  background: var(--bronze-soft);
  color: #19140d;
}

.nm-header-whatsapp {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(201, 162, 106, .5);
  color: var(--bronze-soft);
  box-shadow: none;
}

.nm-header-search {
  background: #0c1115;
}

/* Buttons */
.btn {
  min-height: 46px;
  padding: 11px 18px;
  border-color: #38434a;
  border-radius: var(--radius-sm);
  background: #182026;
  font-size: 14px;
  font-weight: 750;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, filter .18s ease;
}

.btn:hover {
  border-color: var(--bronze);
  transform: translateY(-1px);
}

.btn-primary,
.nm-header-search-submit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.24), transparent 2px),
    linear-gradient(135deg, #dec08d, #b58245);
  color: #19140d;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 10px 24px rgba(116, 79, 35, .17);
}

/* Hero */
.nm-home-hero {
  min-height: 620px;
  padding: 80px 0 74px;
  align-items: center;
  border-bottom-color: var(--line-soft);
}

.nm-home-hero::after {
  background:
    linear-gradient(90deg, rgba(4, 7, 9, .97) 0%, rgba(4, 7, 9, .86) 35%, rgba(4, 7, 9, .25) 68%, rgba(4, 7, 9, .08) 100%),
    linear-gradient(0deg, rgba(4, 7, 9, .5), transparent 45%);
}

.nm-home-hero .nm-hero-content {
  max-width: 660px;
  padding: 0;
}

.nm-home-hero h1 {
  max-width: 650px;
  margin: 14px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.035em;
}

.nm-home-hero p {
  max-width: 580px;
  margin: 0;
  color: #d8dcdd;
  font-size: 17px;
  line-height: 1.6;
}

.nm-home-hero .actions {
  margin-top: 25px;
  gap: 10px;
}

.nm-home-hero .btn {
  min-height: 49px;
  padding: 12px 19px;
}

.nm-home-hero .actions .btn:not(.btn-primary) {
  border-color: rgba(225, 194, 143, .42);
  background: rgba(8, 12, 15, .62);
}

.nm-home-hero .nm-hero-points {
  margin-top: 18px;
  gap: 8px;
}

.nm-home-hero .nm-hero-points span {
  padding: 6px 9px;
  border-color: rgba(225, 194, 143, .24);
  background: rgba(8, 12, 15, .5);
  font-size: 11px;
}

.nm-hero-dots {
  bottom: 20px;
}

.nm-hero-dots button {
  width: 8px;
  min-width: 8px;
  height: 8px;
  min-height: 8px;
}

.nm-hero-dots button.is-active {
  width: 26px;
  min-width: 26px;
}

/* Proof figures */
.nm-proof-stats {
  padding: 0;
  background: #0d1216;
  border-bottom-color: var(--line-soft);
}

.nm-proof-stats-grid {
  gap: 0;
}

.nm-proof-stat {
  min-height: 104px;
  justify-content: flex-start;
  padding: 22px 30px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nm-proof-stat:last-child {
  border-right: 0;
}

.nm-proof-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-color: rgba(225, 194, 143, .28);
  border-radius: 50%;
  background: transparent;
}

.nm-proof-icon svg {
  width: 23px;
  height: 23px;
}

.nm-proof-copy strong {
  color: var(--text);
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 700;
}

.nm-proof-copy small {
  color: var(--muted);
  font-size: 12px;
}

/* Category showcase */
.nm-home-categories {
  padding: 56px 0;
}

.categories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category {
  border-color: var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 10px 30px rgba(0, 0, 0, .12);
}

.category-img,
.nm-home-categories .category-img {
  aspect-ratio: 1.7 / 1;
}

.category-img::after {
  background: linear-gradient(180deg, transparent 45%, rgba(5, 8, 10, .76));
}

.category-body {
  padding: 14px 16px 15px;
}

.category-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
}

.category-body .nm-category-count {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.nm-category-price {
  margin-top: 9px;
  padding-top: 9px;
  border-top-color: var(--line-soft);
}

.nm-category-price span {
  font-size: 11px;
}

.nm-category-price strong {
  color: var(--bronze-soft);
  font-size: 13px;
}

/* Pattern cards */
.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border-color: var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 10px 30px rgba(0, 0, 0, .1);
}

.card:hover {
  border-color: rgba(201, 162, 106, .55);
  transform: translateY(-3px);
}

.card .card-img {
  aspect-ratio: 1.32 / 1;
  background: #0e1418;
}

.card .card-img img {
  transition: transform .3s ease;
}

.card:hover .card-img img {
  transform: scale(1.025);
}

.card .card-body {
  padding: 13px 14px 15px;
}

.card .card-body h3 {
  font-size: 16px;
}

.card > .nm-favorite-button {
  right: 9px;
  top: 9px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  background: rgba(5, 8, 10, .54);
}

.card > .nm-favorite-button .nm-heart {
  font-size: 16px;
}

.nm-card-badges {
  left: 11px;
  top: 11px;
}

.nm-card-image-price {
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  background: rgba(5, 8, 10, .74);
  color: var(--bronze-soft);
  font-size: 11px;
}

/* Recent patterns use a deliberately lean card, even though the catalog
   plugin still supports its older detailed card elsewhere. */
.nm-recent-section .section-head p,
.nm-recent-section .card-body > p,
.nm-recent-section .card-meta,
.nm-recent-section .card-actions,
.nm-compare-button,
.nm-compare-floating,
.nm-header-compare {
  display: none !important;
}

.nm-recent-section .section-head {
  margin-bottom: 18px;
}

.nm-recent-section .nm-recent-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nm-recent-section .card-body {
  display: grid;
  gap: 4px;
  min-height: 70px;
}

.nm-recent-section .card-body .code {
  color: var(--bronze-soft);
  font-size: 10px;
  letter-spacing: .08em;
}

.nm-recent-section .card-body h3 {
  margin: 0;
}

/* Process and conversion blocks */
.nm-order-process {
  gap: 18px;
}

.nm-order-process article {
  min-height: 150px;
  padding: 18px;
  border-color: var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(201, 162, 106, .05), transparent 48%),
    var(--panel);
}

.nm-order-process article > span {
  color: var(--bronze-soft);
}

.nm-order-process h3 {
  margin: 14px 0 6px;
  font-size: 18px;
}

.nm-order-process p {
  color: var(--muted);
  font-size: 14px;
}

.nm-custom-cta {
  padding: 38px 42px;
  border: 1px solid rgba(201, 162, 106, .28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 0, rgba(201, 162, 106, .16), transparent 34%),
    #141b20;
  box-shadow: var(--shadow);
}

.nm-custom-cta h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
}

.nm-custom-cta p {
  max-width: 700px;
  color: var(--muted);
}

/* Catalog */
.post-type-archive-nm_pattern .page,
.tax-nm_use .page {
  padding: 40px 0 58px;
}

.nm-catalog-head {
  margin-bottom: 22px;
}

.nm-catalog-head p {
  max-width: 680px;
}

.nm-catalog-price-note {
  display: block;
  max-width: 720px;
  margin-top: 8px;
  color: #c7cdcf;
  font-size: 12px;
}

.nm-catalog-use-nav {
  display: flex;
  gap: 8px;
  margin: -2px 0 12px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nm-catalog-use-nav::-webkit-scrollbar {
  display: none;
}

.nm-catalog-use-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #10161a;
  color: #d7dcdd;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nm-catalog-use-nav a:hover,
.nm-catalog-use-nav a.is-active {
  border-color: rgba(201, 162, 106, .48);
  background: rgba(201, 162, 106, .08);
  color: var(--bronze-soft);
}

.nm-catalog-use-nav small {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: 10px;
}

.nm-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 15px;
  border: 1px solid rgba(201, 162, 106, .2);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(201, 162, 106, .055), transparent 34%),
    #10161a;
  overflow: hidden;
}

.nm-trust-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-right: 1px solid var(--line-soft);
}

.nm-trust-item:last-child {
  border-right: 0;
}

.nm-trust-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(201, 162, 106, .26);
  border-radius: 10px;
  background: rgba(201, 162, 106, .06);
  color: var(--bronze-soft);
}

.nm-trust-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nm-trust-item > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.nm-trust-item strong {
  color: #ece9e2;
  font-size: 12px;
  line-height: 1.25;
}

.nm-trust-item small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.nm-catalog-filter-wrap {
  margin-bottom: 18px;
}

.nm-catalog-mobile-tools {
  margin-bottom: 10px;
}

.catalog-filter.nm-catalog-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.8fr);
  gap: 12px;
  margin-bottom: 0;
  padding: 10px;
  border-color: var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.catalog-filter-search input,
.catalog-filter select {
  min-height: 44px;
  border-color: #354149;
  background: #0c1216;
}

.catalog-filter-search input:focus,
.catalog-filter select:focus {
  border-color: var(--bronze);
  outline: 0;
}

.nm-catalog-advanced-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(125px, 1fr)) auto;
  gap: 8px;
}

.nm-catalog-advanced-fields > select,
.nm-catalog-advanced-fields > .catalog-filter-actions {
  min-width: 0;
}

.catalog-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.catalog-filter-actions .btn {
  min-height: 44px;
  padding-inline: 13px;
}

.filter-result {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.nm-empty-state {
  border-color: var(--line-soft);
  background: var(--panel);
}

/* Pattern detail */
.nm-pattern-top {
  padding: 26px 0 42px;
}

.nm-breadcrumbs {
  margin-bottom: 12px;
  font-size: 11px;
}

.nm-pattern-back-row {
  margin-bottom: 16px;
}

.nm-pattern-back-button {
  min-height: 40px;
  padding: 8px 13px;
  border-color: var(--line-soft);
  background: transparent;
  font-size: 12px;
}

.nm-pattern-main-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: 24px;
}

.pattern-main {
  border-color: var(--line-soft);
  border-radius: var(--radius-lg);
  background: #0e1418;
  box-shadow: var(--shadow);
}

.pattern-thumbs {
  gap: 9px;
}

.pattern-thumb {
  width: 84px;
  height: 66px;
  border-color: var(--line-soft);
  border-radius: var(--radius-sm);
}

.nm-pattern-overview {
  top: 88px;
  padding: 22px;
  border-color: var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .17);
}

.nm-pattern-overview h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 4vw, 49px);
  line-height: 1.02;
}

.pattern-favorite-row {
  margin: 9px 0 0;
}

.pattern-favorite-row .nm-favorite-button {
  min-height: 40px;
  border-color: var(--line-soft);
  background: #0d1317;
  font-size: 12px;
}

.nm-pattern-extra {
  margin-top: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.nm-pattern-extra summary {
  color: #d6dbdc;
}

.nm-pattern-price {
  margin: 15px 0 13px;
  padding: 14px 15px;
  border-color: rgba(201, 162, 106, .3);
  background: rgba(201, 162, 106, .06);
}

.nm-pattern-price > strong {
  color: var(--bronze-soft);
}

.nm-pattern-actions {
  display: grid;
  gap: 8px;
}

.nm-pattern-actions .nm-main-order-button {
  margin: 0;
}

.nm-order-confidence {
  margin-top: 8px;
  text-align: center;
}

.nm-pattern-assurance {
  display: grid;
  margin-top: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #0d1317;
  overflow: hidden;
}

.nm-pattern-assurance > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.nm-pattern-assurance > div:last-child {
  border-bottom: 0;
}

.nm-pattern-assurance strong {
  color: #e7e3da;
  font-size: 11px;
}

.nm-pattern-assurance span {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

/* Order form and try-on */
.nm-quick-order-section {
  padding: 24px 0;
}

.nm-order-disclosure {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid rgba(201, 162, 106, .24);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .14);
  overflow: hidden;
}

.nm-order-disclosure > summary {
  position: relative;
  padding: 17px 54px 17px 20px;
  cursor: pointer;
  list-style: none;
}

.nm-order-disclosure > summary::-webkit-details-marker {
  display: none;
}

.nm-order-disclosure > summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  color: var(--bronze-soft);
  font-size: 27px;
  font-weight: 300;
  transform: translateY(-50%);
}

.nm-order-disclosure[open] > summary {
  border-bottom: 1px solid var(--line-soft);
}

.nm-order-disclosure[open] > summary::after {
  content: "−";
}

.nm-order-disclosure > summary span {
  display: grid;
  gap: 3px;
}

.nm-order-disclosure > summary strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.nm-order-disclosure > summary small {
  color: var(--muted);
  font-size: 12px;
}

.nm-order-disclosure .nm-quick-order {
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.nm-quick-order {
  max-width: 820px;
  padding: 24px;
  border-color: rgba(201, 162, 106, .25);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .16);
}

.nm-quick-order-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.nm-quick-order-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.nm-quick-field input,
.nm-quick-more input,
.nm-quick-more textarea {
  min-height: 48px;
  border-color: #354149;
  background: #0c1216;
}

.nm-quick-field input:focus,
.nm-quick-more input:focus,
.nm-quick-more textarea:focus {
  border-color: var(--bronze);
  outline: 0;
}

.nm-tryon-disclosure {
  margin: 13px 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #0e1418;
  overflow: hidden;
}

.nm-tryon-disclosure > summary {
  position: relative;
  padding: 15px 46px 15px 16px;
  color: #e0e3e3;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.nm-tryon-disclosure > summary::-webkit-details-marker {
  display: none;
}

.nm-tryon-disclosure > summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  color: var(--bronze-soft);
  font-size: 22px;
  transform: translateY(-50%);
}

.nm-tryon-disclosure[open] > summary::after {
  content: "−";
}

.nm-tryon-disclosure .nm-gate-tryon {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
}

.nm-phone-consent .nm-privacy-consent {
  border-color: var(--line-soft);
  background: #0c1216;
}

.nm-quick-submit {
  min-height: 52px;
}

/* Footer */
.footer {
  padding: 30px 0 16px;
  border-top-color: var(--line-soft);
  background: var(--bg-deep);
}

.nm-footer-grid {
  gap: 24px;
}

.nm-footer-brand p,
.nm-footer-column a,
.nm-footer-column span {
  color: var(--muted);
  font-size: 13px;
}

.nm-footer-column h3 {
  color: var(--text);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nm-footer-bottom {
  margin-top: 18px;
  padding-top: 13px;
  border-top-color: var(--line-soft);
  font-size: 11px;
}

.nm-floating-whatsapp {
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
}

/* Tablet navigation */
@media (min-width: 1101px) {
  .nm-menu-toggle,
  .nm-menu-overlay,
  .nm-mobile-menu-head,
  .nm-mobile-menu-extras {
    display: none !important;
  }

  .nav {
    display: block;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    transform: none;
    overflow: visible;
  }

  .nav ul {
    display: flex;
    flex-direction: row;
  }
}

@media (max-width: 1100px) {
  .header-in {
    min-height: 64px;
    gap: 7px;
  }

  .logo {
    order: 1;
  }

  .nm-header-actions {
    order: 2;
    margin-left: auto;
  }

  .nm-menu-toggle {
    display: block;
    order: 3;
    margin-left: 0 !important;
  }

  .nav {
    display: block;
    position: fixed;
    z-index: 92;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100dvh;
    margin: 0;
    padding: 82px 18px 24px;
    border-left: 1px solid var(--line);
    background: #0b1115;
    transform: translateX(105%);
    transition: transform .22s ease;
    overflow-y: auto;
  }

  .nav ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .nav a {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }

  .nav a::after {
    display: none;
  }

  .nm-menu-open .nav {
    transform: translateX(0);
  }

  .nm-mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -62px 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nm-menu-overlay {
    display: block;
    position: fixed;
    z-index: 90;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nm-menu-open .nm-menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nm-mobile-menu-extras {
    display: grid;
  }

  .nm-header-whatsapp {
    display: none;
  }

  .nm-pattern-main-grid {
    grid-template-columns: 1fr;
  }

  .nm-pattern-overview {
    position: static;
  }

  .catalog-filter.nm-catalog-filter-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .wrap {
    width: min(100% - 28px, 1200px);
  }

  .section {
    padding: 48px 0;
  }

  .page {
    padding: 38px 0 58px;
  }

  .nm-home-hero {
    min-height: 500px;
    padding: 46px 0 50px;
    align-items: flex-end;
  }

  .nm-home-hero::after {
    background:
      linear-gradient(0deg, rgba(4, 7, 9, .98) 0%, rgba(4, 7, 9, .83) 47%, rgba(4, 7, 9, .15) 82%),
      linear-gradient(90deg, rgba(4, 7, 9, .46), rgba(4, 7, 9, .03));
  }

  .nm-hero-slide img {
    object-position: 64% center;
  }

  .nm-home-hero h1 {
    max-width: 560px;
    font-size: clamp(38px, 8vw, 54px);
    line-height: 1.01;
  }

  .nm-home-hero p {
    font-size: 16px !important;
  }

  .nm-proof-stat {
    min-height: 92px;
    padding: 18px 14px;
  }

  .categories,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category:only-child,
  .card:only-child {
    grid-column: 1 / -1;
  }

  .nm-order-process {
    grid-template-columns: 1fr;
  }

  .nm-order-process article {
    min-height: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 17px 18px;
  }

  .nm-order-process h3 {
    grid-column: 2;
    margin: 1px 0 5px;
  }

  .nm-order-process p {
    grid-column: 2;
    margin: 0;
  }

  .nm-order-process article > span {
    grid-row: 1 / span 2;
    font-size: 13px;
  }

  .nm-custom-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px;
  }

  .nm-catalog-mobile-tools {
    display: flex;
  }

  .nm-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nm-trust-item:nth-child(2) {
    border-right: 0;
  }

  .nm-trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .catalog-filter.nm-catalog-filter-form {
    display: grid;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .catalog-filter-search input {
    background: var(--panel);
  }

  .nm-catalog-advanced-fields {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--panel);
  }

  .nm-catalog-filter-wrap.is-open .nm-catalog-advanced-fields {
    display: grid;
  }

  .catalog-filter-actions {
    grid-column: 1 / -1;
  }

  .nm-catalog-live-status {
    margin-top: 4px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 22px, 1200px);
  }

  .header-in {
    min-height: 60px !important;
  }

  .logo {
    gap: 6px;
    font-size: 15px !important;
  }

  .nm-logo-mark {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .nm-search-toggle,
  .nm-menu-toggle {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .nm-language-switcher {
    display: inline-flex !important;
  }

  .nm-language-switcher a {
    min-width: 34px;
    height: 30px;
    padding: 0 5px;
    font-size: 9px;
  }

  .nm-home-hero {
    min-height: 460px;
    padding: 34px 0 44px;
  }

  .nm-home-hero .kicker {
    font-size: 10px;
  }

  .nm-home-hero h1 {
    margin: 10px 0 13px;
    font-size: clamp(30px, 9vw, 38px) !important;
  }

  .nm-home-hero p {
    font-size: 15px !important;
    line-height: 1.48;
  }

  .nm-home-hero .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .nm-home-hero .btn {
    width: 100%;
    min-height: 45px;
    padding: 10px 14px;
    font-size: 14px !important;
  }

  .nm-home-hero .nm-hero-points {
    margin-top: 12px;
  }

  .nm-home-hero .nm-hero-points span {
    font-size: 10px;
  }

  .nm-proof-stats {
    padding: 0;
  }

  .nm-proof-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nm-proof-stat {
    min-height: 86px;
    padding: 11px 4px;
    gap: 6px;
    flex-direction: column;
    text-align: center;
  }

  .nm-proof-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .nm-proof-icon svg {
    width: 18px;
    height: 18px;
  }

  .nm-proof-copy strong {
    font-size: clamp(18px, 5.4vw, 23px);
  }

  .nm-proof-copy small {
    max-width: 92px;
    font-size: 9px;
  }

  .section {
    padding: 32px 0;
  }

  .nm-home-categories,
  .nm-order-section {
    padding: 26px 0;
  }

  .nm-home-categories .section-head,
  .nm-order-section .section-head {
    margin-bottom: 12px;
  }

  .section-head {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .section-head h1 {
    font-size: 38px;
  }

  .section-head h2 {
    font-size: 27px;
  }

  .section-head p {
    font-size: 14px !important;
    line-height: 1.5;
  }

  .section-head > a,
  .section-head > .nm-section-link {
    display: none;
  }

  .categories,
  .grid {
    gap: 9px;
  }

  .category {
    border-radius: 13px;
  }

  .category-img,
  .nm-home-categories .category-img {
    aspect-ratio: 1.45 / 1;
  }

  .nm-home-categories .category:only-child {
    display: grid;
    grid-template-columns: minmax(118px, 44%) minmax(0, 1fr);
    min-height: 122px;
  }

  .nm-home-categories .category:only-child .category-img {
    min-height: 122px;
    height: 100%;
    aspect-ratio: auto;
  }

  .category-body {
    padding: 10px;
  }

  .nm-home-categories .category:only-child .category-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .category-body h3 {
    font-size: 14px !important;
  }

  .category-body .nm-category-count {
    font-size: 10px !important;
  }

  .nm-category-price {
    align-items: flex-start;
    gap: 2px;
    margin-top: 6px;
    padding-top: 6px;
  }

  .nm-category-price span {
    font-size: 9px;
  }

  .nm-category-price strong {
    font-size: 11px;
  }

  .card {
    border-radius: 12px;
  }

  .card .card-img {
    aspect-ratio: 1.08 / 1;
  }

  .card .card-body {
    padding: 10px 10px 11px;
  }

  .card .card-body h3 {
    font-size: 14px !important;
  }

  .card > .nm-favorite-button {
    width: 28px;
    min-width: 28px;
    height: 28px;
  }

  .nm-card-image-price {
    padding: 5px 7px;
    font-size: 10px;
  }

  .nm-order-process { gap: 9px; }

  .nm-order-process article {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 9px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nm-order-process h3 {
    margin-bottom: 3px;
    font-size: 15px;
  }

  .nm-order-process p {
    font-size: 11px;
    line-height: 1.4;
  }

  .nm-order-process article > span {
    font-size: 11px;
  }

  .nm-recent-section .nm-recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nm-recent-section .card .card-img {
    aspect-ratio: 1.28 / 1;
  }

  .nm-recent-section .card-body {
    min-height: 58px;
    padding: 9px 10px 10px;
  }

  .nm-custom-cta {
    padding: 20px 18px;
  }

  .nm-custom-cta h2 {
    font-size: 28px;
  }

  .nm-custom-cta .btn {
    width: 100%;
  }

  .nm-catalog-advanced-fields {
    grid-template-columns: 1fr;
  }

  .post-type-archive-nm_pattern .page,
  .tax-nm_use .page {
    padding: 26px 0 46px;
  }

  .nm-catalog-head {
    margin-bottom: 14px;
  }

  .nm-catalog-head h1 {
    font-size: 34px;
  }

  .nm-catalog-head p {
    font-size: 14px;
  }

  .nm-catalog-price-note {
    margin-top: 6px;
    font-size: 11px;
  }

  .nm-catalog-use-nav {
    margin-bottom: 9px;
  }

  .nm-catalog-use-nav a {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .nm-trust-strip {
    margin-bottom: 11px;
    border-radius: 13px;
  }

  .nm-trust-item {
    gap: 8px;
    min-height: 56px;
    padding: 7px 8px;
  }

  .nm-trust-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .nm-trust-icon svg {
    width: 21px;
    height: 21px;
  }

  .nm-trust-item strong {
    font-size: 11px;
  }

  .nm-trust-item small {
    font-size: 9.5px;
  }

  .nm-trust-strip.is-compact .nm-trust-item small {
    display: none;
  }

  .catalog-filter-actions {
    grid-column: auto;
  }

  .nm-pattern-top {
    padding: 14px 0 22px;
  }

  .nm-breadcrumbs {
    display: none;
  }

  .nm-pattern-back-button {
    width: auto;
    min-height: 40px;
  }

  .nm-pattern-main-grid {
    gap: 12px;
  }

  .pattern-main {
    border-radius: 14px;
  }

  .nm-pattern-overview {
    padding: 16px;
    border-radius: 15px;
  }

  .nm-pattern-overview h1 {
    font-size: 34px;
  }

  .nm-quick-order-section {
    padding: 14px 0 18px;
  }

  .nm-order-disclosure {
    border-radius: 15px;
  }

  .nm-order-disclosure > summary {
    padding: 14px 46px 14px 15px;
  }

  .nm-order-disclosure > summary::after {
    right: 16px;
  }

  .nm-order-disclosure > summary strong {
    font-size: 19px;
  }

  .nm-quick-order {
    padding: 17px;
    border-radius: 15px;
  }

  .nm-quick-order-head {
    grid-template-columns: 68px 1fr;
  }

  .nm-quick-order-image {
    width: 68px;
    height: 58px;
  }

  .nm-quick-order-head h2 {
    font-size: 23px;
  }

  .nm-mobile-order-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    padding: 8px 8px 8px 11px;
    border: 1px solid rgba(201, 162, 106, .25);
    border-radius: 13px;
    background: rgba(8, 12, 15, .94);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .34);
  }

  .nm-mobile-order-bar .btn {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 12px;
  }

  .nm-floating-whatsapp {
    display: none;
  }

  .footer {
    padding: 24px 0 14px;
  }

  .nm-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .nm-footer-brand {
    grid-column: 1 / -1;
  }

  .nm-footer-brand p {
    margin: 8px 0 12px;
    line-height: 1.45;
  }

  .nm-footer-brand .btn {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 12px;
  }

  .nm-footer-column {
    gap: 6px;
  }

  .nm-footer-column h3 {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .nm-footer-brand p,
  .nm-footer-column a,
  .nm-footer-column span {
    font-size: 11px;
    line-height: 1.35;
  }

  .nm-footer-bottom {
    margin-top: 16px;
    padding-top: 11px;
    gap: 4px;
    font-size: 10px;
  }
}

@media (max-width: 390px) {
  .wrap {
    width: min(100% - 18px, 1200px);
  }

  .nm-logo-wordmark {
    display: none;
  }

  .nm-header-actions {
    gap: 2px;
  }

  .nm-language-switcher a {
    min-width: 31px;
  }

  .nm-home-hero h1 {
    font-size: clamp(30px, 9.2vw, 36px) !important;
  }
}

/* Let an authenticated owner review the real public mobile layout. */
@media (max-width: 782px) {
  html { margin-top: 0 !important; }
  #wpadminbar { display: none !important; }
}

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