/*
 * Nếp Studio — editorial furniture showroom, styled with Astryx Stone tokens.
 * This stylesheet is loaded only on the shop page and WooCommerce archives.
 * All selectors are intentionally scoped so the rest of the live site remains intact.
 */
.nep-shop {
  --shop-serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-family-body: var(--nep-font, "Be Vietnam Pro", sans-serif);
  --font-family-heading: var(--shop-serif);
  --shop-paper: var(--color-background-body, var(--nep-paper));
  --shop-cream: var(--color-background-muted, var(--nep-surface));
  --shop-ink: var(--color-text-primary, var(--nep-ink));
  --shop-muted: var(--color-text-secondary, var(--nep-muted));
  --shop-green: var(--nep-accent);
  --shop-gold: var(--color-border-emphasized, var(--nep-line));
  --shop-card: var(--color-background-card, var(--nep-field));
  --shop-line: var(--color-border, var(--nep-line));
  background: var(--shop-paper);
  color: var(--shop-ink);
  overflow: clip;
}
.nep-shop .shop-breadcrumb-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 19px;
}
.nep-shop .shop-breadcrumb-wrap .breadcrumbs { margin: 0; font-size: 11px; color: var(--shop-muted); }
.nep-shop .shop-header-note { color: var(--shop-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }
.nep-shop .shop-hero {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  min-height: 615px;
  overflow: hidden;
  background: var(--shop-paper);
  color: var(--shop-ink);
}
.nep-shop .shop-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(46px, 5.6vw, 94px) clamp(30px, 4vw, 66px) 26px;
}
.nep-shop .shop-eyebrow {
  margin: 0 0 19px;
  color: var(--color-text-accent, var(--nep-accent));
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .16em;
  font-weight: 600;
  text-transform: uppercase;
}
.nep-shop .shop-hero h1 {
  font-family: var(--shop-serif);
  font-size: clamp(48px, 5.1vw, 77px);
  letter-spacing: -.05em;
  font-weight: 400;
  color: var(--shop-ink);
  line-height: 1.045;
  text-wrap: balance;
}
.nep-shop .shop-hero h1 em,
.nep-shop .shop-section-heading h2 em,
.nep-shop .shop-preview h3 em,
.nep-shop .shop-trade h2 em {
  font-family: var(--shop-serif);
  font-weight: 400;
  letter-spacing: -.045em;
}
.nep-shop .shop-hero-description {
  max-width: 43ch;
  margin: 28px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--shop-muted);
}
.nep-shop .shop-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 38px;
}
.nep-shop .shop-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 15px 23px;
  min-height: 53px;
  background: var(--shop-green);
  border: 1px solid var(--shop-green);
  color: var(--nep-on-accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  transition: background .2s ease, transform .2s ease;
}
.nep-shop .shop-action-primary:hover { background: var(--nep-accent-hover); color: var(--nep-on-accent); }
.nep-shop .shop-action-primary:active { transform: translateY(1px); }
.nep-shop .shop-action-primary span,
.nep-shop .shop-action-secondary span,
.nep-shop .shop-trade-button span { font-size: 19px; line-height: 1; }
.nep-shop .shop-action-secondary {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--shop-ink);
  padding: 11px 1px 9px;
  border-bottom: 1px solid var(--shop-ink);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}
.nep-shop .shop-action-secondary:hover { color: var(--nep-accent); border-color: var(--nep-accent); }
.nep-shop .shop-hero-quiet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 54px;
  color: var(--shop-muted);
  font-size: 10px;
  letter-spacing: .05em;
}
.nep-shop .shop-hero-index { font-family: var(--shop-serif); font-style: italic; font-size: 18px; color: var(--shop-muted); }
.nep-shop .shop-hero-image {
  position: relative;
  min-height: 615px;
  background: var(--color-background-muted, var(--nep-surface));
  isolation: isolate;
}
.nep-shop .shop-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 615px;
  object-fit: cover;
  object-position: 54% center;
}
.nep-shop .shop-image-caption {
  position: absolute;
  right: 23px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--shop-ink);
  background: var(--color-background-surface, var(--nep-field));
  background: color-mix(in srgb, var(--color-background-surface, var(--nep-field)) 92%, transparent);
  backdrop-filter: blur(5px);
  font-size: 10px;
  letter-spacing: .025em;
}
.nep-shop .shop-image-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--shop-green); }

