/* 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. */

/* ------------------------------------------------------------------ */
/* 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;
}

/* ------------------------------------------------------------------ */
/* 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.65 — level-1 theme pill bar + full-width theme headers on the shop-2
   category grid. Client-side only; existing category links and card styling
   (0.9.64) are preserved. */
.noofno-shop-themes {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 4px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.noofno-shop-themes__pill {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid #e0d2c8;
  border-radius: 999px;
  background: #fffdfb;
  color: #2a211d;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}

.noofno-shop-themes__pill:hover {
  border-color: #d0c2b8;
}

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

/* 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) */
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: cover;
}

.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;
  }

  .noofno-shop-themes {
    margin-bottom: 14px;
  }

  .noofno-shop-themes__pill {
    padding: 7px 11px;
    font-size: 11px;
  }

  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;
  }
}
