/* 0.9.64 — Shop cards: borrow the Builder product-card + quick-view dialog
   language for the WooCommerce product loop (shop-2/shop and product-category
   archive pages). Visual only: no HTML, URL, or semantic changes; the existing
   orange circular "+" ajax add-to-cart (0.9.45) is preserved and add-to-cart
   still opens the top visual cart drawer. Requires JS for the quick-view
   dialog; without JS the cards degrade to plain WooCommerce cards.
   0.9.198 — the 0.9.197 collection finder toolbar (search / category select /
   summary / reset / empty state) and the horizontal pill scroller are replaced
   by a category navigation over the same grouped grid: a 5-column / 2-row
   button grid on desktop, 3 columns on tablet, and one compact toggle whose
   panel keeps the same buttons in 2 columns on mobile (All full width). Each
   button carries a count derived from the rendered cards. Grouped-card
   readability, the 3-column tablet grid step, the calmer borders/shadows and
   the tighter shop header are kept. Everything stays scoped to
   body.noofno-real-shop or the explicit .noofno-shop-nav classes; the sitewide
   product detail/cart/header are untouched. */

/* ------------------------------------------------------------------ */
/* Product-loop card shell — Builder .nfb-card look                    */
/* ------------------------------------------------------------------ */
body.woocommerce ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fffdfb;
  border: 1px solid #e0d2c8;
  border-radius: 15px;
  box-shadow: 0 10px 26px rgba(39, 25, 18, .09);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(39, 25, 18, .12);
  border-color: #d0c2b8;
}

/* 0.9.72 - Woo archive content is full-width. Desktop is intentionally fixed
   to 10 columns per owner visual review; narrower viewports step down. */
body.woocommerce .site-content .ast-container,
body.woocommerce .site-content .content-area,
body.woocommerce .site-main,
body.woocommerce .ast-woocommerce-container {
  max-width: 100% !important;
}

body.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  gap: 14px 10px !important;
  align-items: start;
}

body.woocommerce-page ul.products.products,
body.woocommerce[class*="columns-"] ul.products.products,
body.woocommerce-page[class*="columns-"] ul.products.products,
body.woocommerce .ast-woocommerce-container ul.products.products {
  display: grid !important;
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  gap: 14px 10px !important;
}

body.woocommerce ul.products::before,
body.woocommerce ul.products::after {
  display: none !important;
}

body.woocommerce ul.products li.product,
body.woocommerce ul.products li.product-category,
body.woocommerce ul.products li.noofno-shop-series,
body.woocommerce ul.products li.noofno-shop-grouped {
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* 0.9.198 - tighter shop header/upper spacing so the navigation sits closer to
   the masthead. Scoped to the real shop collection surface only. */
body.noofno-real-shop .entry-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 56px) 64px;
}

body.noofno-real-shop .entry-header {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 56px) 12px;
}

body.noofno-real-shop .entry-header::before {
  display: block;
  margin-bottom: 6px;
  color: #f2520c;
  content: 'NOOFNO COLLECTIONS';
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

body.noofno-real-shop .entry-header::after {
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 10px;
  background: #f2520c;
  content: '';
}

body.noofno-real-shop .entry-title {
  margin: 0;
  color: #201d1b;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: none;
}

body.noofno-real-shop ul.noofno-shop-real-groups {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 22px 16px !important;
}

/* ------------------------------------------------------------------ */
/* Image area                                                          */
/* ------------------------------------------------------------------ */
body.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
  position: relative !important;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f4efeb;
}

body.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
}

body.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

/* ------------------------------------------------------------------ */
/* Always-visible orange "+" ajax add-to-cart (kept from 0.9.45)       */
/* ------------------------------------------------------------------ */
body.woocommerce ul.products li.product .astra-shop-thumbnail-wrap .ast-on-card-button.add_to_cart_button,
body.woocommerce ul.products li.product .ast-on-card-button.add_to_cart_button {
  right: 10px !important;
  bottom: 10px !important;
}