.nep-shop .shop-manifesto {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 6vw;
  padding-block: 65px 75px;
  border-bottom: 1px solid var(--shop-line);
}
.nep-shop .shop-manifesto-lead {
  max-width: 32ch;
  font-family: var(--shop-serif);
  font-size: clamp(26px, 2.65vw, 38px);
  line-height: 1.28;
  letter-spacing: -.035em;
}
.nep-shop .shop-manifesto p {
  max-width: 43ch;
  color: var(--shop-muted);
  font-size: 13px;
  line-height: 1.95;
  margin: 0;
}

.nep-shop .shop-spaces { padding-block: 116px 122px; }
.nep-shop .shop-section-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(34px, 7vw, 112px);
  align-items: end;
  margin-bottom: 43px;
}
.nep-shop .shop-section-heading h2 {
  color: var(--nep-ink);
  font-family: var(--shop-serif);
  font-size: clamp(40px, 4.25vw, 63px);
  font-weight: 400;
  letter-spacing: -.048em;
  line-height: 1.14;
}
.nep-shop .shop-section-heading > p {
  max-width: 45ch;
  margin: 0 0 4px;
  color: var(--shop-muted);
  font-size: 13px;
  line-height: 1.88;
}
.nep-shop .shop-rooms {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
}
.nep-shop .shop-room {
  position: relative;
  isolation: isolate;
  display: block;
  min-width: 0;
  height: clamp(330px, 34vw, 480px);
  overflow: hidden;
  background: var(--color-background-muted, var(--nep-surface));
  color: var(--color-on-dark, #fff);
}
.nep-shop .shop-room img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.nep-shop .shop-room-living img { object-position: center; }
.nep-shop .shop-room-bedroom img { object-position: 52% center; }
.nep-shop .shop-room-kitchen img { object-position: 52% center; }
.nep-shop .shop-room:hover img, .nep-shop .shop-room:focus-visible img { transform: scale(1.055); }
.nep-shop .shop-room-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, transparent 38%, rgba(21,25,18,.13) 60%, rgba(17,25,20,.68) 100%);
  pointer-events: none;
}
.nep-shop .shop-room-content {
  position: absolute;
  inset: auto 28px 27px;
  z-index: 1;
  color: var(--color-on-dark, #fff);
}
.nep-shop .shop-room-content p { margin: 0 0 9px; color: var(--color-on-dark, #fff); font-size: 10px; letter-spacing: .10em; }
.nep-shop .shop-room-content h3 {
  color: var(--color-on-dark, #fff);
  font: 400 clamp(27px, 2.9vw, 40px)/1.2 var(--shop-serif);
  letter-spacing: -.035em;
}
.nep-shop .shop-room-cta {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  padding-bottom: 6px;
  margin-top: 17px;
  border-bottom: 1px solid rgba(255,255,255,.88);
  font-size: 11px;
  line-height: 1.4;
}
.nep-shop .shop-room-cta span { font-size: 17px; }
.nep-shop .shop-collection { padding-bottom: 122px; }
.nep-shop .shop-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  background: var(--shop-cream);
  color: var(--shop-ink);
  min-height: 480px;
}
.nep-shop .shop-preview-visual { position: relative; background: var(--color-background-muted, var(--nep-surface)); overflow: hidden; }
.nep-shop .shop-preview-visual img { height: 100%; width: 100%; object-fit: cover; }
.nep-shop .shop-preview-visual figcaption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  background: rgba(247,246,240,.92);
  padding: 8px 12px;
  color: var(--shop-ink);
  font-size: 10px;
}
.nep-shop .shop-preview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(35px, 4.7vw, 72px);
}
.nep-shop .shop-preview-mark { font-size: 32px; font-weight: 200; line-height: 1; color: var(--shop-green); margin-bottom: 29px; }
.nep-shop .shop-preview .shop-eyebrow { color: var(--color-text-accent, var(--nep-accent)); }
.nep-shop .shop-preview h3 {
  font: 400 clamp(33px, 3.5vw, 53px)/1.13 var(--shop-serif);
  letter-spacing: -.044em;
  color: var(--shop-ink);
}
.nep-shop .shop-preview-copy > p:not(.shop-eyebrow):not(.shop-preview-disclaimer) {
  max-width: 51ch;
  margin: 21px 0 26px;
  color: var(--shop-muted);
  font-size: 13px;
  line-height: 1.93;
}
.nep-shop .shop-preview .shop-preview-action { padding-inline: 22px; }
.nep-shop .shop-preview-disclaimer {
  margin-top: 27px;
  color: var(--shop-muted);
  font-size: 10px;
  line-height: 1.7;
}
.nep-shop .shop-live-catalog { padding-block: 10px 0; }
.nep-shop .shop-live-catalog .woocommerce-result-count,
.nep-shop .shop-live-catalog .woocommerce-ordering {
  display: inline-block;
  margin-bottom: 29px;
  color: var(--nep-muted);
  font-size: 12px;
}
.nep-shop .shop-live-catalog .woocommerce-ordering { float: right; }
.nep-shop .shop-live-catalog .woocommerce-ordering select {
  min-width: 180px;
  padding: 11px 12px;
  border: 1px solid var(--nep-line);
  background: var(--nep-field);
  color: var(--nep-ink);
}
.nep-shop .shop-live-catalog nav.woocommerce-pagination { clear: both; margin-top: 30px; }
.nep-shop .shop-trade {
  background: #2c3d34;
  color: #f6f3ea;
}
.nep-shop .shop-trade-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(50px, 10vw, 145px);
  align-items: end;
  padding-block: clamp(82px, 8vw, 130px);
}
.nep-shop .shop-trade .shop-eyebrow { color: #c2d0be; }
.nep-shop .shop-trade h2 {
  color: #f8f5eb;
  font: 400 clamp(40px, 4.3vw, 64px)/1.14 var(--shop-serif);
  letter-spacing: -.04em;
}
.nep-shop .shop-trade-detail p { max-width: 52ch; color: #d5dfd2; font-size: 14px; line-height: 1.92; }
.nep-shop .shop-trade-button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  min-width: 235px;
  margin-top: 22px;
  padding: 14px 0;
  border-bottom: 1px solid #c6d3c0;
  color: #f8f5eb;
  font-size: 12px;
}
.nep-shop .shop-trade-button:hover { color: white; border-color: white; }
.nep-shop .shop-bottom-note { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px 40px; color: var(--shop-muted); font-size: 11px; }
.nep-shop .shop-bottom-note a { border-bottom: 1px solid var(--shop-line); padding-bottom: 3px; }
.nep-shop .shop-bottom-note a span { margin-left: 8px; }

/* WooCommerce uses fixed widths / floats in its classic 4-column rule.
   Reset those rules rather than giving product cards a 95px intrinsic width. */
body.nep.woocommerce .shop-live-catalog ul.products,
body.nep.woocommerce .nep-category-archive ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--spacing-6, clamp(18px, 2.1vw, 30px)) !important;
  clear: both;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.nep.woocommerce .shop-live-catalog ul.products::before,
