.cacti-theme {
  background: var(--color-cream);
}

body.cacti-theme::before,
.cacti-theme .global-grain-overlay {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("../images/grain.svg");
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 48px 48px;
}

body.cacti-theme::before {
  z-index: 0;
  opacity: var(--grain-background-opacity);
  mix-blend-mode: multiply;
  filter: contrast(1.15) brightness(0.98);
}

.cacti-theme .global-grain-overlay {
  z-index: 9998;
  opacity: var(--grain-overlay-opacity);
  mix-blend-mode: soft-light;
  filter: contrast(1.08);
}

.cacti-theme.woocommerce-account .shell.header[data-scroll-visible="false"] {
  pointer-events: auto;
  transform: translateY(0);
}

.cacti-theme .header,
.cacti-theme main,
.cacti-theme .footer {
  position: relative;
  z-index: 1;
}

.cacti-theme .shell.header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.cacti-theme .cartPanel {
  position: fixed;
  z-index: 45;
}

.cacti-theme .cartPanel:not(.cartPanelStatic) .cartTitle {
  width: auto;
  flex: 0 0 auto;
}

.cacti-theme .cartPanel:not(.cartPanelStatic) .cartHeader,
.cacti-theme .cartPanel:not(.cartPanelStatic) .cartHeaderActions {
  flex-direction: row;
}

.cacti-theme .cartPanel:not(.cartPanelStatic) .cartHeaderActions {
  width: auto;
  flex-wrap: nowrap;
}

.cacti-theme .cartPanel:not(.cartPanelStatic) .cartItemName,
.cacti-theme .cartPanel:not(.cartPanelStatic) .cartItemSub {
  display: block;
}

.cacti-theme .cartBuyButton,
.cacti-theme .cartCloseButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}

.cacti-about-page .shell.header {
  height: auto;
}

.cacti-about-page .shell.header .nav {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  justify-content: flex-start;
  color: inherit;
}

.cacti-about-page > .footer {
  position: relative;
  inset: auto;
  height: auto;
}

.cacti-theme .authCard .secondaryButton,
.cacti-theme .authCard .ghostButton {
  width: auto;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
}

.cacti-theme .wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
}

.cacti-theme .headerPrice {
  color: inherit;
  text-decoration: none;
}

.cacti-theme .headerPrice:focus-visible,
.cacti-theme .headerCartButton:focus-visible,
.cacti-theme .headerProfileLink:focus-visible,
.cacti-theme .mobileMenuButton:focus-visible {
  outline: 1px solid rgba(0, 0, 0, 0.7);
  outline-offset: 2px;
}

.cacti-theme .woocommerce-notices-wrapper,
.cacti-theme .woocommerce-message,
.cacti-theme .woocommerce-info,
.cacti-theme .woocommerce-error {
  font-family: var(--font-body);
  font-size: 13px;
}

.cacti-theme .woocommerce-ordering {
  margin: 0;
}

.cacti-theme .shopSortControl {
  position: relative;
  display: inline-flex;
}

.cacti-theme .shopSortControl .sortTrigger {
  pointer-events: none;
}