/* ------------------------------------------------------------------ */
/* "Sale!" badge — brand orange pill                                   */
/* ------------------------------------------------------------------ */
body.woocommerce ul.products li.product .ast-on-card-button.ast-onsale-card {
  position: absolute !important;
  top: 10px !important;
  right: auto !important;
  left: 10px !important;
  bottom: auto !important;
  z-index: 6;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 3px 9px !important;
  border-radius: 999px;
  background: #f2520c !important;
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Name + price content area                                           */
/* ------------------------------------------------------------------ */
body.woocommerce ul.products li.product .ast-loop-product__link {
  display: block;
  padding: 8px 9px 0;
}

body.woocommerce ul.products li.product .ast-loop-product__link h2.woocommerce-loop-product__title,
body.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  margin: 0;
  padding: 0;
  min-height: 2.35em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #2a211d;
  font-family: Arial, sans-serif;
  font-size: clamp(7.5px, 0.52vw, 9.5px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.woocommerce ul.products li.product .price {
  margin: 5px 9px 9px;
  color: #f2520c;
  font-size: clamp(9px, .62vw, 10.5px);
  font-weight: 800;
}

body.woocommerce ul.products li.product .price del {
  color: #a99d96;
  font-size: 11px;
  font-weight: 400;
}

body.woocommerce ul.products li.product .price ins {
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Category cells on /shop-2  (li.product-category) — same card shell   */
/* ------------------------------------------------------------------ */
body.woocommerce ul.products li.product-category {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fffdfb;
  border: 1px solid #e0d2c8;
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(39, 25, 18, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

body.woocommerce ul.products li.product-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(39, 25, 18, .11);
}

body.woocommerce ul.products li.product-category a {
  display: block;
  width: 100%;
}

body.woocommerce ul.products li.product-category img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f4efeb;
}

body.woocommerce ul.products li.product-category h2.woocommerce-loop-category__title {
  margin: 0;
  padding: 8px 9px;
  text-align: center;
  color: #2a211d;
  font-family: Arial, sans-serif;
  font-size: clamp(8px, .56vw, 9.5px);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.woocommerce ul.products li.product-category h2.woocommerce-loop-category__title .count {
  color: #a99d96;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  margin-left: 4px;
}

/* ------------------------------------------------------------------ */
/* Quick-view dialog — Builder .nfb-product-dialog language             */
/* ------------------------------------------------------------------ */
.noofno-shop-modal[hidden] {
  display: none !important;
}

.noofno-shop-modal {
  position: fixed;
  z-index: 100002;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.noofno-shop-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 23, 19, .3);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.noofno-shop-modal__card {
  position: relative;
  display: grid;
  width: min(760px, 100%);
  grid-template-columns: minmax(260px, 1fr) minmax(260px, .9fr);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(25, 17, 13, .28);
}

.noofno-shop-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  background: #f8f5f3;
}

.noofno-shop-modal__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.noofno-shop-modal__eyebrow {
  color: #f2520c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.noofno-shop-modal__title {
  margin: 8px 0 6px;
  color: #2a211d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.05;
}

.noofno-shop-modal__link {
  margin: 0 0 12px;
  color: #b63c05;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

.noofno-shop-modal__price {
  margin-bottom: 22px;
  color: #f2520c;
  font-size: 20px;
  font-weight: 800;
}

.noofno-shop-modal__price del {
  color: #a99d96;
  font-size: 14px;
  font-weight: 400;
}

.noofno-shop-modal__price ins {
  text-decoration: none;
}

.noofno-shop-modal__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  background: #f2520c;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.noofno-shop-modal__add:hover {
  background: #d94a0a;
}

.noofno-shop-modal__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #ddd2cc;
  border-radius: 50%;
  background: #fff;
  color: #342c28;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  cursor: pointer;
}

.noofno-shop-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .noofno-shop-modal {
    padding: 12px;
  }

  .noofno-shop-modal__card {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow: auto;
  }

  .noofno-shop-modal__img {
    min-height: 0;
    aspect-ratio: 1;
  }

  .noofno-shop-modal__content {
    padding: 20px;
  }
}


/* ================================================================== */
/* 0.9.198 — category navigation                                      */
/* Replaces the 0.9.197 collection finder and the horizontal pill     */
/* scroller over the same grouped collection grid. Scoped to          */
/* body.noofno-real-shop and the .noofno-shop-nav classes only.       */
/* ================================================================== */
body.noofno-real-shop .noofno-shop-nav {
  margin: 0 0 18px;
}

body.noofno-real-shop .noofno-shop-nav__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 0 0 10px;
}

