/* =========================================================================
   NN Brand Showcase - the front row showcase (effort 15).

   Only what is new to the house is written here: the showcase's own edge and
   air, the band's photographic ground, the face (mark, name, one label line,
   one door), the sliding row's window and its arrows, and the light tile the
   shop's own card gains so its words read over a photograph. Nothing about a
   card's content is restated: the picture, the crop, the world line, the
   piece's name and the figure are the shop's own grid, with the shop's own
   sample mark.

   Numbers are the approved mock's (`.prototype/brand-front-row-showcase/`,
   the `shots/final2-*` pictures): card 350 wide on a computer and 200 on a
   phone, face column 360 wide and 40 from the row, band air 48 / 24 inside
   and one block pair at 192 / 112, row area 558 / 358 tall.

   House tokens only - ivory, charcoal, sand, stone - with the owner's own
   settled departure: every band carries a photographic textured ground.
   Nothing here is rounded and nothing here carries a shadow except the two
   arrows, which are the banner's own design in light.
   ========================================================================= */

/* --- 1. The showcase's edge, its air and its ground --------------------
   The whole block keeps the goods column's own edge - 24 on a computer, 16
   on a phone, one edge top to bottom - and every band carries 96 of air
   above and below on a computer, 56 on a phone, so two neighbouring bands
   sit 192 / 112 apart, which is the house's own block rhythm.

   The ground is one picture for the whole showcase, filling each band and
   cropped to fill at the centre. The shipped grey-stone texture is the
   fallback; the owner's own picture arrives as --nn-sc-ground and is never
   edited to crop. */