body.nep.woocommerce .shop-live-catalog ul.products::after,
body.nep.woocommerce .nep-category-archive ul.products::before,
body.nep.woocommerce .nep-category-archive ul.products::after { display: none !important; content: none !important; }
body.nep.woocommerce .shop-live-catalog ul.products li.product,
body.nep.woocommerce .nep-category-archive ul.products li.product {
  float: none !important;
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  border-radius: 0;
  box-shadow: none;
  background: var(--color-background-card, var(--nep-field));
  border: 1px solid var(--color-border, var(--nep-line));
}
body.nep.woocommerce .shop-live-catalog ul.products li.product > a.woocommerce-LoopProduct-link,
body.nep.woocommerce .nep-category-archive ul.products li.product > a.woocommerce-LoopProduct-link { display: block; flex: 1 1 auto; }
body.nep.woocommerce .shop-live-catalog ul.products li.product img,
body.nep.woocommerce .nep-category-archive ul.products li.product img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; margin: 0; }
body.nep.woocommerce .shop-live-catalog ul.products .woocommerce-loop-product__title,
body.nep.woocommerce .nep-category-archive ul.products .woocommerce-loop-product__title {
  padding: 19px 22px 3px;
  color: var(--shop-ink, var(--nep-ink));
  font-family: var(--font-family-heading, var(--nep-font));
  font-size: var(--text-heading-4-size, 21px);
}
body.nep.woocommerce .shop-live-catalog ul.products .price,
body.nep.woocommerce .nep-category-archive ul.products .price { padding: 0 22px 12px; margin: 0; color: var(--shop-muted, var(--nep-muted)); font-size: var(--text-body-size, 14px); }
body.nep.woocommerce .shop-live-catalog ul.products .button,
body.nep.woocommerce .nep-category-archive ul.products .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: calc(100% - 44px);
  min-height: 47px;
  margin: 8px 22px 22px !important;
  padding: 12px 18px;
  background: var(--shop-green, var(--nep-accent));
  color: var(--nep-on-accent);
  border: 1px solid var(--shop-green, var(--nep-accent));
  border-radius: 0;
  font-size: 12px;
  white-space: normal;
  text-align: center;
}
body.nep.woocommerce .shop-live-catalog ul.products .button:hover,
body.nep.woocommerce .nep-category-archive ul.products .button:hover { background: var(--nep-accent-hover); color: var(--nep-on-accent); }
.nep-category-archive .nep-products { margin-top: 35px; }

