/* Keep the theme width and one responsive edge gap as the shared page grid. */
:root {
  --asanwp-page-inline-gap: 2.5rem;
}

.container,
.container-custom-large {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--theme-site-width, 1360px);
  margin-inline: auto;
  padding-inline: var(--asanwp-page-inline-gap);
}

.elementor-page .elementor-section.elementor-section-boxed > .elementor-container,
.elementor-page .e-con.e-con-boxed > .e-con-inner {
  width: 100%;
  max-width: calc(var(--theme-site-width, 1360px) - (2 * var(--asanwp-page-inline-gap))) !important;
  margin-inline: auto;
}

@media screen and (max-width: 767.98px) {
  :root {
    --asanwp-page-inline-gap: .9375rem;
  }

  .elementor-page .elementor-section.elementor-section-boxed > .elementor-container,
  .elementor-page .e-con.e-con-boxed > .e-con-inner {
    max-width: calc(100% - (2 * var(--asanwp-page-inline-gap))) !important;
  }
}

/* One stock language for product cards, deal widgets and product pages. */
.product-progress-wrapper--card,
.product-progress-wrapper--special-product,
.product-progress-wrapper--deals-product {
  margin-top: .8rem;
}

.product-progress-wrapper--card > .entry-title,
.product-progress-wrapper--special-product > .entry-title,
.product-progress-wrapper--deals-product > .entry-title {
  margin: 0 0 .45rem;
  color: var(--color-gray700);
  font-size: .72rem;
  line-height: 1.7;
}

.product-progress-wrapper.is-low-stock .product-progressbar .progressbar {
  background-color: var(--color-red600);
}

.product-progress-wrapper.is-stock-sufficient .product-progressbar .progressbar {
  background-color: var(--color-green600);
}


/* Unified stock-progress visual language across product page, cards and offer modules. */
.product-progress-wrapper {
  --awp-stock-accent: var(--color-red600);
  --awp-stock-accent-soft: rgba(239, 64, 86, 0.10);
  --awp-stock-border: rgba(15, 23, 42, 0.08);
  --awp-stock-bg: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  position: relative;
  padding: .875rem 1rem;
  border: 1px solid var(--awp-stock-border);
  border-radius: 1rem;
  background: var(--awp-stock-bg);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.product-progress-wrapper::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--awp-stock-accent) 18%, var(--awp-stock-accent) 82%, transparent 100%);
  opacity: .8;
}

.product-progress-wrapper.is-stock-sufficient {
  --awp-stock-accent: var(--color-green600);
  --awp-stock-accent-soft: rgba(34, 197, 94, 0.12);
}

.product-progress-wrapper.is-low-stock {
  --awp-stock-accent: var(--color-red600);
  --awp-stock-accent-soft: rgba(239, 64, 86, 0.12);
}

.product-progress-wrapper > .entry-title {
  display: block;
  margin: 0 0 .625rem;
  color: var(--color-gray800);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.9;
}

.product-progress-wrapper .product-progress {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.product-progress-wrapper .product-progressbar.style-1 {
  position: relative;
  height: .5rem;
  margin: 0;
  border-radius: 999px;
  background: #e9edf2;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.product-progress-wrapper .product-progressbar.style-1 .progressbar {
  background: linear-gradient(90deg, var(--awp-stock-accent) 0%, var(--awp-stock-accent) 100%);
  border-radius: inherit;
}

.product-progress-wrapper .product-progressbar.style-1 .progressbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.36), rgba(255,255,255,0));
}

.product-progress-wrapper .product-progress-detail {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.product-progress-wrapper .product-progress-detail .product-pcs {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--color-gray700);
  font-size: .79rem;
  font-weight: 500;
  line-height: 1.8;
}

.product-progress-wrapper .product-progress-detail .product-pcs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  margin: 0;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--awp-stock-accent-soft);
  color: var(--awp-stock-accent);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.4;
}

.single-product-wrapper .product-progress-wrapper {
  margin-bottom: 1rem;
}

.single-product-wrapper .product-progress-wrapper > .entry-title {
  font-size: .95rem;
}

/* Product-card stock progress follows the same flat visual language as Builder amazing-offer progress. */
.products .product .awp-product-card .product-progress-wrapper,
.product-progress-wrapper--card {
  margin-top: .45rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.products .product .awp-product-card .product-progress-wrapper::before,
.product-progress-wrapper--card::before {
  display: none;
}

.products .product .awp-product-card .product-progress-wrapper .product-progress,
.product-progress-wrapper--card .product-progress {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.products .product .awp-product-card .product-progress-wrapper .product-progressbar.style-1,
.product-progress-wrapper--card .product-progressbar.style-1 {
  height: 4px;
  margin: 0;
  border-radius: 999px;
  background: var(--color-gray100, #f0f0f1);
  box-shadow: none;
  direction: rtl;
}

.products .product .awp-product-card .product-progress-wrapper .product-progressbar.style-1 .progressbar,
.product-progress-wrapper--card .product-progressbar.style-1 .progressbar {
  border-radius: inherit;
  background: var(--awp-stock-accent);
}

.products .product .awp-product-card .product-progress-wrapper .product-progressbar.style-1 .progressbar::after,
.product-progress-wrapper--card .product-progressbar.style-1 .progressbar::after {
  display: none;
}

.products .product .awp-product-card .product-progress-wrapper .product-progress-detail,
.product-progress-wrapper--card .product-progress-detail {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.products .product .awp-product-card .product-progress-wrapper .product-progress-detail .product-pcs,
.product-progress-wrapper--card .product-progress-detail .product-pcs {
  display: block;
  margin: 0;
  color: var(--color-gray600, #81858b);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.6;
  text-align: start;
}

.products .product .awp-product-card .product-progress-wrapper .product-progress-detail .product-pcs span,
.product-progress-wrapper--card .product-progress-detail .product-pcs span {
  display: inline;
  min-width: 0;
  margin-inline-start: .15rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--awp-stock-accent);
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
}

/* Non-standard compact contexts keep the polished boxed treatment. */
.product-progress-wrapper--special-product,
.product-progress-wrapper--deals-product {
  padding: .7rem .8rem;
  border-radius: .875rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.product-progress-wrapper--special-product > .entry-title,
.product-progress-wrapper--deals-product > .entry-title {
  margin-bottom: .45rem;
  font-size: .74rem;
  line-height: 1.8;
}

@media screen and (max-width: 767.98px) {
  .product-progress-wrapper {
    padding: .8rem .85rem;
    border-radius: .875rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
  }

  .product-progress-wrapper > .entry-title {
    margin-bottom: .5rem;
    font-size: .81rem;
    line-height: 1.8;
  }

  .single-product-wrapper .product-progress-wrapper > .entry-title {
    font-size: .88rem;
  }

  .product-progress-wrapper .product-progress-detail .product-pcs {
    font-size: .75rem;
  }

  .product-progress-wrapper .product-progress-detail .product-pcs span {
    font-size: .8rem;
  }


  .products .product .awp-product-card .product-progress-wrapper,
  .product-progress-wrapper--card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .products .product .awp-product-card .product-progress-wrapper .product-progress-detail .product-pcs,
  .product-progress-wrapper--card .product-progress-detail .product-pcs {
    font-size: 8px;
  }

  .products .product .awp-product-card .product-progress-wrapper .product-progressbar.style-1,
  .product-progress-wrapper--card .product-progressbar.style-1 {
    height: 3px;
  }

}
