:root {
  --inreno-ink: #24231f;
  --inreno-muted: #706d65;
  --inreno-line: #dedbd3;
  --inreno-soft: #f5f2ec;
  --inreno-panel: #fbfaf7;
  --inreno-accent: #bc8d4d;
  --inreno-accent-dark: #9f7338;
  --inreno-white: #fff;
  --inreno-page-width: 1180px;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) {
  color: var(--inreno-ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(188, 141, 77, 0.07), transparent 24%),
    var(--inreno-panel);
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .site-content,
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .site-content > .ast-container,
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) #primary,
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .site-main {
  width: 100%;
  max-width: none;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ast-woocommerce-container {
  width: min(calc(100% - 40px), var(--inreno-page-width));
  max-width: var(--inreno-page-width) !important;
  margin: 0 auto;
  padding: 24px 0 64px;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woocommerce-breadcrumb {
  margin: 0 0 28px;
  color: var(--inreno-muted);
  font-size: 0.78rem;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woocommerce-products-header {
  margin: 0 0 28px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--inreno-line);
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woocommerce-products-header__title.page-title {
  margin: 0;
  color: var(--inreno-ink);
  font-size: clamp(1.9rem, 4vw, 3.25rem) !important;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .term-description {
  max-width: 64ch;
  margin-top: 12px;
  color: var(--inreno-muted);
  font-size: 0.84rem;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woocommerce-result-count {
  margin: 7px 0 24px !important;
  color: var(--inreno-muted);
  font-size: 0.76rem;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woocommerce-ordering {
  margin: 0 0 24px !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woocommerce-ordering select {
  min-height: 42px;
  padding: 8px 40px 8px 13px;
  border: 1px solid var(--inreno-line);
  border-radius: 9px;
  color: var(--inreno-ink);
  background-color: var(--inreno-white);
  font-size: 0.75rem;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  clear: both;
  gap: 24px;
  width: 100%;
  margin: 0 !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products::before,
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products::after {
  display: none !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products li.product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 16px !important;
  float: none !important;
  overflow: hidden;
  border: 1px solid var(--inreno-line);
  border-radius: 14px;
  background: var(--inreno-white);
  box-shadow: 0 10px 28px rgba(42, 39, 32, 0.05);
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products li.product > a:first-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  margin: 0 0 16px !important;
  border-radius: 0 !important;
  object-fit: cover;
  transition: transform 320ms ease;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products li.product:hover img {
  transform: scale(1.025);
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ast-woo-product-category {
  margin: 0 16px 7px !important;
  color: var(--inreno-accent-dark) !important;
  font-size: 0.66rem !important;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products li.product .woocommerce-loop-product__title {
  margin: 0 16px 8px !important;
  padding: 0 !important;
  color: var(--inreno-ink) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products li.product .price {
  margin: auto 16px 14px !important;
  color: var(--inreno-ink) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products li.product .button {
  display: grid !important;
  place-items: center;
  width: auto !important;
  min-height: 42px;
  margin: 0 16px !important;
  padding: 9px 14px !important;
  border: 1px solid var(--inreno-accent-dark) !important;
  border-radius: 9px !important;
  color: var(--inreno-white) !important;
  background: var(--inreno-accent) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products li.product .button:hover {
  background: var(--inreno-accent-dark) !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) nav.woocommerce-pagination {
  margin-top: 34px;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) nav.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  border: 0;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) nav.woocommerce-pagination ul li {
  border: 0;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) nav.woocommerce-pagination a,
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) nav.woocommerce-pagination span {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--inreno-line);
  border-radius: 8px;
  color: var(--inreno-ink);
  background: var(--inreno-white);
  font-size: 0.75rem;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) nav.woocommerce-pagination .current {
  border-color: var(--inreno-accent-dark);
  color: var(--inreno-white);
  background: var(--inreno-accent);
}

@media (max-width: 900px) {
  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .ast-woocommerce-container {
    width: min(calc(100% - 24px), var(--inreno-page-width));
    padding-top: 16px;
  }

  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woocommerce-products-header {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 420px) {
  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) ul.products {
    grid-template-columns: 1fr;
  }
}

/* Match shop/archive notices to the single-product notification design. */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .woocommerce-notices-wrapper {
  width: 100%;
  margin: 0 0 24px;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  display: block;
  min-height: 58px;
  margin: 0 0 12px !important;
  padding: 17px 20px 17px 54px !important;
  border: 1px solid rgba(188, 141, 77, 0.34) !important;
  border-top: 1px solid rgba(188, 141, 77, 0.34) !important;
  border-radius: 12px !important;
  outline: 0 !important;
  color: var(--inreno-ink) !important;
  background: #fffaf3 !important;
  box-shadow: 0 12px 28px rgba(47, 35, 18, 0.08) !important;
  font-size: 0.82rem;
  line-height: 1.55;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
  top: 50% !important;
  left: 20px !important;
  color: var(--inreno-accent) !important;
  transform: translateY(-50%);
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(a.button, a.restore-item) {
  float: right !important;
  margin: -7px 0 -7px 20px !important;
  padding: 8px 15px !important;
  border: 1px solid var(--inreno-accent) !important;
  border-radius: 999px !important;
  color: var(--inreno-white) !important;
  background: var(--inreno-accent) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(a.button, a.restore-item):hover {
  border-color: var(--inreno-accent-dark) !important;
  background: var(--inreno-accent-dark) !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::after {
  display: table;
  clear: both;
  content: "";
}

@media (max-width: 620px) {
  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(a.button, a.restore-item) {
    float: none !important;
    display: table;
    margin: 12px 0 0 !important;
  }
}