body.noofno-real-shop .noofno-shop-nav__title {
  color: #201d1b;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.15;
}

body.noofno-real-shop .noofno-shop-nav__hint {
  color: #8d7f76;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
}

/* Mobile compact toggle (hidden >=761px; JS also toggles [hidden]). */
body.noofno-real-shop .noofno-shop-nav__toggle {
  display: none;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e0d2c8;
  border-radius: 12px;
  background: #fffdfb;
  color: #2a211d;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

body.noofno-real-shop .noofno-shop-nav__toggle[hidden] {
  display: none !important;
}

body.noofno-real-shop .noofno-shop-nav__toggle:hover {
  border-color: #cfa37c;
}

body.noofno-real-shop .noofno-shop-nav__chevron {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid #6c5a50;
  border-bottom: 2px solid #6c5a50;
  transform: rotate(45deg);
  transition: transform .16s ease;
}

body.noofno-real-shop .noofno-shop-nav__toggle[aria-expanded="true"] .noofno-shop-nav__chevron {
  transform: rotate(-135deg);
}

/* Desktop/tablet: full panel of ten buttons, always visible. */
body.noofno-real-shop .noofno-shop-nav__panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body.noofno-real-shop .noofno-shop-nav__panel[hidden] {
  display: none !important;
}

body.noofno-real-shop .noofno-shop-nav__btn {
  display: flex;
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e0d2c8;
  border-radius: 10px;
  background: #fffdfb;
  color: #2a211d;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}

body.noofno-real-shop .noofno-shop-nav__btn:hover {
  border-color: #cfa37c;
  background: #fff8f3;
}

body.noofno-real-shop .noofno-shop-nav__btn.is-active {
  border-color: #f2520c;
  background: #f2520c;
  color: #fff;
}

body.noofno-real-shop .noofno-shop-nav__btn:focus-visible,
body.noofno-real-shop .noofno-shop-nav__toggle:focus-visible {
  outline: 2px solid #f2520c;
  outline-offset: 2px;
}

body.noofno-real-shop .noofno-shop-nav__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.noofno-real-shop .noofno-shop-nav__count {
  flex: 0 0 auto;
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f1e7e0;
  color: #6c5a50;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

body.noofno-real-shop .noofno-shop-nav__btn.is-active .noofno-shop-nav__count {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}

/* Tablet step: three equal columns, nothing clipped. */
@media (min-width: 761px) and (max-width: 1024px) {
  body.noofno-real-shop .noofno-shop-nav__panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile: one toggle; the panel keeps the same buttons in two columns. */
@media (max-width: 760px) {
  body.noofno-real-shop .noofno-shop-nav__toggle {
    display: flex;
  }

  body.noofno-real-shop .noofno-shop-nav__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  /* All spans the full row; the nine categories fill two-column rows. */
  body.noofno-real-shop .noofno-shop-nav__btn--all {
    grid-column: 1 / -1;
  }

  body.noofno-real-shop .noofno-shop-nav__btn {
    font-size: 13px;
  }

  body.noofno-real-shop .noofno-shop-nav__title {
    font-size: 16px;
  }
}

/* Full-width theme header row spanning the products grid */
li.noofno-shop-theme__header {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px 4px 4px;
  border-bottom: 1px solid #eadfd8;
}

li.noofno-shop-theme__header + li.noofno-shop-theme__header {
  margin-top: 20px;
}

.noofno-shop-theme__title {
  color: #2a211d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.1;
}

.noofno-shop-theme__count {
  color: #a99d96;
  font-size: 12px;
  font-weight: 500;
}

/* Filtering (pure client state - classes only, no DOM rebuild) */
body.woocommerce ul.products li.noofno-shop-theme__header.is-hidden,
body.woocommerce ul.products li.product-category.is-hidden,
body.woocommerce ul.products li.noofno-shop-series.is-hidden,
body.woocommerce ul.products li.noofno-shop-grouped.is-hidden {
  display: none !important;
}

/* 0.9.66 — sub-series theme cards shown under each level-1 theme. */
body.woocommerce ul.products li.noofno-shop-series {
  display: flex;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  align-self: start;
}

body.woocommerce ul.products li.noofno-shop-series .noofno-shop-series__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #e0d2c8;
  border-radius: 12px;
  background: #fffdfb;
  color: #2a211d;
  font-family: Arial, sans-serif;
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transition: border-color .16s, background .16s, color .16s, transform .16s, box-shadow .16s;
}

body.woocommerce ul.products li.noofno-shop-series .noofno-shop-series__link:hover {
  border-color: #f2520c;
  background: #fff4ed;
  color: #b63c05;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(39, 25, 18, .08);
}

/* 0.9.68 - /shop-2 grouped product cards under each Builder level-1 theme. */
body.woocommerce ul.products li.noofno-shop-grouped {
  display: flex;
  min-width: 0;
  align-self: start;
  padding: 0;
}

body.woocommerce ul.products li.noofno-shop-grouped .noofno-shop-grouped__link {
  display: flex;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #e0d2c8;
  border-radius: 12px;
  background: #fffdfb;
  color: #2a211d;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(39, 25, 18, .07);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}

body.woocommerce ul.products li.noofno-shop-grouped .noofno-shop-grouped__link:hover {
  transform: translateY(-2px);
  border-color: #cfa37c;
  box-shadow: 0 12px 26px rgba(39, 25, 18, .11);
}

.noofno-shop-grouped__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f4efeb;
}

.noofno-shop-grouped__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.noofno-shop-grouped__body {
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 6px 6px 7px;
  text-align: center;
}

.noofno-shop-grouped__eyebrow,
.noofno-shop-grouped__count {
  color: #9a8a80;
  font-size: clamp(5.5px, .36vw, 7px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.noofno-shop-grouped__name {
  display: -webkit-box;
  min-height: 2.25em;
  overflow: hidden;
  color: #2a211d;
  font-size: clamp(7px, .46vw, 8.5px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.25;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 1280px) {
  body.woocommerce ul.products,
  body.woocommerce-page ul.products.products,
  body.woocommerce[class*="columns-"] ul.products.products,
  body.woocommerce-page[class*="columns-"] ul.products.products,
  body.woocommerce .ast-woocommerce-container ul.products.products {
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }
}

@media (max-width: 760px) {
  body.woocommerce ul.products,
  body.woocommerce-page ul.products.products,
  body.woocommerce[class*="columns-"] ul.products.products,
  body.woocommerce-page[class*="columns-"] ul.products.products,
  body.woocommerce .ast-woocommerce-container ul.products.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px 6px !important;
  }

  li.noofno-shop-theme__header {
    margin-top: 8px;
    padding-top: 10px;
  }

  .noofno-shop-theme__title {
    font-size: 18px;
  }

  .noofno-shop-grouped__body {
    min-height: 44px;
    padding: 5px 4px;
  }

  body.noofno-real-shop .entry-content {
    padding: 10px 14px 44px;
  }

  body.noofno-real-shop .entry-header {
    padding: 12px 16px 10px;
  }

  body.noofno-real-shop .entry-header::before {
    margin-bottom: 6px;
    font-size: 9px;
  }

  body.noofno-real-shop .entry-header::after {
    width: 40px;
    height: 2px;
    margin-top: 8px;
  }

  body.noofno-real-shop .entry-title {
    font-size: 30px;
  }

  body.noofno-real-shop ul.noofno-shop-real-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }

  body.noofno-real-shop .noofno-shop-grouped__name {
    font-size: 13px;
  }

  body.noofno-real-shop .noofno-shop-grouped__count {
    font-size: 12px;
  }
}

/* Real grouped collection grid wins over the legacy archive rules above. */
body.noofno-real-shop ul.products.noofno-shop-real-groups {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 22px 16px !important;
}

@media (max-width: 760px) {
  body.noofno-real-shop ul.products.noofno-shop-real-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }
}

/* ================================================================== */
/* 0.9.197/0.9.198 — grouped collection grid readability               */
/* Scoped to body.noofno-real-shop and the .noofno-shop-grouped /      */
/* .noofno-shop-nav classes only; nothing here touches product detail, */
/* cart, the sitewide header, or any non-shop archive.                 */
/* ================================================================== */

/* Tablet step: three columns between the mobile and desktop grids. */
@media (min-width: 761px) and (max-width: 1024px) {
  body.noofno-real-shop ul.products.noofno-shop-real-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
  }
}

/* --- Grouped card readability + calmer chrome --------------------- */
/* Grouped card URL/image/name/count/taxonomy stay unchanged; only the */
/* presentation shifts so names read at normal case and a sane size.   */
body.noofno-real-shop ul.products li.noofno-shop-grouped,
body.noofno-real-shop ul.products li.noofno-shop-grouped * {
  box-sizing: border-box;
}

body.noofno-real-shop ul.products li.noofno-shop-grouped .noofno-shop-grouped__link {
  min-width: 0;
  border-color: #e7dbd3;
  box-shadow: 0 1px 2px rgba(39, 25, 18, .05);
}

body.noofno-real-shop ul.products li.noofno-shop-grouped .noofno-shop-grouped__link:hover {
  border-color: #d3b193;
  box-shadow: 0 6px 16px rgba(39, 25, 18, .09);
}

/* The section heading already names the category, so drop the in-card eyebrow. */
body.noofno-real-shop ul.products li.noofno-shop-grouped .noofno-shop-grouped__eyebrow {
  display: none;
}

body.noofno-real-shop ul.products li.noofno-shop-grouped .noofno-shop-grouped__body {
  gap: 4px;
  min-height: 0;
  padding: 10px 10px 12px;
}

/* Normal-case, 14px names that wrap instead of clipping to two tiny lines. */
body.noofno-real-shop ul.products li.noofno-shop-grouped .noofno-shop-grouped__name {
  display: block;
  min-height: 0;
  overflow: visible;
  color: #241d19;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-line-clamp: unset;
}

body.noofno-real-shop ul.products li.noofno-shop-grouped .noofno-shop-grouped__count {
  color: #5f5148;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.25;
  text-transform: none;
}

/* --- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  body.noofno-real-shop ul.products li.product,
  body.noofno-real-shop ul.products li.noofno-shop-grouped .noofno-shop-grouped__link,
  body.noofno-real-shop .noofno-shop-nav__btn,
  body.noofno-real-shop .noofno-shop-nav__toggle,
  body.noofno-real-shop .noofno-shop-nav__chevron {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  body.noofno-real-shop ul.products li.product:hover {
    transform: none;
  }

  body.noofno-real-shop ul.products li.noofno-shop-grouped .noofno-shop-grouped__link:hover {
    transform: none;
  }
}

/* Final integration: long names never expand the navigation. */
body.noofno-real-shop .noofno-shop-nav__name { overflow-wrap: anywhere; }
body.noofno-real-shop .noofno-shop-grouped__link:focus-visible { outline: 2px solid #f2520c; outline-offset: 3px; }
@media (max-width: 760px) {
  body.noofno-real-shop ul.products li.noofno-shop-grouped .noofno-shop-grouped__name { font-size: 13px; }
}
