/* NST home page — sits inside the theme's header/footer */
.nst-home {
  --nst-forest: #033221;
  --nst-forest-2: #0b4430;
  --nst-ink: #18241e;
  --nst-linen: #eeebe4;
  --nst-line: #d6d2c8;
  --nst-brass: #a8844f;
  --nst-mute: #5f6b64;
  --nst-display: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif;
  color: var(--nst-ink);
  overflow-x: clip;
}
.nst-home .nst-wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
.nst-home h1, .nst-home h2 { color: var(--nst-forest); margin: 0; }
.nst-home .nst-display { font-family: var(--nst-display); font-weight: 600; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.12; text-wrap: balance; }
.nst-home .nst-title { font-family: var(--nst-display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.25; }
.nst-home .nst-lead { font-size: 1.1rem; line-height: 1.9; max-width: 34rem; margin: 1.2rem 0 0; color: color-mix(in srgb, var(--nst-ink) 82%, transparent); }
.nst-home .nst-muted { color: var(--nst-mute); margin-top: .75rem; }

.nst-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; font-weight: 500; text-decoration: none !important; transition: background-color .2s, color .2s, border-color .2s; }
.nst-btn--primary { background: var(--nst-forest); color: #fff !important; }
.nst-btn--primary:hover { background: var(--nst-forest-2); }
.nst-btn--outline { border: 1px solid var(--nst-forest); color: var(--nst-forest) !important; }
.nst-btn--outline:hover { background: var(--nst-forest); color: #fff !important; }
.nst-btn--light { background: #fff; color: var(--nst-forest) !important; }
.nst-btn--light:hover { background: var(--nst-linen); }
.nst-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.nst-link { color: var(--nst-forest) !important; font-weight: 500; text-decoration: underline; text-decoration-color: var(--nst-brass); text-underline-offset: 6px; white-space: nowrap; }

/* Hero */
.nst-hero { background: var(--nst-linen); }
.nst-hero__grid { display: grid; gap: 0; align-items: center; }
.nst-hero__text { padding-block: 40px 56px; order: 2; }
.nst-hero__media { order: 1; display: block; margin-inline: -16px; color: var(--nst-forest); text-decoration: none; }
.nst-hero__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e2ddd3; }
.nst-hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.nst-hero__media:hover img { transform: scale(1.02); }
@media (min-width: 1024px) {
  .nst-hero__grid { grid-template-columns: 5fr 7fr; gap: 48px; }
  .nst-hero__text { order: 1; padding-block: 96px; }
  .nst-hero__media { order: 2; margin: 40px 0; }
  .nst-hero__img { aspect-ratio: 5 / 4; border-radius: 8px; }
}

/* Dimension rule */
.nst-rule { display: flex; align-items: center; gap: 8px; margin: 16px 16px 0; font-size: 13px; color: var(--nst-forest); }
.nst-rule i { width: 1px; height: 16px; background: currentColor; }
.nst-rule b { flex: 1; height: 1px; background: currentColor; opacity: .7; }
.nst-rule em { font-style: normal; font-weight: 600; white-space: nowrap; padding: 0 4px; }
@media (min-width: 1024px) { .nst-rule { margin-inline: 0; } }

/* Promise strip */
.nst-promise { border-block: 1px solid var(--nst-line); background: #fff; }
.nst-promise__list { display: grid; grid-template-columns: 1fr 1fr; list-style: none; margin-block: 0; padding: 0; }
.nst-promise__list li { display: grid; gap: 4px; padding: 24px 16px 24px 0; padding-inline: 0 16px; }
.nst-promise__list li:nth-child(even) { border-inline-start: 1px solid var(--nst-line); padding-inline-start: 20px; }
.nst-promise__list li:nth-child(n+3) { border-top: 1px solid var(--nst-line); }
.nst-promise__list strong { color: var(--nst-forest); font-weight: 600; font-size: 1rem; }
.nst-promise__list span { color: var(--nst-mute); font-size: .9rem; line-height: 1.6; }
@media (min-width: 1024px) {
  .nst-promise__list { grid-template-columns: repeat(4, 1fr); }
  .nst-promise__list li { border-top: 0 !important; }
  .nst-promise__list li + li { border-inline-start: 1px solid var(--nst-line); padding-inline-start: 32px; }
}

/* Sections */
.nst-section { padding-block: 56px; }
@media (min-width: 1024px) { .nst-section { padding-block: 80px; } }
.nst-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.nst-home ul.products { margin-bottom: 0 !important; }

/* Rooms */
.nst-rooms { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
.nst-rooms::-webkit-scrollbar { display: none; }
.nst-rooms li { flex: 0 0 42%; scroll-snap-align: start; }
.nst-rooms a { display: block; text-decoration: none; color: var(--nst-forest); }
.nst-rooms__img { display: block; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--nst-linen); }
.nst-rooms__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.nst-rooms a:hover img { transform: scale(1.04); }
.nst-rooms__name { display: block; margin-top: 12px; font-weight: 600; }
@media (min-width: 768px) { .nst-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; overflow: visible; margin: 0; padding: 0; } .nst-rooms li { flex: none; } }
@media (min-width: 1200px) { .nst-rooms { grid-template-columns: repeat(6, 1fr); } }

/* Feature (sofa in a box) */
.nst-feature { display: grid; background: var(--nst-forest); color: #fff; }
.nst-feature__img { aspect-ratio: 4 / 3; overflow: hidden; }
.nst-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.nst-feature__text { padding: 56px 24px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
.nst-feature__text .nst-title { color: #fff; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.nst-feature__text p { color: rgba(255,255,255,.82); font-size: 1.1rem; line-height: 1.9; max-width: 30rem; margin: 0; }
@media (min-width: 1024px) {
  .nst-feature { grid-template-columns: 1fr 1fr; }
  .nst-feature__img { aspect-ratio: auto; min-height: 520px; }
  .nst-feature__text { padding: 64px clamp(48px, 6vw, 96px); }
}

/* Showrooms */
.nst-showrooms { display: grid; gap: 40px; }
.nst-branches { display: grid; gap: 1px; list-style: none; margin: 0; padding: 0; background: var(--nst-line); border: 1px solid var(--nst-line); border-radius: 8px; overflow: hidden; }
.nst-branches li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px; background: #fff; }
.nst-branches strong { color: var(--nst-forest); font-size: 1.15rem; }
.nst-branches span { color: var(--nst-mute); }
.nst-branches .nst-link { margin-top: 14px; }
@media (min-width: 768px) { .nst-branches { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nst-showrooms { grid-template-columns: 1fr 2fr; gap: 64px; } }

@media (prefers-reduced-motion: reduce) { .nst-home * { transition: none !important; } }

/* Product rails: same grid in every theme */
.nst-home ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin: 0 !important; padding: 0 !important; }
.nst-home ul.products::before, .nst-home ul.products::after { content: none !important; display: none !important; }
.nst-home .woocommerce { width: 100% !important; max-width: none !important; margin: 0 !important; }
.nst-home .woocommerce ul.products[class] > li.product.product { width: 100% !important; max-width: none !important; min-width: 0; justify-self: stretch; margin: 0 !important; float: none !important; clear: none !important; }

@media (min-width: 1024px) { .nst-home ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }

/* Reviews */
.nst-reviews { background: var(--nst-linen); padding-block: 56px; }
@media (min-width: 1024px) { .nst-reviews { padding-block: 80px; } }
.nst-reviews__list { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
.nst-reviews__list::-webkit-scrollbar { display: none; }
.nst-reviews__list li { flex: 0 0 82%; scroll-snap-align: start; }
.nst-reviews__list a, .nst-reviews__list img { display: block; }
.nst-reviews__list img { width: 100%; height: auto; border-radius: 8px; background: #fff; }
@media (min-width: 640px) { .nst-reviews__list li { flex-basis: 46%; } }
@media (min-width: 1024px) { .nst-reviews__list li { flex-basis: calc((100% - 32px) / 3); } .nst-reviews__list { margin: 0; padding: 0 0 8px; } }

/* Blog */
.nst-posts { display: grid; gap: 32px 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .nst-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nst-posts a { display: grid; gap: 8px; text-decoration: none; color: var(--nst-ink); }
.nst-posts__img { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--nst-linen); }
.nst-posts__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.nst-posts a:hover img { transform: scale(1.03); }
.nst-posts__date { color: var(--nst-mute); font-size: 13px; margin-top: 6px; }
.nst-posts__title { color: var(--nst-forest); font-weight: 600; font-size: 1.1rem; line-height: 1.6; }