.cacti-theme .shopSortControl .woocommerce-ordering {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.cacti-theme .shopSortControl .woocommerce-ordering select {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.cacti-theme .woocommerce-ordering select {
  appearance: none;
  min-height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  background: transparent;
  padding: 0 36px 0 16px;
  color: #111;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cacti-theme .priceValue .woocommerce-Price-amount {
  color: inherit;
  font: inherit;
}

.cacti-theme .catalogPrice del,
.cacti-theme .catalogPrice ins,
.cacti-theme .categoryStoryPrice del,
.cacti-theme .categoryStoryPrice ins,
.cacti-theme .inlineCarouselPrice del,
.cacti-theme .inlineCarouselPrice ins,
.cacti-theme .productSearchMeta del,
.cacti-theme .productSearchMeta ins {
  text-decoration-thickness: 1px;
}

.cacti-theme .catalogPrice del,
.cacti-theme .categoryStoryPrice del,
.cacti-theme .inlineCarouselPrice del,
.cacti-theme .productSearchMeta del {
  color: rgba(0, 0, 0, 0.48);
}

.cacti-theme .catalogPrice ins,
.cacti-theme .categoryStoryPrice ins,
.cacti-theme .inlineCarouselPrice ins,
.cacti-theme .productSearchMeta ins {
  margin-left: 0;
  color: inherit;
  text-decoration: none;
}

.cacti-theme .cactiSalePrice {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  max-width: 100%;
}

.cacti-theme .productPriceDiscount .cactiSalePrice {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.cacti-theme .categoryStoryPrice .cactiSalePrice,
.cacti-theme .inlineCarouselPrice .cactiSalePrice,
.cacti-theme .productSearchMeta .cactiSalePrice {
  gap: 4px;
}

.cacti-theme .catalogPrice .cactiSalePrice {
  gap: 4px;
  line-height: 1.05;
}

.cacti-theme .carouselSection .track .card {
  text-decoration: none;
}

.cacti-theme .carouselSection .imageWrap,
.cacti-theme .carouselSection .imageFallback {
  background: transparent;
}

/* WooCommerce sets product-loop images back to `height:auto`, which leaves a
   visible strip inside the slightly portrait carousel frames. */
.cacti-theme .carouselSection .image {
  height: 100% !important;
}

.cacti-theme .mainImageFrame,
.cacti-theme .thumbButton,
.cacti-theme .thumbPlaceholder,
.cacti-theme .imagePlaceholder,
.cacti-theme .fullscreenImagePlaceholder {
  background: transparent;
}

.cacti-theme .sizeChartTrigger {
  background: transparent;
}

.cacti-theme .relatedCarouselSection,
.cacti-theme .relatedCarouselSection .carouselSection {
  width: 100%;
  max-width: none;
}

.cacti-theme .cartPageShell {
  padding-top: 18px;
}

/* Keep the final category index on one shared viewport edge across templates,
   including the full-width About canvas and narrower WooCommerce shells. */
.cacti-theme .categoriesSection {
  box-sizing: border-box;
  width: calc(100vw - 68px);
  margin-left: calc(50% - 50vw + 34px);
  margin-right: 0;
}

/* On the homepage, align the category index with the full-width New Products
   image instead of the narrower shared category inset. */
.cacti-theme .homeCategories .categoriesSection {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-inline: 0;
}

.cacti-theme .homeCategories .categoriesList {
  width: 100%;
  max-width: none;
}

@media (max-width: 1024px) {
  .cacti-theme .categoriesSection {
    width: calc(100vw - 40px);
    margin-left: calc(50% - 50vw + 20px);
  }
}

.cacti-theme .cartPanelStatic {
  position: relative;
  inset: auto;
  width: min(760px, 100%);
  margin-inline: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.cacti-theme .cartPanelStatic .cartBody {
  max-height: none;
}

.cacti-theme .cartQuantity {
  width: 56px;
  min-height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
  font-family: var(--font-body);
}

.cacti-theme .cartItemSubtotal {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
}

.cacti-theme .cartCollaterals {
  width: min(760px, 100%);
  margin: 18px auto 0;
}

.cacti-theme .cartCollaterals .cart_totals {
  float: none;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.54);
  padding: 16px;
}

.cacti-theme .cartCouponRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.cacti-theme .cartCouponInput {
  min-height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding-inline: 14px;
  font-family: var(--font-body);
}

.cacti-theme .cartActionsRow {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.cacti-theme .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.cacti-theme .woocommerce-MyAccount-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.56);
  border-radius: 999px;
  padding: 0 14px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cacti-theme .woocommerce-MyAccount-navigation .is-active a {
  background: #111;
  color: #fffef5;
}

@media (max-width: 680px) {
  body.cacti-theme::before,
  .cacti-theme .global-grain-overlay {
    background-size: 38px 38px;
  }

  .cacti-theme main.shell:not(.main) {
    width: calc(100vw - 16px);
  }

  .cacti-theme .categoriesSection {
    width: calc(100vw - 30px);
    margin-left: calc(50% - 50vw + 15px);
    padding-inline: 0;
  }

  .cacti-theme .cartPanelStatic {
    width: 100%;
    border-radius: 12px;
  }

  .cacti-theme .cartHeader,
  .cacti-theme .cartHeaderActions,
  .cacti-theme .cartCouponRow,
  .cacti-theme .cartActionsRow {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}