.nn-sc {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding-inline: 24px;
  background: var(--color-ivory, #F4F1EA);
  color: var(--color-charcoal, #20201F);
  font-family: var(--font-body, Manrope, sans-serif);
  -webkit-font-smoothing: antialiased;

  /* The row area's own height, and the card's width inside it: the same two
     numbers on a computer and on a phone, shared by a filled band's row and
     an empty band's words so the six blocks keep one rhythm. */
  --nn-sc-row-h: 558px;
  --nn-sc-card-w: 350px;
  --nn-sc-card-gap: 16px;

  /* The two tones' own tokens. The light tone is the shipped one: ivory
     words and white tiles over the grey-stone ground. */
  --nn-sc-word: var(--color-ivory, #F4F1EA);
  --nn-sc-tile: #ffffff;
  --nn-sc-tile-word: var(--color-charcoal, #20201F);
  --nn-sc-ground-image: var(--nn-sc-ground, url("ground-stone.jpg"));
}

/* A light picture takes charcoal words and the house's ivory tiles; the mark
   then shows exactly as the file holds it. */
.nn-sc--tone-dark {
  --nn-sc-word: var(--color-charcoal, #20201F);
  --nn-sc-tile: #F7F4EE;
  --nn-sc-tile-word: var(--color-charcoal, #20201F);
}

/* The builder wraps page content in its own narrow column. The wrapper that
   holds the showcase is widened to the window, exactly as the shop's grid,
   the strip and the brand sections do, so the bands can run the whole goods
   column. A showcase dropped on a plain page widens that page's column the
   same way. */

.e-con:has(> .nn-sc),
.elementor-element:has(> .nn-sc),
.page-content:has(> .nn-sc),
.site-main:has(> .page-content > .nn-sc) {
  box-sizing: border-box;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* The builder prints a lone closing tag after a shortcode, and the browser
   reads it as one more empty paragraph worth about 58px of phantom air. The
   measured pairs only hold when it draws nothing. **The rule is written so
   it can never match the showcase itself** - a paragraph beside it only. */

.e-con:has(> .nn-sc) > p:empty,
.elementor-element:has(> .nn-sc) > p:empty,
.page-content:has(> .nn-sc) > p:empty,
.nn-sc + p:empty {
  display: none;
}

/* --- 2. One band: its ground and its inner air ------------------------- */

.nn-sc__band {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 96px 0;
  padding: 48px 24px;
  background-color: var(--color-sand, #E8E1D6);
  background-image: var(--nn-sc-ground-image);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  color: var(--nn-sc-word);
  /* No rounding, no shadow, no border: the band's block stays square. */
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* --- 3. The face -------------------------------------------------------
   The mark where the brand owns one, the stored name, the shop's one label
   line where it has one, and one door into the brand's own section. */

.nn-sc__face {
  display: flex;
  flex: 0 0 360px;
  flex-direction: column;
  align-items: flex-start;
  width: 360px;
  max-width: 360px;
  min-width: 0;
  color: var(--nn-sc-word);
}

/* The mark is drawn exactly as the shop holds the file, scaled in its box
   and centred. On the light tone it reads ivory over the photograph (the
   house rule for a mark over a picture). A brand with no mark draws
   nothing at all - never a mark the house drew, never a stand-in. */

.nn-sc .nn-sc__mark {
  display: block;
  box-sizing: border-box;
  width: 88px;
  height: 88px;
  margin: 0 0 20px;
  padding: 0;
  line-height: 0;
}

.nn-sc .nn-sc__mark > .nn-sc__mark-img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: 50% 50%;
  border: 0;
  border-radius: 0;
  background: none;
}

.nn-sc--tone-light .nn-sc__mark > .nn-sc__mark-img {
  filter: invert(1);
}

.nn-sc .nn-sc__name {
  margin: 0;
  font-family: var(--font-body, Manrope, sans-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--nn-sc-word);
}

.nn-sc .nn-sc__label {
  margin: 12px 0 0;
  font-family: var(--font-body, Manrope, sans-serif);
  font-size: var(--type-body-lg-size, 16px);
  font-weight: var(--type-body-lg-weight, 400);
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--nn-sc-word);
}

/* The door: tracked capitals standing on a hairline rule. Two classes'
   worth of weight, because the page's own link rule (".page-content a")
   underlines every link inside page content. */

.nn-sc .nn-sc__door {
  display: inline-block;
  margin: 28px 0 0;
  padding: 0 0 3px;
  font-family: var(--font-body, Manrope, sans-serif);
  font-size: var(--type-label-md-size, 12px);
  font-weight: var(--type-label-md-weight, 600);
  line-height: 1.2;
  letter-spacing: 0.096em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--nn-sc-word);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}

.nn-sc .nn-sc__door:hover,
.nn-sc .nn-sc__door:focus-visible {
  text-decoration: none;
  opacity: 0.72;
}

.nn-sc .nn-sc__door:focus-visible {
  outline: 2px solid var(--nn-sc-word);
  outline-offset: 3px;
}

/* --- 4. The row's window ----------------------------------------------
   One window that clips at the band's inner edge, and one rail of cards
   inside it. With the script blocked nothing is transformed and nothing is
   clipped away: the rail wraps into a plain row of cards, every one of them
   a working link, and no arrow is drawn at all. */

.nn-sc__row {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.nn-sc__viewport {
  position: relative;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* The row area's own height, so a brand's band keeps one rhythm whether it
     holds pieces or stands the Coming Soon words. The cards are centred in
     it, which is what puts the arrows on the whole card's middle line. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--nn-sc-row-h, 558px);
  /* A sideways drag belongs to the row; an up-and-down one still scrolls
     the page. */
  touch-action: pan-y;
}

.nn-sc__viewport::-webkit-scrollbar {
  display: none;
}

/* Once the script says this row turns, it is the script that travels it:
   no native scrolling and no scrollbar. A standing band is not marked, so a
   finger can still scroll its cards sideways. */
.nn-sc__band--live .nn-sc__viewport {
  overflow-x: hidden;
}

/* A card is a link and a picture, and a browser's own image drag would take
   a drag out of the row's hands the moment the pointer moved: it cancels
   the stream and the row never follows. The pictures are not draggable. */

.nn-sc__viewport img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* The shop's own grid, turned from a wrapping block into one straight line
   of a fixed card width. The card itself is untouched: only how the cards
   stand beside each other is decided here. */

.nn-sc .nn-sc__grid {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.nn-sc .nn-sc__grid ul.products.nn-sc__rail {
  box-sizing: border-box;
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  column-gap: var(--nn-sc-card-gap, 16px);
  row-gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

/* Only once the script has said this row turns does the window stop
   scrolling natively and the rail become the line the script travels. A
   standing band is not marked, so a finger can still scroll it.

   The travel time is the owner's own, and it applies to a hand-made step
   too: the switch that leaves a row standing still stops the clock, it never
   turns a step into a jump. (Only a visitor who asked for less motion gets
   the instant jump, in the block below.) */

.nn-sc__band--live .nn-sc__viewport {
  overflow-x: hidden;
}

.nn-sc__band--live .nn-sc__grid ul.products.nn-sc__rail {
  transform: translate3d(0, 0, 0);
  transition: transform var(--nn-sc-travel, 0.5s) var(--nn-sc-easing, ease-in-out);
}

/* The copies are never pressable: they only give the row somewhere to travel
   to, and a mouse press on one must not open a piece. */

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.nn-sc__card--copy {
  pointer-events: none;
}

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.nn-sc__card--copy a {
  cursor: default;
}

/* --- 5. The shop's own card, on its light tile ------------------------
   The card's content is the shop's own and stays exactly as the grid draws
   it: the world line above the name, the name, the figure with its one
   sample mark, or the house words "Price on request". Only the tile under
   the words is new - and only here: the foot grid's cards stay bare. */

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product {
  box-sizing: border-box;
  flex: 0 0 var(--nn-sc-card-w);
  width: var(--nn-sc-card-w);
  max-width: var(--nn-sc-card-w);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

/* One card, one link. The shop's own list button is not part of the approved
   look: the card's four facts (picture, world, name, figure) are, and the
   whole card is the door to the piece. */

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product > .button,
.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product > .added_to_cart {
  display: none !important;
}

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product > a.woocommerce-LoopProduct-link {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 14px;
  background: var(--nn-sc-tile);
  color: var(--nn-sc-tile-word);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  gap: 0;
}
.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product > a.woocommerce-LoopProduct-link:hover,
.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product > a.woocommerce-LoopProduct-link:focus-visible {
  text-decoration: none;
  color: var(--nn-sc-tile-word);
}

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product > a.woocommerce-LoopProduct-link:focus-visible {
  outline: 2px solid var(--color-charcoal, #20201F);
  outline-offset: 3px;
}

/* The picture: three wide to four tall, centre-cropped, flush to the tile's
   top. The box carries enough weight because the parent theme's image reset
   and the builder's image rule both outrank a single class. */

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product > a.woocommerce-LoopProduct-link img:not(.nn-fd-second) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 50%;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
}

/* The second photograph takes the first one's place under the pointer, and
   only there: a touch screen keeps the first picture and never downloads
   the second. */

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product .nn-fd-second {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 50%;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product:hover .nn-fd-second,
.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product > a.woocommerce-LoopProduct-link:focus-visible .nn-fd-second {
  opacity: 1;
}

/* Its address is held back until a pointer is really there; a picture with
   no address yet is not drawn at all. */

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product .nn-fd-second:not([src]) {
  display: none;
}

@media (max-width: 767px), (hover: none) {
  .nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product .nn-fd-second {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product .nn-fd-second {
    transition: none;
  }
}

/* --- 5b. The card's three lines ---------------------------------------
   The world's name and the piece's name wear the same clothes - same
   family, size, weight and colour - and only their place tells them apart.
   The figure is one rung quieter, two pixels under the name. */

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product .nn-fd-world,
.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product .woocommerce-loop-product__title {
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 0 12px;
  font-family: var(--font-body, Manrope, sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  color: var(--nn-sc-tile-word);
}

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product .price {
  display: block;
  box-sizing: border-box;
  margin: 2px 0 0;
  padding: 0 12px;
  font-family: var(--font-body, Manrope, sans-serif);
  font-size: var(--type-body-md-size, 14px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--nn-sc-tile-word);
}

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product .price .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* The house words for a piece with no figure. Permanent shop wording, in
   the figure's own place and type, wearing no mark. */

.nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product .nn-fd-onrequest {
  display: block;
  box-sizing: border-box;
  margin: 2px 0 0;
  padding: 0 12px;
  font-family: var(--font-body, Manrope, sans-serif);
  font-size: var(--type-body-md-size, 14px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--nn-sc-tile-word);
}

/* The one sample mark, where the shop's own card already prints it. It
   closes an invented figure and sits nowhere else: never on a label, a
   door, a name or the Coming Soon words. */

.nn-sc .nn-note-mark {
  font: inherit;
  color: inherit;
}

/* --- 6. The two arrows -------------------------------------------------
   The banner's own design in light: a soft square, no border, a shadow, and
   two sides of a square turned inside it. They sit 16 inside the row's ends
   on a computer and 8 on a phone, and are centred on the WHOLE card - photo
   and words together - never on the photo alone (the owner's correction).

   Every state is written out - background, border, colour, appearance
   included - because the parent theme paints hovered and focused buttons
   pink (#cc3366) and these are buttons. */

.nn-sc__arrow,
.nn-sc .nn-sc__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 0;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.92);
  background-color: rgba(255, 255, 255, 0.92);
  background-image: none;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(24, 22, 20, 0.18);
  color: #20201F;
  font-family: var(--font-body, Manrope, sans-serif);
  font-size: 0;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
}

.nn-sc .nn-sc__arrow[hidden] {
  display: none;
}

.nn-sc .nn-sc__arrow--prev {
  left: 16px;
}

.nn-sc .nn-sc__arrow--next {
  right: 16px;
}

.nn-sc .nn-sc__arrow:hover,
.nn-sc .nn-sc__arrow:focus,
.nn-sc .nn-sc__arrow:active,
.nn-sc .nn-sc__arrow:focus-visible {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  background-color: #ffffff;
  background-image: none;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(24, 22, 20, 0.18);
  color: #20201F;
  text-decoration: none;
  text-shadow: none;
}

.nn-sc .nn-sc__arrow:focus-visible {
  outline: 2px solid #20201F;
  outline-offset: 2px;
}

.nn-sc .nn-sc__chev {
  display: block;
  width: 10px;
  height: 10px;
  border: 0;
  border-top: 2px solid #20201F;
  border-right: 2px solid #20201F;
  border-radius: 0;
  background: none;
}

.nn-sc .nn-sc__arrow--prev .nn-sc__chev {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.nn-sc .nn-sc__arrow--next .nn-sc__chev {
  transform: rotate(45deg) translate(-1px, 1px);
}

/* --- 7. The empty brand ------------------------------------------------
   The band keeps its face, designed exactly like the brands that have a
   catalogue, and the two settled words stand in the row's place - at the
   row area's left edge, vertically centred, so the six blocks keep one
   rhythm. They are plain text: no link, no mark, no box. */

.nn-sc__band--empty .nn-sc__soon-hold {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  min-height: var(--nn-sc-row-h, 558px);
}

.nn-sc .nn-sc__soon {
  margin: 0;
  font-family: var(--font-body, Manrope, sans-serif);
  font-size: 64px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  color: var(--nn-sc-word);
}

/* --- 8. The phone ------------------------------------------------------
   The face stacks above the row, full width and 24 from it; the card is
   200 wide; the inner air is 28 / 16; the bands sit 112 apart; the arrows
   stay - the owner's own words - at 36, 8 inside the row's ends. */

@media (max-width: 767px) {
  .nn-sc {
    --nn-sc-row-h: 358px;
    --nn-sc-card-w: 200px;
    padding-inline: 16px;
  }

  .nn-sc__band {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    margin: 56px 0;
    padding: 28px 16px;
  }

  .nn-sc__face {
    flex: none;
    align-items: flex-start;
    width: 100%;
    max-width: none;
  }

  .nn-sc .nn-sc__mark {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
  }

  .nn-sc .nn-sc__name {
    font-size: 28px;
  }

  .nn-sc .nn-sc__door {
    margin-top: 24px;
  }

  .nn-sc .nn-sc__grid ul.products.nn-sc__rail {
    column-gap: var(--nn-sc-card-gap);
  }

  .nn-sc .nn-sc__grid ul.products.nn-sc__rail li.product {
    flex: 0 0 var(--nn-sc-card-w);
    width: var(--nn-sc-card-w);
    max-width: var(--nn-sc-card-w);
  }

  .nn-sc .nn-sc__soon {
    font-size: 40px;
  }

  /* On a phone the words and the face stack, so the empty band is the same
     height as a filled one through its own row area, not a invented
     minimum. */

  .nn-sc .nn-sc__arrow {
    width: 36px;
    height: 36px;
    border-radius: 2px;
  }

  .nn-sc .nn-sc__arrow--prev {
    left: 8px;
  }

  .nn-sc .nn-sc__arrow--next {
    right: 8px;
  }

  .nn-sc .nn-sc__chev {
    width: 8px;
    height: 8px;
  }
}

/* --- 9. Less motion ----------------------------------------------------
   A visitor who asks their machine for less motion gets a still row: no
   travel at all, and the arrows step one card instantly. */

@media (prefers-reduced-motion: reduce) {
  .nn-sc__band--live .nn-sc__grid ul.products.nn-sc__rail {
    transition: none !important;
  }
}