@media (max-width: 1180px) {
  .nep-shop .shop-hero { min-height: 565px; }
  .nep-shop .shop-hero-image, .nep-shop .shop-hero-image img { min-height: 565px; }
  .nep-shop .shop-hero-copy { padding-inline: 32px; }
  .nep-shop .shop-hero h1 { font-size: clamp(46px, 5.1vw, 63px); }
  .nep-shop .shop-hero-actions { gap: 16px; }
  .nep-shop .shop-room { height: 390px; }
  .nep-shop .shop-room-content { inset-inline: 22px; }
}
@media (max-width: 960px) {
  .nep-shop .shop-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 500px; }
  .nep-shop .shop-hero-image, .nep-shop .shop-hero-image img { min-height: 500px; }
  .nep-shop .shop-hero-copy { padding: 38px 28px 22px; }
  .nep-shop .shop-hero h1 { font-size: clamp(40px, 5.4vw, 53px); }
  .nep-shop .shop-hero-description { font-size: 13px; margin-top: 22px; }
  .nep-shop .shop-hero-actions { margin-top: 27px; }
  .nep-shop .shop-hero-quiet { padding-top: 29px; }
  .nep-shop .shop-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nep-shop .shop-room-living { grid-column: 1 / -1; }
  .nep-shop .shop-room-living { height: 360px; }
  .nep-shop .shop-room { height: 340px; }
  .nep-shop .shop-room-living { height: 370px; }
  .nep-shop .shop-preview { min-height: 430px; }
  .nep-shop .shop-preview-copy { padding: 34px; }
  body.nep.woocommerce .shop-live-catalog ul.products,
  body.nep.woocommerce .nep-category-archive ul.products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 767px) {
  .nep-shop .shop-breadcrumb-wrap { padding-block: 17px; }
  .nep-shop .shop-header-note { display: none; }
  .nep-shop .shop-hero { grid-template-columns: 1fr; }
  .nep-shop .shop-hero-copy { padding: 48px 28px 26px; }
  .nep-shop .shop-hero h1 { font-size: clamp(44px, 9.9vw, 62px); }
  .nep-shop .shop-hero-description { font-size: 14px; line-height: 1.8; }
  .nep-shop .shop-hero-quiet { padding-top: 39px; }
  .nep-shop .shop-hero-image, .nep-shop .shop-hero-image img { min-height: 340px; height: 340px; }
  .nep-shop .shop-hero-image img { object-position: center; }
  .nep-shop .shop-image-caption { right: 12px; bottom: 12px; }
  .nep-shop .shop-manifesto { grid-template-columns: 1fr; gap: 17px; padding-block: 47px 52px; }
  .nep-shop .shop-manifesto-lead { font-size: 28px; }
  .nep-shop .shop-spaces { padding-block: 74px 85px; }
  .nep-shop .shop-section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 31px; }
  .nep-shop .shop-section-heading h2 { font-size: clamp(38px, 9.5vw, 52px); }
  .nep-shop .shop-section-heading > p { font-size: 12px; }
  .nep-shop .shop-rooms { grid-template-columns: 1fr; gap: 16px; }
  .nep-shop .shop-room,
  .nep-shop .shop-room-living { height: clamp(310px, 88vw, 450px); grid-column: auto; }
  .nep-shop .shop-room-content { inset: auto 24px 23px; }
  .nep-shop .shop-collection { padding-bottom: 83px; }
  .nep-shop .shop-preview { grid-template-columns: 1fr; }
  .nep-shop .shop-preview-visual { min-height: 260px; max-height: 360px; }
  .nep-shop .shop-preview-visual img { aspect-ratio: 4 / 3; height: auto; min-height: 260px; }
  .nep-shop .shop-preview-copy { padding: 33px 28px 40px; }
  .nep-shop .shop-preview h3 { font-size: clamp(33px, 8.8vw, 46px); }
  .nep-shop .shop-trade-layout { grid-template-columns: 1fr; gap: 31px; padding-block: 70px; }
  .nep-shop .shop-trade h2 { font-size: clamp(40px, 9vw, 54px); }
  .nep-shop .shop-bottom-note { font-size: 10px; }
  .nep-shop .shop-live-catalog .woocommerce-ordering { float: none; display: block; width: 100%; }
  body.nep.woocommerce .shop-live-catalog ul.products,
  body.nep.woocommerce .nep-category-archive ul.products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 520px) {
  .nep-shop .shop-hero-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .nep-shop .shop-action-primary { width: 100%; justify-content: space-between; }
  .nep-shop .shop-action-secondary { align-self: flex-start; }
  .nep-shop .shop-preview-visual { min-height: 240px; }
  .nep-shop .shop-preview-visual img { min-height: 240px; }
  body.nep.woocommerce .shop-live-catalog ul.products,
  body.nep.woocommerce .nep-category-archive ul.products { grid-template-columns: 1fr !important; }
}
@media (prefers-color-scheme: dark) {
  .nep-shop {
    --shop-paper: var(--color-background-body, var(--nep-paper));
    --shop-cream: var(--color-background-muted, var(--nep-surface));
    --shop-ink: var(--color-text-primary, var(--nep-ink));
  }
  .nep-shop .shop-hero-description, .nep-shop .shop-preview-copy > p:not(.shop-eyebrow):not(.shop-preview-disclaimer) { color: var(--shop-muted); }
  .nep-shop .shop-preview-disclaimer, .nep-shop .shop-eyebrow { color: var(--color-text-secondary, var(--nep-muted)); }
  .nep-shop .shop-hero-quiet { color: var(--shop-muted); }
  .nep-shop .shop-action-secondary { color: var(--shop-ink); border-color: var(--shop-ink); }
  .nep-shop .shop-preview h3 { color: var(--shop-ink); }
}
@media (prefers-reduced-motion: reduce) {
  .nep-shop .shop-room img,
  .nep-shop .shop-action-primary { transition: none; }
}
