/*
 * NosaCell 5.0.1 — storefront discovery and commerce-control stabilization.
 * Loaded last on WooCommerce routes so legacy layers cannot collapse the
 * desktop quantity buttons or override the new category experience.
 */

/* ---------- Catalogue canvas and native archive heading ---------- */
body.nosa-storefront-catalogue .nosa-commerce {
  background:
    radial-gradient(circle at 8% 4%, rgba(255,210,31,.11), transparent 28rem),
    linear-gradient(180deg, #f8f7f2 0, #f2f0e9 54%, #f8f7f3 100%);
}
body.nosa-storefront-catalogue .woocommerce-products-header {
  max-width: 920px;
  margin: 0 0 22px;
}
body.nosa-storefront-catalogue .woocommerce-products-header__title.page-title {
  margin: 0;
  color: #171714;
  font-size: clamp(34px,4.6vw,58px);
  line-height: 1.42;
  text-wrap: balance;
}
body.nosa-storefront-catalogue .woocommerce-products-header .term-description {
  max-width: 820px;
  margin-top: 10px;
  color: #66645d;
  font-size: 13px;
  line-height: 2;
}

/* ---------- Shop discovery hero ---------- */
.nosa-storefront-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(350px,.92fr);
  align-items: center;
  gap: clamp(28px,5vw,72px);
  margin: 0 0 28px;
  padding: clamp(28px,4vw,52px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 100%, rgba(255,210,31,.2), transparent 24rem),
    radial-gradient(circle at 88% 5%, rgba(255,255,255,.08), transparent 18rem),
    linear-gradient(135deg,#090909,#22221e 72%,#171711);
  box-shadow: 0 30px 80px rgba(15,15,12,.18);
}
.nosa-storefront-hero::before,
.nosa-storefront-hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,210,31,.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.nosa-storefront-hero::before { width: 390px; height: 390px; top: -245px; left: -105px; }
.nosa-storefront-hero::after { width: 250px; height: 250px; right: -135px; bottom: -145px; }
.nosa-storefront-eyebrow {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255,210,31,.2);
  border-radius: 999px;
  color: #ffd928;
  background: rgba(255,210,31,.07);
  font-size: 12px;
  font-weight: 820;
}
.nosa-storefront-hero__copy h2 {
  max-width: 680px;
  margin: 15px 0 8px;
  color: #fff;
  font-size: clamp(29px,3.6vw,48px);
  line-height: 1.48;
  letter-spacing: -.7px;
  text-wrap: balance;
}
.nosa-storefront-hero__copy > p {
  max-width: 640px;
  margin: 0;
  color: #b4b2aa;
  font-size: 13px;
  line-height: 2.05;
}
.nosa-storefront-hero__copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.nosa-storefront-hero__copy li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #deddd7;
  font-size: 12px;
  font-weight: 720;
}
.nosa-storefront-hero__copy li svg { color: #ffd21f; }
.nosa-storefront-hero__search {
  min-width: 0;
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 23px;
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(15px);
}
.nosa-storefront-hero__search form { margin: 0; }
.nosa-storefront-hero__search label {
  display: block;
  margin: 0 2px 8px;
  color: #f5f4ef;
  font-size: 13px;
  font-weight: 800;
}
.nosa-storefront-hero__search form > div {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  overflow: hidden;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: #fff;
}
.nosa-storefront-hero__search input[type="search"] {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 8px 13px;
  border: 0;
  outline: 0;
  color: #24231f;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
}
.nosa-storefront-hero__search button {
  min-width: 105px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  color: #12120f;
  background: #ffd21f;
  font-family: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.nosa-storefront-hero__search button:hover { background: #ffe05c; transform: translateY(-1px); }
.nosa-storefront-hero__search > a {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  color: #fff;
  background: rgba(0,0,0,.17);
}
.nosa-storefront-hero__search > a > svg:first-child { color: #ffd21f; }
.nosa-storefront-hero__search > a span { min-width: 0; display: flex; flex-direction: column; }
.nosa-storefront-hero__search > a b { font-size: 12px; }
.nosa-storefront-hero__search > a small { margin-top: 3px; color: #aaa9a2; font-size: 11px; }

/* ---------- Compact icon-led category cards ---------- */
.nosa-storefront-categories {
  clear: both;
  margin: 0 0 28px;
  padding: clamp(19px,2.5vw,28px);
  border: 1px solid rgba(18,18,15,.08);
  border-radius: 28px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 22px 58px rgba(18,18,15,.07);
  backdrop-filter: blur(14px);
}
.nosa-storefront-categories > header {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(250px,460px);
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}
.nosa-storefront-categories > header span,
.nosa-storefront-guide > header > span {
  display: block;
  margin-bottom: 4px;
  color: #806200;
  font-size: 11px;
  font-weight: 850;
}
.nosa-storefront-categories > header h2,
.nosa-storefront-guide > header h2 {
  margin: 0;
  color: #1b1b17;
  font-size: clamp(23px,2.7vw,35px);
  line-height: 1.52;
}
.nosa-storefront-categories > header p {
  margin: 0;
  color: #6b6962;
  font-size: 13px;
  line-height: 1.95;
}
.nosa-storefront-categories__grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}
.nosa-storefront-category-card {
  min-width: 0;
  min-height: 88px;
  height: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) 30px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(18,18,15,.085);
  border-radius: 18px;
  color: #1b1b17;
  background: linear-gradient(145deg,#fff,#fbfaf6);
  box-shadow: 0 8px 24px rgba(18,18,15,.04);
  text-decoration: none;
  touch-action: manipulation;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nosa-storefront-category-card:hover {
  border-color: rgba(184,143,0,.34);
  background: linear-gradient(145deg,#fff,#fffbeb);
  box-shadow: 0 14px 32px rgba(18,18,15,.085);
  transform: translateY(-2px);
}
.nosa-storefront-category-card:focus-visible {
  outline: 3px solid rgba(190,148,0,.28);
  outline-offset: 3px;
}
.nosa-storefront-category-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191,149,0,.12);
  border-radius: 16px;
  color: #685300;
  background: linear-gradient(145deg,#fff8cf,#ffed95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 18px rgba(196,153,0,.09);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nosa-storefront-category-card:hover .nosa-storefront-category-card__icon {
  color: #28220a;
  background: linear-gradient(145deg,#ffe879,#ffd21f);
  transform: scale(1.035);
}
.nosa-storefront-category-card__content {
  min-width: 0;
}
.nosa-storefront-category-card__content h3 {
  overflow-wrap: anywhere;
  margin: 0;
  color: #1a1a17;
  font-size: 14px;
  line-height: 1.7;
}
.nosa-storefront-category-card__content small {
  display: block;
  margin-top: 3px;
  color: #848179;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.6;
}
.nosa-storefront-category-card__arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18,18,15,.07);
  border-radius: 10px;
  color: #806200;
  background: #fff;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nosa-storefront-category-card:hover .nosa-storefront-category-card__arrow {
  color: #1d1b12;
  background: #ffd21f;
  transform: translateX(-2px);
}

/* ---------- Result and sort toolbar ---------- */
.nosa-storefront-toolbar {
  clear: both;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 10px 13px;
  border: 1px solid rgba(18,18,15,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 35px rgba(18,18,15,.055);
}
.nosa-storefront-toolbar::before,
.nosa-storefront-toolbar::after { display: none !important; }
.woocommerce .nosa-storefront-toolbar .woocommerce-result-count,
.woocommerce .nosa-storefront-toolbar .woocommerce-ordering {
  float: none;
  margin: 0;
}
.woocommerce .nosa-storefront-toolbar .woocommerce-result-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #68675f;
  font-size: 12px;
  font-weight: 720;
}
.woocommerce .nosa-storefront-toolbar .woocommerce-result-count::before {
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #24a56a;
  box-shadow: 0 0 0 3px rgba(36,165,106,.14);
  content: "";
}
.woocommerce .nosa-storefront-toolbar .woocommerce-ordering select {
  min-width: 210px;
  min-height: 45px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(18,18,15,.1);
  border-radius: 12px;
  color: #35342f;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Product grid finish ---------- */
body.nosa-storefront-catalogue .woocommerce ul.products {
  clear: both;
  gap: 18px;
  margin-top: 0 !important;
}
body.nosa-storefront-catalogue .woocommerce ul.products li.product {
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(18,18,15,.065);
}
body.nosa-storefront-catalogue .woocommerce ul.products li.product a img {
  border-bottom: 1px solid rgba(18,18,15,.04);
}
body.nosa-storefront-catalogue .woocommerce ul.products li.product .button {
  width: calc(100% - 36px);
  justify-content: center;
  margin-inline: 18px;
}
body.nosa-storefront-catalogue .woocommerce ul.products li.product:nth-child(n+5) {
  content-visibility: auto;
  contain-intrinsic-size: 0 520px;
}

/* ---------- Crawlable shop guide ---------- */
.nosa-storefront-guide {
  clear: both;
  margin: 36px 0 4px;
  padding: clamp(23px,3.4vw,40px);
  border: 1px solid rgba(18,18,15,.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 100%, rgba(255,210,31,.14), transparent 17rem),
    linear-gradient(135deg,#fff,#f8f6ef);
  box-shadow: 0 20px 55px rgba(18,18,15,.065);
}
.nosa-storefront-guide > header { max-width: 870px; }
.nosa-storefront-guide > header > p {
  margin: 8px 0 0;
  color: #66645d;
  font-size: 13px;
  line-height: 2;
}
.nosa-storefront-guide__steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin-top: 22px;
}
.nosa-storefront-guide__steps article {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  gap: 11px;
  padding: 17px;
  border: 1px solid rgba(18,18,15,.075);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
}
.nosa-storefront-guide__steps i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #171714;
  background: #ffd21f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.nosa-storefront-guide__steps h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.7; }
.nosa-storefront-guide__steps p { margin: 0; color: #706e66; font-size: 12px; line-height: 1.9; }
.nosa-storefront-guide > nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid rgba(18,18,15,.075);
}
.nosa-storefront-guide > nav > span { margin-inline-end: 3px; color: #6c6a62; font-size: 11px; font-weight: 800; }
.nosa-storefront-guide > nav a {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(18,18,15,.085);
  border-radius: 999px;
  color: #24231f;
  background: #fff;
  font-size: 12px;
  font-weight: 780;
}
.nosa-storefront-guide > nav a:hover { border-color: #d8ad00; background: #fff9da; }

/* ---------- Quantity control: definitive desktop fix ---------- */
.woocommerce .quantity[data-nosa-quantity="ready"] {
  box-sizing: border-box !important;
  direction: ltr !important;
}
.woocommerce .quantity[data-nosa-quantity="ready"] > .nosa-quantity-button {
  position: static !important;
  inset: auto !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 56px !important;
  min-height: 56px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 40px !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #4d4c46 !important;
  background: #f3f1e9 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 21px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transform: none !important;
  transition: color .17s ease, background .17s ease !important;
}
.woocommerce .quantity[data-nosa-quantity="ready"] > .nosa-quantity-button:hover:not(:disabled) {
  color: #111 !important;
  background: #ffd21f !important;
}
.woocommerce .quantity[data-nosa-quantity="ready"] > .nosa-quantity-button:focus-visible {
  position: relative !important;
  z-index: 3;
  outline: 3px solid rgba(190,148,0,.34) !important;
  outline-offset: -3px !important;
}
.woocommerce .quantity[data-nosa-quantity="ready"] > .nosa-quantity-button:disabled {
  color: #b8b6ae !important;
  background: #eeece5 !important;
  cursor: not-allowed !important;
}
.woocommerce .quantity[data-nosa-quantity="ready"] > input.qty {
  position: static !important;
  min-width: 0 !important;
  height: 56px !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-inline: 1px solid rgba(18,18,15,.09) !important;
  border-radius: 0 !important;
  outline: 0 !important;
  color: #22211d !important;
  background: #fff !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 880 !important;
  line-height: 1 !important;
  text-align: center !important;
  appearance: textfield !important;
}
.woocommerce .quantity[data-nosa-quantity="ready"] > input.qty::-webkit-inner-spin-button,
.woocommerce .quantity[data-nosa-quantity="ready"] > input.qty::-webkit-outer-spin-button { margin: 0 !important; appearance: none !important; }

body.nosa-product-premium-page .nosa-p41-purchase form.cart:not(.variations_form):not(.grouped_form),
body.nosa-product-premium-page .nosa-p41-purchase form.variations_form .woocommerce-variation-add-to-cart {
  grid-template-columns: 134px minmax(0,1fr) !important;
}
body.nosa-product-premium-page .nosa-p41-purchase form.cart .quantity[data-nosa-quantity="ready"] {
  width: 134px !important;
  min-width: 134px !important;
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 40px 54px 40px !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  overflow: hidden !important;
}
body.nosa-product-premium-page .nosa-p41-purchase form.cart .quantity[data-nosa-quantity="ready"] > input.qty {
  width: 54px !important;
  max-width: 54px !important;
}
.woocommerce-cart-form .quantity[data-nosa-quantity="ready"] {
  width: 134px !important;
  min-width: 134px !important;
  min-height: 56px !important;
  display: grid !important;
  grid-template-columns: 40px 54px 40px !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  overflow: hidden !important;
  border: 1px solid rgba(18,18,15,.12) !important;
  border-radius: 15px !important;
  background: #fff !important;
}
.woocommerce-cart-form .quantity[data-nosa-quantity="ready"] > input.qty {
  width: 54px !important;
  max-width: 54px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nosa-storefront-hero { grid-template-columns: 1fr; gap: 24px; }
  .nosa-storefront-hero__copy { max-width: 800px; }
  .nosa-storefront-categories__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .nosa-storefront-categories > header { grid-template-columns: 1fr; gap: 7px; }
  .nosa-storefront-categories__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nosa-storefront-guide__steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.nosa-storefront-catalogue .nosa-commerce { padding-inline: 10px; padding-top: 20px; }
  body.nosa-storefront-catalogue .woocommerce-products-header__title.page-title { font-size: clamp(29px,9vw,38px); }
  .nosa-storefront-hero { margin-bottom: 19px; padding: 21px 17px; border-radius: 24px; }
  .nosa-storefront-hero__copy h2 { margin-top: 12px; font-size: 28px; }
  .nosa-storefront-hero__copy > p { font-size: 12px; }
  .nosa-storefront-hero__copy ul { gap: 8px 12px; }
  .nosa-storefront-hero__search { padding: 11px; border-radius: 18px; }
  .nosa-storefront-hero__search form > div { grid-template-columns: minmax(0,1fr) 48px; }
  .nosa-storefront-hero__search button { min-width: 48px; padding-inline: 10px; }
  .nosa-storefront-hero__search button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .nosa-storefront-categories { margin-bottom: 19px; padding: 18px 15px; border-radius: 22px; }
  .nosa-storefront-categories > header { margin-bottom: 14px; }
  .nosa-storefront-categories > header h2 { font-size: 24px; }
  .nosa-storefront-categories__grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .nosa-storefront-category-card {
    min-height: 80px;
    grid-template-columns: 42px minmax(0,1fr);
    gap: 9px;
    padding: 10px;
    border-radius: 15px;
  }
  .nosa-storefront-category-card:hover { transform: none; }
  .nosa-storefront-category-card__icon { width: 42px; height: 42px; border-radius: 13px; }
  .nosa-storefront-category-card__icon svg { width: 22px; height: 22px; }
  .nosa-storefront-category-card__content h3 { font-size: 12px; line-height: 1.65; }
  .nosa-storefront-category-card__content small { margin-top: 2px; font-size: 10px; }
  .nosa-storefront-category-card__arrow { display: none; }
  .nosa-storefront-toolbar { min-height: 0; align-items: stretch; flex-direction: column; padding: 11px; }
  .woocommerce .nosa-storefront-toolbar .woocommerce-result-count { min-height: 32px; }
  .woocommerce .nosa-storefront-toolbar .woocommerce-ordering,
  .woocommerce .nosa-storefront-toolbar .woocommerce-ordering select { width: 100%; min-width: 0; }
  .nosa-storefront-guide { padding: 21px 17px; border-radius: 22px; }
  .nosa-storefront-guide > nav { align-items: stretch; flex-direction: column; }
  .nosa-storefront-guide > nav a { justify-content: center; }

  body.nosa-product-premium-page .nosa-p41-purchase form.cart:not(.variations_form):not(.grouped_form),
  body.nosa-product-premium-page .nosa-p41-purchase form.variations_form .woocommerce-variation-add-to-cart {
    grid-template-columns: 116px minmax(0,1fr) !important;
  }
  body.nosa-product-premium-page .nosa-p41-purchase form.cart .quantity[data-nosa-quantity="ready"] {
    width: 116px !important;
    min-width: 116px !important;
    min-height: 54px !important;
    grid-template-columns: 36px 44px 36px !important;
  }
  body.nosa-product-premium-page .nosa-p41-purchase form.cart .quantity[data-nosa-quantity="ready"] > .nosa-quantity-button {
    width: 36px !important;
    min-width: 36px !important;
    height: 54px !important;
    min-height: 54px !important;
    flex-basis: 36px !important;
  }
  body.nosa-product-premium-page .nosa-p41-purchase form.cart .quantity[data-nosa-quantity="ready"] > input.qty {
    width: 44px !important;
    max-width: 44px !important;
    height: 54px !important;
    min-height: 54px !important;
  }
}

@media (max-width: 390px) {
  .nosa-storefront-categories { padding-inline: 10px; }
  .nosa-storefront-categories__grid { gap: 6px; }
  .nosa-storefront-category-card {
    min-height: 76px;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 7px;
    padding: 8px;
  }
  .nosa-storefront-category-card__icon { width: 38px; height: 38px; border-radius: 12px; }
  .nosa-storefront-category-card__icon svg { width: 20px; height: 20px; }
  .nosa-storefront-category-card__content h3 { font-size: 11.5px; }

  body.nosa-product-premium-page .nosa-p41-purchase form.cart:not(.variations_form):not(.grouped_form),
  body.nosa-product-premium-page .nosa-p41-purchase form.variations_form .woocommerce-variation-add-to-cart {
    grid-template-columns: 1fr !important;
  }
  body.nosa-product-premium-page .nosa-p41-purchase form.cart .quantity[data-nosa-quantity="ready"] {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 44px minmax(44px,1fr) 44px !important;
  }
  body.nosa-product-premium-page .nosa-p41-purchase form.cart .quantity[data-nosa-quantity="ready"] > .nosa-quantity-button {
    width: 44px !important;
    min-width: 44px !important;
  }
  body.nosa-product-premium-page .nosa-p41-purchase form.cart .quantity[data-nosa-quantity="ready"] > input.qty {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nosa-storefront-category-card,
  .nosa-storefront-category-card__icon,
  .nosa-storefront-category-card__arrow,
  .nosa-storefront-hero__search button { transition: none !important; }
}


/* ---------- v5.4.0 Express badge on native WooCommerce cards ---------- */
body.nosa-storefront-catalogue .woocommerce ul.products li.product{
  position:relative;
  overflow:hidden;
}
body.nosa-storefront-catalogue .woocommerce ul.products li.product .nosa-loop-express-badge{
  position:absolute;
  z-index:3;
  top:14px;
  right:14px;
  left:14px;
  width:auto;
  max-width:calc(100% - 28px);
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px 8px 8px;
  border:1px solid rgba(255,210,31,.42);
  border-radius:15px;
  color:#fff;
  background:linear-gradient(135deg,rgba(9,9,9,.86),rgba(40,40,34,.86));
  box-shadow:0 14px 30px rgba(18,18,15,.17);
  backdrop-filter:blur(9px);
  pointer-events:none;
}
body.nosa-storefront-catalogue .woocommerce ul.products li.product .nosa-loop-express-badge .nosa-icon{display:block}
body.nosa-storefront-catalogue .woocommerce ul.products li.product .onsale + .nosa-loop-express-badge,
body.nosa-storefront-catalogue .woocommerce ul.products li.product .nosa-loop-express-badge + .onsale{top:54px}
@media (max-width:767px){
  body.nosa-storefront-catalogue .woocommerce ul.products li.product .nosa-loop-express-badge{
    top:10px;
    right:10px;
    left:10px;
    max-width:calc(100% - 20px);
    padding:7px 9px 7px 7px;
    border-radius:13px;
  }
}
