/*
 * CS Cosméticos — Product detail
 *
 * This component is intentionally isolated under .cs-pdp. WooCommerce keeps
 * ownership of gallery, variations, cart, reviews and product-card behaviour.
 */

.cs-pdp {
  --cs-pdp-plum: #600165;
  --cs-pdp-lilac: #c880cb;
  --cs-pdp-ink: #28172a;
  --cs-pdp-surface: #fffefd;
  --cs-pdp-soft: #fbf7fb;
  --cs-pdp-soft-strong: #faf4fb;
  --cs-pdp-line: #e7dfe7;
  --cs-pdp-muted: #6f6270;
  --cs-pdp-success: #18794e;
  --cs-pdp-danger: #b42318;
  --cs-pdp-focus: rgba(200, 128, 203, .45);
  --cs-pdp-radius-sm: 8px;
  --cs-pdp-radius: 14px;
  --cs-pdp-radius-lg: 22px;
  --cs-pdp-shadow: 0 10px 32px rgba(40, 23, 42, .055);
  --cs-pdp-motion: 160ms;
  --cs-pdp-add-to-cart-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='10 10 32 36' fill='none'%3E%3Cpath d='M14 41.9969V23.9687H17V21.9656H12V42.087C12 42.5944 12.2012 43.0809 12.5594 43.4397C12.9176 43.7985 13.4034 44 13.91 44H26V41.9969H14Z' fill='white'/%3E%3Cpath d='M33 21.9656V19.011C33 18.0903 32.8189 17.1786 32.4672 16.328C32.1154 15.4774 31.5998 14.7045 30.9497 14.0535C30.2997 13.4024 29.5281 12.886 28.6788 12.5337C27.8295 12.1813 26.9193 12 26 12C25.0807 12 24.1705 12.1813 23.3212 12.5337C22.4719 12.886 21.7003 13.4024 21.0503 14.0535C20.4002 14.7045 19.8846 15.4774 19.5328 16.328C19.1811 17.1786 19 18.0903 19 19.011V26.0219C19 26.2875 19.1054 26.5423 19.2929 26.7301C19.4804 26.918 19.7348 27.0235 20 27.0235C20.2652 27.0235 20.5196 26.918 20.7071 26.7301C20.8946 26.5423 21 26.2875 21 26.0219V23.9687H29V21.9656H21V19.011C21 17.6828 21.5268 16.409 22.4645 15.4699C23.4021 14.5307 24.6739 14.0031 26 14.0031C27.3261 14.0031 28.5979 14.5307 29.5355 15.4699C30.4732 16.409 31 17.6828 31 19.011V25.9718C31 26.2375 31.1054 26.4922 31.2929 26.68C31.4804 26.8679 31.7348 26.9734 32 26.9734C32.2652 26.9734 32.5196 26.8679 32.7071 26.68C32.8946 26.4922 33 26.2375 33 25.9718V23.9687H38V32.9828H40V21.9656H33Z' fill='white'/%3E%3Cpath d='M33.55 43.95V33H35.65V43.95H33.55ZM29 39.475V37.5H40.2V39.475H29Z' fill='white'/%3E%3C/svg%3E");
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: clamp(22px, 3vw, 40px) 0 clamp(48px, 7vw, 80px);
  color: var(--cs-pdp-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

.cs-pdp,
.cs-pdp *,
.cs-pdp *::before,
.cs-pdp *::after {
  box-sizing: border-box;
}

.cs-pdp img,
.cs-pdp svg,
.cs-pdp video,
.cs-pdp iframe {
  max-width: 100%;
}

.cs-pdp [hidden] {
  display: none !important;
}

.cs-pdp a {
  text-underline-offset: .18em;
}

.cs-pdp :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--cs-pdp-focus);
  outline-offset: 3px;
}

.cs-pdp :where(button, input, select, textarea) {
  font: inherit;
}

.cs-pdp .screen-reader-text:focus {
  z-index: 1200;
}

/* Primary composition: reference structure translated to the CS system. */
.cs-pdp .cs-pdp__primary {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr);
  gap: clamp(28px, 3vw, 42px);
  align-items: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 clamp(44px, 5vw, 64px);
}

.cs-pdp .cs-pdp__primary > * {
  min-width: 0;
  max-width: 100%;
}

/* The visual deck owns gallery + trust strip, matching the reference hierarchy. */
.cs-pdp .cs-pdp__visual-column {
  display: grid;
  gap: 16px;
  align-self: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Gallery: native WooCommerce controls in an open, product-first composition. */
.cs-pdp .cs-pdp__gallery {
  position: relative;
  align-self: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.cs-pdp .cs-pdp__gallery .woocommerce-product-gallery {
  position: relative;
  float: none;
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  /*
   * WooCommerce mantém a galeria em opacity:0 até concluir o seu inicializador.
   * A transição inline nativa interpolava esse único estado 0→1 e produzia o
   * flash branco. Remover apenas a interpolação preserva o lifecycle nativo,
   * inclusive FlexSlider, zoom, PhotoSwipe e substituições por variação.
   */
  transition: none !important;
}

.cs-pdp .cs-pdp__gallery .woocommerce-product-gallery__wrapper {
  min-width: 0;
  margin: 0;
}

.cs-pdp .cs-pdp__gallery .flex-viewport,
.cs-pdp .cs-pdp__gallery .woocommerce-product-gallery:not(:has(.flex-viewport)) > .woocommerce-product-gallery__wrapper {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--cs-pdp-line);
  border-radius: var(--cs-pdp-radius);
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.cs-pdp .cs-pdp__gallery .flex-viewport {
  overflow: hidden !important;
}

.cs-pdp .cs-pdp__gallery .woocommerce-product-gallery__image {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  background: #fff;
}

.cs-pdp .cs-pdp__gallery .woocommerce-product-gallery__image > a {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  padding: 0;
  background: #fff;
}

.cs-pdp .cs-pdp__gallery .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.cs-pdp .cs-pdp__gallery .flex-direction-nav a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--cs-pdp-line);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .97);
  color: var(--cs-pdp-ink);
  box-shadow: none;
  opacity: 1;
  transition:
    border-color var(--cs-pdp-motion) ease,
    background-color var(--cs-pdp-motion) ease,
    color var(--cs-pdp-motion) ease;
}

.cs-pdp .cs-pdp__gallery .woocommerce-product-gallery__trigger {
  display: none !important;
}

/*
 * Desktop hover zoom: jquery.zoom remains the image engine. The CS layer only
 * supplies an external target and a visual lens that mirrors its viewport.
 */
.cs-pdp .cs-pdp__hover-zoom-window {
  display: none;
}

.cs-pdp .cs-pdp__hover-zoom-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: block;
  border: 1px solid rgba(96, 1, 101, .38);
  border-radius: 8px;
  background: rgba(200, 128, 203, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .64);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: opacity 120ms cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .cs-pdp .cs-pdp__hover-zoom-window {
    position: absolute;
    top: 0;
    left: calc(100% + clamp(26px, 3vw, 42px));
    z-index: 20;
    display: block;
    width: clamp(360px, 30vw, 440px);
    aspect-ratio: 1 / 1;
    border: 1px solid var(--cs-pdp-line);
    border-radius: var(--cs-pdp-radius);
    background: #fff;
    box-shadow: 0 16px 34px rgba(40, 23, 42, .12);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 120ms cubic-bezier(.22, 1, .36, 1);
  }

  .cs-pdp .cs-pdp__hover-zoom-window .zoomImg {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: initial;
    background: #fff;
  }

  .cs-pdp .cs-pdp__gallery.is-hover-zoom-ready .flex-active-slide {
    position: relative;
    cursor: crosshair;
  }

  .cs-pdp .cs-pdp__gallery.is-hover-zoom-active .cs-pdp__hover-zoom-window,
  .cs-pdp .cs-pdp__gallery.is-hover-zoom-active .cs-pdp__hover-zoom-lens {
    opacity: 1;
    visibility: visible;
  }
}

.cs-pdp .cs-pdp__gallery .flex-direction-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-pdp .cs-pdp__gallery .flex-direction-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-pdp .cs-pdp__gallery .flex-direction-nav a {
  position: absolute;
  top: 50%;
  z-index: 4;
  margin-top: -22px;
  color: var(--cs-pdp-ink);
  font-size: 0;
  text-indent: 0;
}

.cs-pdp .cs-pdp__gallery .flex-direction-nav a::before {
  display: none;
}

.cs-pdp .cs-pdp__gallery .flex-direction-nav .flex-prev {
  left: 18px;
}

.cs-pdp .cs-pdp__gallery .flex-direction-nav .flex-next {
  right: 18px;
}

.cs-pdp .cs-pdp__gallery .flex-direction-nav a .cs-pdp__gallery-arrow-icon {
  display: block;
  width: 19px;
  height: 19px;
  overflow: visible;
  pointer-events: none;
}

.cs-pdp .cs-pdp__gallery .flex-direction-nav a:hover {
  border-color: var(--cs-pdp-lilac);
  background-color: var(--cs-pdp-soft-strong);
  color: var(--cs-pdp-plum);
  transform: none;
}

.cs-pdp .cs-pdp__gallery .flex-direction-nav .flex-disabled {
  opacity: .38 !important;
  cursor: default;
  pointer-events: none;
}

.cs-pdp .cs-pdp__gallery .flex-control-nav.flex-control-thumbs,
.cs-pdp .cs-pdp__gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 12px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;
  scrollbar-color: rgba(96, 1, 101, .35) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.cs-pdp .cs-pdp__gallery .flex-control-thumbs li {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.cs-pdp .cs-pdp__gallery .flex-control-thumbs li img {
  display: block;
  width: 72px;
  height: 72px;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: var(--cs-pdp-radius-sm);
  background: var(--cs-pdp-surface);
  object-fit: contain;
  opacity: .72;
  cursor: pointer;
  transition:
    border-color var(--cs-pdp-motion) ease,
    opacity var(--cs-pdp-motion) ease;
}

.cs-pdp .cs-pdp__gallery .flex-control-thumbs li img:hover,
.cs-pdp .cs-pdp__gallery .flex-control-thumbs li img.flex-active {
  border-color: var(--cs-pdp-plum);
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.cs-pdp .cs-pdp__gallery-status {
  display: none;
  margin: 8px 0 0;
  color: var(--cs-pdp-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.cs-pdp .cs-pdp__gallery--single :is(.flex-control-thumbs, .flex-direction-nav, .cs-pdp__gallery-status) {
  display: none !important;
}

/* Summary: open commercial hierarchy, without a competing outer card. */
.cs-pdp .cs-pdp__summary {
  position: relative;
  float: none !important;
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 2px 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cs-pdp .cs-pdp__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  margin: 0 0 9px;
  color: var(--cs-pdp-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.cs-pdp .cs-pdp__brand-value {
  color: var(--cs-pdp-plum);
  font-weight: 800;
}

.cs-pdp .cs-pdp__brand a {
  color: inherit;
  text-decoration: none;
}

.cs-pdp .cs-pdp__brand a:hover {
  text-decoration: underline;
}

.cs-pdp .cs-pdp__summary .product_title.entry-title {
  max-width: 32ch;
  margin: 0 0 14px;
  color: var(--cs-pdp-ink);
  font-size: clamp(25px, 1.8vw, 28px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.cs-pdp .cs-pdp__commercial-head,
.cs-pdp .cs-pdp__meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 32px;
  margin: 0 0 14px;
  color: var(--cs-pdp-muted);
  font-size: 13px;
  line-height: 1.45;
}

.cs-pdp .cs-pdp__commercial-head > *,
.cs-pdp .cs-pdp__meta-line > * {
  margin: 0;
}

.cs-pdp .cs-pdp__references {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 0 0 16px;
  color: var(--cs-pdp-muted);
  font-size: 12px;
  line-height: 1.45;
}

.cs-pdp .cs-pdp__reference {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.cs-pdp .cs-pdp__reference :is(dt, dd) {
  margin: 0;
}

.cs-pdp .cs-pdp__reference dt {
  font-weight: 600;
}

.cs-pdp .cs-pdp__reference dd {
  color: var(--cs-pdp-ink);
  font-weight: 700;
}

.cs-pdp .cs-pdp__summary .woocommerce-product-rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  min-width: 0;
  min-height: 28px;
  order: 2;
  margin: 0;
  white-space: nowrap;
}

.cs-pdp .cs-pdp__summary .woocommerce-product-rating .star-rating {
  width: 5.36em;
  height: 1em;
  color: #f7b500;
  font-size: 16px;
  letter-spacing: .08em;
  line-height: 1;
  transform: translateY(-.5px);
}

.cs-pdp .cs-pdp__summary .woocommerce-product-rating .star-rating::before {
  opacity: .18;
}

.cs-pdp .cs-pdp__summary .woocommerce-review-link {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  color: var(--cs-pdp-muted);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-decoration: none;
  transform: translateY(3px);
}

.cs-pdp .cs-pdp__summary :is(.cs-pdp__reference, .sku_wrapper) {
  color: var(--cs-pdp-muted);
  font-size: 13px;
}

.cs-pdp .cs-pdp__summary .woocommerce-review-link:hover {
  color: var(--cs-pdp-plum);
  text-decoration: none;
}

.cs-pdp .cs-pdp__summary :is(.price, p.price, .cs-product-price) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  max-width: 100%;
  order: 1;
  margin: 0;
  color: var(--cs-pdp-ink);
  font-size: clamp(24px, 1.8vw, 28px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.cs-pdp .cs-pdp__summary :is(.price, p.price, .cs-product-price) ins {
  order: 1;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.cs-pdp .cs-pdp__summary :is(.price, p.price, .cs-product-price) > .woocommerce-Price-amount,
.cs-pdp .cs-pdp__summary :is(.price, p.price, .cs-product-price) ins .woocommerce-Price-amount {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.cs-pdp .cs-pdp__summary :is(.price, p.price, .cs-product-price) > .woocommerce-Price-amount {
  order: 1;
}

.cs-pdp .cs-pdp__summary :is(.price, p.price, .cs-product-price) del {
  order: 2;
  color: var(--cs-pdp-muted);
  font-size: .64em;
  font-weight: 600;
  letter-spacing: -.01em;
  opacity: .72;
}

.cs-pdp .cs-pdp__summary .cs-product-price__discount {
  order: 3;
  position: static;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ef3227;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  z-index: 2;
}

.cs-pdp .cs-pdp__summary .cs-product-price__range-prefix {
  color: var(--cs-pdp-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.cs-pdp .cs-pdp__summary .woocommerce-product-details__short-description {
  max-width: 62ch;
  margin: 0 0 22px;
  padding: 0 0 21px;
  border-top: 0;
  border-bottom: 1px solid rgba(96, 1, 101, .1);
  color: var(--cs-pdp-muted);
  font-size: 15px;
  line-height: 1.7;
}

.cs-pdp .cs-pdp__summary .woocommerce-product-details__short-description > :first-child {
  margin-top: 0;
}

.cs-pdp .cs-pdp__summary .woocommerce-product-details__short-description > :last-child {
  margin-bottom: 0;
}

.cs-pdp .cs-pdp__availability-note {
  margin: 0 0 18px;
  color: var(--cs-pdp-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

/* Native variation engine and custom CS swatches. */
.cs-pdp .cs-pdp__summary form.variations_form.cart,
.cs-pdp .cs-pdp__summary .single_variation_wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.cs-pdp .cs-pdp__summary .variations_form .variations,
.cs-pdp .cs-pdp__summary .variations_form .variations tbody,
.cs-pdp .cs-pdp__summary .variations_form .variations tr,
.cs-pdp .cs-pdp__summary .variations_form .variations td,
.cs-pdp .cs-pdp__summary .variations_form .variations th {
  display: block;
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.cs-pdp .cs-pdp__summary form.variations_form > .variations {
  margin: 0 0 18px;
  padding: 0 0 20px !important;
  border: 0;
  border-bottom: 1px solid rgba(96, 1, 101, .12);
  border-radius: 0;
  background: transparent !important;
}

.cs-pdp .cs-pdp__summary .variations_form .variations tr {
  margin: 0 0 18px;
}

.cs-pdp .cs-pdp__summary .variations_form .variations tr:last-child {
  margin-bottom: 0;
}

/* Valores contextuais seguros continuam no formulário nativo, mas a sua
   apresentação sai do fluxo: não há escolha comercial para o cliente. */
.cs-pdp .cs-pdp__summary .variations_form .variations tr:has(select.cs-pdp-contextual-variation):not(:has(.cs-pdp__variation-reset-row)) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Se o último atributo for apenas contextual, a linha continua no fluxo para
   alojar o reset estável; os controlos contextuais permanecem visualmente
   ocultos e disponíveis para o motor nativo de variações. */
.cs-pdp .cs-pdp__summary .variations_form .variations tr:has(select.cs-pdp-contextual-variation):has(.cs-pdp__variation-reset-row) > th.label,
.cs-pdp .cs-pdp__summary .variations_form .variations tr:has(select.cs-pdp-contextual-variation):has(.cs-pdp__variation-reset-row) > td.value > :not(.cs-pdp__variation-reset-row) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.cs-pdp .cs-pdp__summary .variations_form .variations th.label {
  margin: 0 0 8px;
}

/* O picker já apresenta o nome e a opção selecionada. Mantém o label/select
   nativos no accessibility tree sem repetir visualmente o mesmo atributo. */
.cs-pdp .cs-pdp__summary .variations_form .variations tr:has(.cs-tone-picker) > th.label {
  display: none !important;
}

.cs-pdp .cs-pdp__summary .variations_form .variations label,
.cs-pdp .cs-pdp__summary .cs-swatch-label,
.cs-pdp .cs-pdp__summary .cs-tone-picker__label {
  display: block;
  margin: 0 0 8px;
  color: var(--cs-pdp-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.cs-pdp .cs-pdp__summary .cs-swatch-name,
.cs-pdp .cs-pdp__summary .cs-tone-picker__selected-name {
  color: var(--cs-pdp-plum);
  font-weight: 800;
}

.cs-pdp .cs-pdp__summary .variations_form .variations select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 40px 10px 13px;
  border: 1px solid var(--cs-pdp-line);
  border-radius: var(--cs-pdp-radius-sm);
  background-color: var(--cs-pdp-surface);
  color: var(--cs-pdp-ink);
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: none;
}

.cs-pdp .cs-pdp__summary .variations_form .variations select:focus {
  border-color: var(--cs-pdp-plum);
  outline: 3px solid var(--cs-pdp-focus);
  outline-offset: 1px;
  box-shadow: none;
}

/* Swatch-enhanced selects remain in the accessibility tree and WC form state. */
.cs-pdp .cs-pdp__summary .variations_form .variations select[name="attribute_pa_cor"],
.cs-pdp .cs-pdp__summary .variations_form .variations select[name="attribute_pa_tom"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px;
  min-height: 1px;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0 !important;
}

/* O select continua focável e sincronizado; o picker visível recebe o anel. */
.cs-pdp .cs-pdp__summary .variations_form .variations tr:has(select[name="attribute_pa_cor"]:focus) .cs-tone-picker,
.cs-pdp .cs-pdp__summary .variations_form .variations tr:has(select[name="attribute_pa_tom"]:focus) .cs-tone-picker {
  border-radius: var(--cs-pdp-radius-sm);
  outline: 3px solid var(--cs-pdp-focus);
  outline-offset: 4px;
}

.cs-pdp .cs-pdp__summary .variations_form .variations tr:has(select[name="attribute_pa_cor"]:focus) .cs-tone-picker__selected,
.cs-pdp .cs-pdp__summary .variations_form .variations tr:has(select[name="attribute_pa_tom"]:focus) .cs-tone-picker__selected {
  color: var(--cs-pdp-plum);
}

.cs-pdp .cs-pdp__summary .cs-pdp__variation-reset-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin: 4px 0 0;
}

.cs-pdp .cs-pdp__summary .cs-pdp__variation-reset-row .reset_variations {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  color: var(--cs-pdp-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  visibility: hidden;
  opacity: 1 !important;
  transition: none !important;
}

.cs-pdp .cs-pdp__summary .cs-pdp__variation-reset-row .reset_variations::before {
  content: "";
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9m0-9l-9 9' fill='none' stroke='%23000' stroke-linecap='round' stroke-width='1.75'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9m0-9l-9 9' fill='none' stroke='%23000' stroke-linecap='round' stroke-width='1.75'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cs-pdp .cs-pdp__summary .cs-pdp__variation-reset-row .reset_variations:hover {
  color: var(--cs-pdp-plum);
  text-decoration: none;
}

.cs-pdp .cs-pdp__summary .cs-pdp__variation-reset-row .reset_variations:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--cs-pdp-focus);
  outline-offset: 2px;
  color: var(--cs-pdp-plum);
  text-decoration: none;
}

.cs-pdp .cs-pdp__summary .cs-swatch-row,
.cs-pdp .cs-pdp__summary .cs-tone-picker {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cs-pdp .cs-pdp__summary .cs-tone-picker__head {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
}

.cs-pdp .cs-pdp__summary .cs-tone-picker__selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--cs-pdp-muted);
  font-size: 14px;
  line-height: 1.45;
}

.cs-pdp .cs-pdp__summary .cs-product-swatches,
.cs-pdp .cs-pdp__summary .cs-tone-picker__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 3px;
}

.cs-pdp .cs-pdp__summary .cs-product-swatch,
.cs-pdp .cs-pdp__summary .cs-tone-picker__option {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(40, 23, 42, .22);
  border-radius: var(--cs-pdp-radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 52%),
    var(--tone-color, var(--sw-color, #f6f1f7));
  color: transparent;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34);
  overflow: hidden;
  transition:
    border-color var(--cs-pdp-motion) ease,
    box-shadow var(--cs-pdp-motion) ease,
    opacity var(--cs-pdp-motion) ease;
}

.cs-pdp .cs-pdp__summary :is(.cs-product-swatch, .cs-tone-picker__option):hover:not(.is-unavailable):not([disabled]) {
  border-color: var(--cs-pdp-plum);
  transform: none;
}

.cs-pdp .cs-pdp__summary :is(.cs-product-swatch, .cs-tone-picker__option):focus-visible {
  border-color: var(--cs-pdp-ink);
  outline: 3px solid var(--cs-pdp-focus);
  outline-offset: 3px;
  box-shadow: inset 0 0 0 2px var(--cs-pdp-surface);
}

.cs-pdp .cs-pdp__summary :is(.cs-product-swatch, .cs-tone-picker__option).is-active,
.cs-pdp .cs-pdp__summary :is(.cs-product-swatch, .cs-tone-picker__option)[aria-pressed="true"],
.cs-pdp .cs-pdp__summary :is(.cs-product-swatch, .cs-tone-picker__option)[aria-checked="true"] {
  border: 2px solid var(--cs-pdp-ink);
  box-shadow:
    inset 0 0 0 2px var(--cs-pdp-surface),
    0 0 0 2px var(--cs-pdp-lilac);
}

.cs-pdp .cs-pdp__summary :is(.cs-product-swatch, .cs-tone-picker__option).is-unavailable,
.cs-pdp .cs-pdp__summary :is(.cs-product-swatch, .cs-tone-picker__option)[disabled] {
  opacity: .38;
  cursor: not-allowed;
}

.cs-pdp .cs-pdp__summary :is(.cs-product-swatch, .cs-tone-picker__option).is-unavailable::before,
.cs-pdp .cs-pdp__summary :is(.cs-product-swatch, .cs-tone-picker__option)[disabled]::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 3;
  background: linear-gradient(
    135deg,
    transparent calc(50% - 1px),
    rgba(40, 23, 42, .72) calc(50% - 1px),
    rgba(40, 23, 42, .72) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
  pointer-events: none;
}

.cs-pdp .cs-pdp__summary .cs-product-swatch img,
.cs-pdp .cs-pdp__summary .cs-tone-picker__swatch,
.cs-pdp .cs-pdp__summary .cs-tone-picker__option img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
  object-fit: cover;
}

.cs-pdp .cs-pdp__summary .cs-tone-picker__name,
.cs-pdp .cs-pdp__summary .cs-tone-picker__number,
.cs-pdp .cs-pdp__summary .cs-tone-picker__text {
  display: none;
}

.cs-pdp .cs-pdp__summary .cs-tone-picker__note {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--cs-pdp-muted);
  font-size: 12px;
  line-height: 1.55;
}

.cs-pdp .cs-pdp__summary .cs-tone-picker__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 12px 0 0;
  padding: 9px 14px;
  border: 1px solid var(--cs-pdp-line);
  border-radius: var(--cs-pdp-radius-sm);
  background: var(--cs-pdp-surface);
  color: var(--cs-pdp-plum);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.cs-pdp .cs-pdp__summary .cs-tone-picker__toggle:hover {
  border-color: var(--cs-pdp-lilac);
  background: var(--cs-pdp-soft);
  box-shadow: none;
  transform: none;
}

.cs-pdp .cs-pdp__summary .cs-variation-error .variations.cs-variation-field-error,
.cs-pdp .cs-pdp__summary .cs-variation-error .cs-tone-picker.cs-variation-field-error {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(180, 35, 24, .35);
  border-radius: var(--cs-pdp-radius-sm);
  background: #fff7f6;
  box-shadow: none;
}

.cs-pdp .cs-pdp__summary .cs-variation-error :is(select[aria-invalid="true"], .cs-product-swatches.cs-variation-field-error) {
  border-color: var(--cs-pdp-danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
}

.cs-pdp .cs-pdp__summary .cs-pdp__purchase-status,
.cs-pdp .cs-pdp__summary .woocommerce-variation.single_variation,
.cs-pdp .cs-pdp__summary .woocommerce-variation-availability {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 16px;
  color: var(--cs-pdp-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.cs-pdp .cs-pdp__summary .woocommerce-variation-price {
  display: none;
}

/* O primeiro `check_variations` do WooCommerce executa slideUp mesmo quando a
   região ainda está vazia. Neutraliza apenas esse estado sem conteúdo, para
   que a margem animada não desloque quantidade e CTAs durante o carregamento. */
.cs-pdp .cs-pdp__summary .woocommerce-variation.single_variation:empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.cs-pdp .cs-pdp__summary :is(.stock, .woocommerce-variation-availability .stock) {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(24, 121, 78, .1);
  color: var(--cs-pdp-success);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.cs-pdp .cs-pdp__summary :is(.stock, .woocommerce-variation-availability .stock)::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(24, 121, 78, .14);
}

.cs-pdp .cs-pdp__summary :is(.stock.out-of-stock, .woocommerce-variation-availability .out-of-stock) {
  color: var(--cs-pdp-danger);
  background: rgba(180, 35, 24, .08);
}

/* Purchase row. WooCommerce retains all native form fields and states. */
.cs-pdp .cs-pdp__summary form.cart:not(.variations_form),
.cs-pdp .cs-pdp__summary .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 18px 0 10px;
}

.cs-pdp .cs-pdp__summary form.variations_form.cart {
  display: block;
}

.cs-pdp .cs-pdp__summary .quantity.cs-qty {
  display: inline-grid;
  grid-template-columns: 44px 40px 44px;
  flex: 0 0 128px;
  width: 128px;
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--cs-pdp-surface);
  box-shadow: inset 0 0 0 1px rgba(96, 1, 101, .2);
}

.cs-pdp .cs-pdp__summary .quantity .qty {
  width: 100%;
  height: 48px;
  min-height: 44px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cs-pdp-ink);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  box-shadow: none;
}

.cs-pdp .cs-pdp__summary .quantity .qty:focus {
  border-color: transparent;
  outline: 0;
  box-shadow: none;
}

.cs-pdp .cs-pdp__summary .quantity.cs-qty .cs-qty__btn {
  width: 44px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
}

.cs-pdp .cs-pdp__summary .quantity.cs-qty:focus-within {
  box-shadow:
    inset 0 0 0 1px var(--cs-pdp-plum),
    0 0 0 3px rgba(96, 1, 101, .12);
}

.cs-pdp .cs-pdp__summary .single_add_to_cart_button,
.cs-pdp .cs-pdp__sticky .button,
.cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-action] {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 48px;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--cs-pdp-plum);
  border-radius: 10px;
  background: var(--cs-pdp-plum);
  background-color: var(--cs-pdp-plum) !important;
  color: #fff;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .045em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  cursor: pointer;
  transition:
    background-color var(--cs-pdp-motion) ease,
    border-color var(--cs-pdp-motion) ease,
    color var(--cs-pdp-motion) ease;
}

.cs-pdp .cs-pdp__summary .single_add_to_cart_button::after {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: center / contain no-repeat var(--cs-pdp-add-to-cart-icon);
}

.cs-pdp .cs-pdp__summary .single_add_to_cart_button.added::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
}

.cs-pdp .cs-pdp__summary .single_add_to_cart_button:hover:not(.disabled):not([disabled]),
.cs-pdp .cs-pdp__sticky .button:hover:not([disabled]),
.cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-action]:hover:not([disabled]) {
  border-color: #48004c;
  background: #48004c;
  background-color: #48004c !important;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(96, 1, 101, .05);
}

.cs-pdp .cs-pdp__summary .single_add_to_cart_button:is(.disabled, [disabled]),
.cs-pdp .cs-pdp__sticky .button[disabled],
.cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-action][disabled] {
  opacity: .48;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.cs-pdp .cs-pdp__summary .single_add_to_cart_button.loading,
.cs-pdp .cs-pdp__summary .single_add_to_cart_button.cs-add-to-cart-pending {
  opacity: .72;
  cursor: progress;
  pointer-events: none;
}

.cs-pdp .cs-pdp__summary .single_add_to_cart_button.added {
  border-color: var(--cs-pdp-success);
  background: var(--cs-pdp-success);
}

.cs-pdp .cs-pdp__summary .cs-pdp__buy-now {
  flex: 0 0 100%;
  width: 100%;
  min-height: 48px;
  border-color: var(--cs-pdp-lilac);
  background: var(--cs-pdp-soft);
  background-color: var(--cs-pdp-soft) !important;
  color: var(--cs-pdp-plum);
  color: var(--cs-pdp-plum) !important;
  box-shadow: none;
}

.cs-pdp .cs-pdp__summary .cs-pdp__buy-now::after {
  display: none;
}

.cs-pdp .cs-pdp__summary .cs-pdp__buy-now:hover:not(.disabled):not([disabled]) {
  background: var(--cs-pdp-soft-strong);
  background-color: var(--cs-pdp-soft-strong) !important;
  color: var(--cs-pdp-plum);
  color: var(--cs-pdp-plum) !important;
  box-shadow: 0 3px 12px rgba(96, 1, 101, .04);
}

.cs-pdp .cs-pdp__summary .cs-single-wish-wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 0 0 100%;
  gap: 0;
  align-items: stretch;
  width: 100%;
  margin: 2px 0 0;
  border-top: 1px solid var(--cs-pdp-line);
  border-bottom: 1px solid var(--cs-pdp-line);
}

.cs-pdp .cs-pdp__summary .cs-single-wish-wrap :is(.cs-pcard__wish, .cs-product-wish-btn),
.cs-pdp .cs-pdp__summary .cs-product-wish-btn,
.cs-pdp .cs-pdp__summary .cs-pdp__secondary-action {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: auto;
  min-width: 44px;
  min-height: 52px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-left: 1px solid var(--cs-pdp-line);
  border-radius: 0;
  background: transparent;
  color: var(--cs-pdp-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition:
    border-color var(--cs-pdp-motion) ease,
    background-color var(--cs-pdp-motion) ease,
    color var(--cs-pdp-motion) ease;
}

.cs-pdp .cs-pdp__summary .cs-single-wish-wrap > :first-child {
  border-left: 0;
}

.cs-pdp .cs-pdp__summary .cs-product-wish-btn:hover,
.cs-pdp .cs-pdp__summary .cs-product-wish-btn.is-active,
.cs-pdp .cs-pdp__summary .cs-pdp__secondary-action:hover {
  background: var(--cs-pdp-soft-strong);
  color: var(--cs-pdp-plum);
  transform: none;
}

.cs-pdp .cs-pdp__summary .cs-pdp__secondary-action-icon,
.cs-pdp .cs-pdp__summary .cs-pdp__secondary-action > svg {
  display: inline-flex;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
}

.cs-pdp .cs-pdp__summary .cs-pdp__secondary-action-icon svg {
  width: 22px;
  height: 22px;
}

.cs-pdp .cs-pdp__share-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  display: grid;
  gap: 12px;
  width: min(320px, 100%);
  padding: 14px;
  border: 1px solid var(--cs-pdp-line);
  border-radius: var(--cs-pdp-radius);
  background: #fff;
  color: var(--cs-pdp-ink);
  box-shadow: var(--cs-pdp-shadow);
}

.cs-pdp .cs-pdp__share-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cs-pdp .cs-pdp__share-popover-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.cs-pdp .cs-pdp__share-popover-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: -6px -6px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cs-pdp-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cs-pdp .cs-pdp__share-popover-close:hover {
  background: var(--cs-pdp-soft);
  color: var(--cs-pdp-plum);
}

.cs-pdp .cs-pdp__share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cs-pdp .cs-pdp__share-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--cs-pdp-line);
  border-radius: var(--cs-pdp-radius-sm);
  background: #fff;
  color: var(--cs-pdp-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color var(--cs-pdp-motion) ease,
    background-color var(--cs-pdp-motion) ease,
    color var(--cs-pdp-motion) ease;
}

.cs-pdp .cs-pdp__share-option:hover {
  border-color: var(--cs-pdp-lilac);
  background: var(--cs-pdp-soft);
  color: var(--cs-pdp-plum);
}

.cs-pdp .cs-product-wish-btn__label,
.cs-pdp .cs-product-wish-btn__label-add,
.cs-pdp .cs-product-wish-btn__label-remove {
  min-width: 0;
}

.cs-pdp .cs-product-wish-btn__label-remove,
.cs-pdp .cs-product-wish-btn.is-active .cs-product-wish-btn__label-add {
  display: none;
}

.cs-pdp .cs-product-wish-btn.is-active .cs-product-wish-btn__label-remove {
  display: inline;
}

.cs-pdp .cs-pdp__summary .cs-pdp__purchase-feedback,
.cs-pdp .cs-pdp__summary .cs-variation-error-message,
.cs-pdp .cs-pdp__summary .woocommerce-error,
.cs-pdp .cs-pdp__summary .woocommerce-message,
.cs-pdp .cs-pdp__summary .woocommerce-info {
  width: 100%;
  max-width: 100%;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--cs-pdp-line);
  border-left: 4px solid var(--cs-pdp-plum);
  border-radius: var(--cs-pdp-radius-sm);
  background: var(--cs-pdp-soft);
  color: var(--cs-pdp-ink);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: none;
}

.cs-pdp .cs-pdp__summary .cs-variation-error-message,
.cs-pdp .cs-pdp__summary .woocommerce-error {
  border-left-color: var(--cs-pdp-danger);
  background: #fff7f6;
}

/* Factual service links finish the right-hand purchase flow. */
.cs-pdp .cs-pdp__service-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  margin: 22px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--cs-pdp-line);
}

.cs-pdp .cs-pdp__service-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 10px;
  gap: 11px;
  align-items: center;
  min-height: 56px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(231, 223, 231, .76);
  color: var(--cs-pdp-ink);
  text-decoration: none;
  transition: color var(--cs-pdp-motion) ease;
}

.cs-pdp .cs-pdp__service-link:last-child {
  border-bottom: 0;
}

.cs-pdp .cs-pdp__service-link:hover {
  color: var(--cs-pdp-plum);
}

.cs-pdp .cs-pdp__service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(96, 1, 101, .13);
  border-radius: 50%;
  background: var(--cs-pdp-soft);
  color: var(--cs-pdp-plum);
}

.cs-pdp .cs-pdp__service-icon svg {
  width: 19px;
  height: 19px;
}

.cs-pdp .cs-pdp__service-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cs-pdp .cs-pdp__service-copy strong {
  font-size: 13px;
  line-height: 1.35;
}

.cs-pdp .cs-pdp__service-copy > span {
  color: var(--cs-pdp-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.cs-pdp .cs-pdp__service-arrow {
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--cs-pdp-plum);
  border-right: 1.5px solid var(--cs-pdp-plum);
  transform: rotate(45deg);
}

/* Compatibility for the legacy factual trust fallback only. */
.cs-pdp .cs-pdp__summary .cs-pdp__commerce-links,
.cs-pdp .cs-pdp__summary .cs-product-trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 22px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--cs-pdp-line);
}

.cs-pdp .cs-pdp__summary .cs-pdp__commerce-link,
.cs-pdp .cs-pdp__summary .cs-product-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(231, 223, 231, .74);
  border-radius: 0;
  background: transparent;
  color: var(--cs-pdp-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.cs-pdp .cs-pdp__summary .cs-pdp__commerce-link:last-child,
.cs-pdp .cs-pdp__summary .cs-product-trust__item:last-child {
  border-bottom: 0;
}

.cs-pdp .cs-pdp__summary .cs-pdp__commerce-link svg,
.cs-pdp .cs-pdp__summary .cs-product-trust__item svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--cs-pdp-plum);
}

.cs-pdp .cs-pdp__summary a.cs-pdp__commerce-link:hover {
  color: var(--cs-pdp-plum);
}

.cs-pdp .cs-pdp__summary .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--cs-pdp-line);
  color: var(--cs-pdp-muted);
  font-size: 12px;
  line-height: 1.5;
}

.cs-pdp .cs-pdp__summary .product_meta > span {
  margin: 0;
}

.cs-pdp .cs-pdp__summary .product_meta a {
  color: inherit;
}

.cs-pdp .cs-pdp__summary .product_meta a:hover {
  color: var(--cs-pdp-plum);
}

/* Factual trust strip belongs to the visual column, as in the reference. */
.cs-pdp .cs-pdp__trust-strip {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(96, 1, 101, .12);
  border-radius: var(--cs-pdp-radius);
  background: var(--cs-pdp-soft);
  box-shadow: none;
  overflow: hidden;
}

.cs-pdp .cs-pdp__trust-strip ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-pdp .cs-pdp__trust-strip li {
  min-width: 0;
  margin: 0;
  border-left: 1px solid rgba(96, 1, 101, .1);
}

.cs-pdp .cs-pdp__trust-strip li:first-child {
  border-left: 0;
}

.cs-pdp .cs-pdp__trust-strip a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 74px;
  padding: 11px 12px;
  color: var(--cs-pdp-ink);
  text-decoration: none;
  transition: background-color var(--cs-pdp-motion) ease;
}

.cs-pdp .cs-pdp__trust-strip a:hover {
  background: rgba(200, 128, 203, .1);
}

.cs-pdp .cs-pdp__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(96, 1, 101, .13);
  border-radius: 50%;
  background: var(--cs-pdp-surface);
  color: var(--cs-pdp-plum);
}

.cs-pdp .cs-pdp__trust-icon svg {
  width: 19px;
  height: 19px;
}

.cs-pdp .cs-pdp__trust-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cs-pdp .cs-pdp__trust-copy strong {
  color: var(--cs-pdp-ink);
  font-size: 12px;
  line-height: 1.35;
}

.cs-pdp .cs-pdp__trust-copy > span {
  color: var(--cs-pdp-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.cs-pdp .cs-pdp__taxonomy-context {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 16px 0 0;
  color: var(--cs-pdp-muted);
  font-size: 12px;
  line-height: 1.55;
}

.cs-pdp .cs-pdp__taxonomy-context > span {
  font-weight: 700;
}

.cs-pdp .cs-pdp__taxonomy-context a {
  color: inherit;
}

.cs-pdp .cs-pdp__taxonomy-context a:hover {
  color: var(--cs-pdp-plum);
}

/* Optional structured PDP content. Empty modules are omitted server-side. */
.cs-pdp .cs-pdp__structured {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 28px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--cs-pdp-line);
  border-radius: var(--cs-pdp-radius-lg);
  background: var(--cs-pdp-surface);
  box-shadow: var(--cs-pdp-shadow);
}

.cs-pdp .cs-pdp__structured-heading,
.cs-pdp .cs-pdp__section-title,
.cs-pdp .cs-pdp__structured > h2,
.cs-pdp .cs-pdp__related > h2,
.cs-pdp .cs-pdp__recommendations-header > h2,
.cs-pdp .cs-pdp__related .cs-product-routine > h2,
.cs-pdp .cs-pdp__related :is(.related.products, .up-sells.products) > h2 {
  margin: 0 0 24px;
  color: var(--cs-pdp-ink);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.cs-pdp .cs-pdp__structured-grid,
.cs-pdp .cs-pdp__content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}

.cs-pdp .cs-pdp__content-block {
  min-width: 0;
  padding: 22px 0;
  border-top: 1px solid var(--cs-pdp-line);
}

.cs-pdp .cs-pdp__content-block h3 {
  margin: 0 0 10px;
  color: var(--cs-pdp-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.cs-pdp .cs-pdp__content-block :is(p, ul, ol) {
  margin-top: 0;
  color: var(--cs-pdp-muted);
  font-size: 15px;
  line-height: 1.72;
}

.cs-pdp .cs-pdp__content-block > :last-child {
  margin-bottom: 0;
}

.cs-pdp .cs-pdp__accordion {
  border-top: 1px solid var(--cs-pdp-line);
}

.cs-pdp .cs-pdp__accordion > h3 {
  margin: 0;
}

.cs-pdp .cs-pdp__accordion:last-child {
  border-bottom: 1px solid var(--cs-pdp-line);
}

.cs-pdp .cs-pdp__accordion > summary,
.cs-pdp .cs-pdp__accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cs-pdp-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-align: left;
  list-style: none;
  cursor: pointer;
}

.cs-pdp .cs-pdp__accordion > summary::-webkit-details-marker {
  display: none;
}

.cs-pdp .cs-pdp__accordion > summary::after,
.cs-pdp .cs-pdp__accordion-trigger::after {
  content: "+";
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--cs-pdp-plum);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.cs-pdp .cs-pdp__accordion[open] > summary::after,
.cs-pdp .cs-pdp__accordion-trigger[aria-expanded="true"]::after {
  content: "−";
}

.cs-pdp .cs-pdp__accordion-panel {
  padding: 0 4px 20px;
  color: var(--cs-pdp-muted);
  font-size: 15px;
  line-height: 1.72;
}

.cs-pdp .cs-pdp__accordion-panel > :first-child {
  margin-top: 0;
}

.cs-pdp .cs-pdp__accordion-panel > :last-child {
  margin-bottom: 0;
}

/* Native WooCommerce tabs remain server-rendered inside the familiar CS card. */
.cs-pdp .cs-pdp__details {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 clamp(40px, 6vw, 64px);
  overflow: visible;
}

.cs-pdp .cs-pdp__details .woocommerce-tabs {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--cs-pdp-line);
  border-radius: var(--cs-pdp-radius-lg);
  background: var(--cs-pdp-surface);
  box-shadow: var(--cs-pdp-shadow);
  overflow: hidden;
}

.cs-pdp .cs-pdp__details .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0 14px;
  border-bottom: 1px solid var(--cs-pdp-line);
  background: transparent;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cs-pdp .cs-pdp__details .woocommerce-tabs ul.tabs::before,
.cs-pdp .cs-pdp__details .woocommerce-tabs ul.tabs::after,
.cs-pdp .cs-pdp__details .woocommerce-tabs ul.tabs li::before,
.cs-pdp .cs-pdp__details .woocommerce-tabs ul.tabs li::after {
  display: none;
}

.cs-pdp .cs-pdp__details .woocommerce-tabs ul.tabs li,
.cs-pdp .cs-pdp__details .woocommerce-tabs ul.tabs li.active {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cs-pdp .cs-pdp__details .woocommerce-tabs ul.tabs li a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px;
  border-bottom: 3px solid transparent;
  color: var(--cs-pdp-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.cs-pdp .cs-pdp__details .woocommerce-tabs ul.tabs li.active a,
.cs-pdp .cs-pdp__details .woocommerce-tabs ul.tabs li a:hover {
  border-bottom-color: var(--cs-pdp-plum);
  color: var(--cs-pdp-plum);
}

.cs-pdp .cs-pdp__details .woocommerce-tabs .panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: clamp(24px, 4vw, 40px);
  color: var(--cs-pdp-muted);
  font-size: 15px;
  line-height: 1.78;
  overflow: visible;
  overflow-wrap: break-word;
}

.cs-pdp .cs-pdp__details .woocommerce-tabs .panel :is(img, iframe, video) {
  max-width: 100%;
  height: auto;
}

.cs-pdp .cs-pdp__details .woocommerce-tabs .panel :is(h2, h3) {
  margin: 0 0 14px;
  color: var(--cs-pdp-ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}

.cs-pdp .cs-pdp__details table.shop_attributes {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  font-size: 14px;
}

.cs-pdp .cs-pdp__details table.shop_attributes :is(th, td) {
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--cs-pdp-line);
  background: transparent;
  color: var(--cs-pdp-ink);
  font-style: normal;
  text-align: left;
  vertical-align: top;
}

.cs-pdp .cs-pdp__details table.shop_attributes th {
  width: 34%;
  padding-right: 20px;
  color: var(--cs-pdp-muted);
  font-weight: 600;
}

/* Reviews: real WooCommerce data, flat surfaces and accessible controls. */
.cs-pdp .cs-pdp__details #reviews.woocommerce-Reviews,
.cs-pdp .cs-pdp__reviews #reviews.woocommerce-Reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.cs-pdp #reviews :is(#comments, #review_form_wrapper, #review_form, #respond) {
  min-width: 0;
  max-width: 100%;
}

.cs-pdp #reviews .woocommerce-Reviews-title,
.cs-pdp #reviews .comment-reply-title {
  display: block;
  margin: 0 0 18px;
  color: var(--cs-pdp-ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}

.cs-pdp #reviews .commentlist {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  list-style: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.cs-pdp #reviews .commentlist li {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--cs-pdp-line);
}

.cs-pdp #reviews .commentlist > li:first-child {
  padding-top: 0;
  border-top: 0;
}

.cs-pdp #reviews .comment_container {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cs-pdp #reviews .avatar {
  display: none !important;
}

.cs-pdp #reviews .comment-text {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.cs-pdp #reviews .comment-text .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 0;
  color: var(--cs-pdp-muted);
  font-size: 12px;
  line-height: 1.4;
}

.cs-pdp #reviews .woocommerce-review__author {
  color: var(--cs-pdp-ink);
  font-size: 14px;
  font-weight: 800;
}

.cs-pdp #reviews .comment-text .description {
  color: var(--cs-pdp-muted);
  font-size: 14px;
  line-height: 1.7;
}

.cs-pdp #reviews #review_form_wrapper {
  padding: 24px;
  border: 1px solid var(--cs-pdp-line);
  border-radius: var(--cs-pdp-radius);
  background: var(--cs-pdp-soft);
  box-shadow: none;
}

.cs-pdp #reviews .comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  margin: 0;
}

.cs-pdp #reviews .comment-form > p {
  min-width: 0;
  margin: 0;
}

.cs-pdp #reviews :is(.comment-form-rating, .comment-form-comment, .comment-form-cookies-consent, .form-submit, .comment-notes) {
  grid-column: 1 / -1;
}

.cs-pdp #reviews .comment-form label {
  display: block;
  margin: 0 0 7px;
  color: var(--cs-pdp-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.cs-pdp #reviews .comment-form :is(input[type="text"], input[type="email"], textarea, select) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--cs-pdp-line);
  border-radius: var(--cs-pdp-radius-sm);
  background: var(--cs-pdp-surface);
  color: var(--cs-pdp-ink);
  box-shadow: none;
}

.cs-pdp #reviews .comment-form textarea {
  min-height: 144px;
  resize: vertical;
}

.cs-pdp #reviews .comment-form :is(input, textarea, select):focus {
  border-color: var(--cs-pdp-plum);
  outline: 3px solid var(--cs-pdp-focus);
  outline-offset: 1px;
  box-shadow: none;
}

.cs-pdp #reviews .comment-form-rating {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cs-pdp #reviews .comment-form-rating p.stars a {
  width: 44px;
  height: 44px;
  margin: 0 2px 0 0;
  border-radius: var(--cs-pdp-radius-sm);
  background: var(--cs-pdp-surface);
}

.cs-pdp #reviews .comment-form-cookies-consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border: 0;
  background: transparent;
}

.cs-pdp #reviews .comment-form-cookies-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--cs-pdp-plum);
}

.cs-pdp #reviews .form-submit .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--cs-pdp-plum);
  border-radius: var(--cs-pdp-radius-sm);
  background: var(--cs-pdp-plum);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
}

.cs-pdp #reviews .form-submit .submit:hover {
  border-color: #48004c;
  background: #48004c;
  transform: none;
  box-shadow: none;
}

.cs-pdp #reviews :is(.woocommerce-noreviews, .woocommerce-verification-required, .must-log-in) {
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--cs-pdp-line);
  border-radius: 0;
  background: transparent;
  color: var(--cs-pdp-muted);
  font-size: 14px;
  line-height: 1.65;
  box-shadow: none;
}

/* Product recommendations use the shared official product-card stylesheet. */
.cs-pdp .cs-pdp__related {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.cs-pdp .cs-pdp__related :is(.related.products, .up-sells.products) {
  margin: 0;
  padding: 0;
  border: 0;
}

.cs-pdp .cs-pdp__recommendations-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.cs-pdp .cs-pdp__recommendations-header > h2 {
  min-width: 0;
  margin: 0;
}

.cs-pdp .cs-pdp__recommendations-controls {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.cs-pdp .cs-pdp__recommendations-controls[hidden] {
  display: none;
}

.cs-pdp .cs-pdp__recommendations-arrow {
  display: inline-flex;
  width: 44px;
  height: 58px;
  min-width: 44px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--cs-pdp-line);
  border-radius: 10px;
  background: var(--cs-pdp-surface);
  color: var(--cs-pdp-plum);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.cs-pdp .cs-pdp__recommendations-arrow:hover:not(:disabled) {
  border-color: var(--cs-pdp-lilac);
  background: var(--cs-pdp-soft);
}

.cs-pdp .cs-pdp__recommendations-arrow:focus-visible {
  outline: 3px solid rgba(200, 128, 203, .38);
  outline-offset: 2px;
}

.cs-pdp .cs-pdp__recommendations-arrow:disabled {
  color: var(--cs-pdp-muted);
  cursor: default;
  opacity: .42;
}

.cs-pdp .cs-pdp__recommendations-arrow-icon {
  display: block;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: rgba(144, 1, 151, 0.55);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-pdp .cs-pdp__recommendations-arrow--previous .cs-pdp__recommendations-arrow-icon {
  transform: rotate(90deg);
}

.cs-pdp .cs-pdp__recommendations-arrow--next .cs-pdp__recommendations-arrow-icon {
  transform: rotate(-90deg);
}

.cs-pdp .cs-pdp__recommendations-status {
  min-width: 46px;
  color: var(--cs-pdp-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.cs-pdp .cs-pdp__related ul.products {
  --cs-pdp-recommendations-basis: calc((100% - 72px) / 5);
  display: flex;
  gap: 18px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0 0 3px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cs-pdp .cs-pdp__related ul.products::-webkit-scrollbar {
  display: none;
}

.cs-pdp .cs-pdp__related ul.products > li.product {
  width: auto !important;
  min-width: 0;
  max-width: none;
  flex: 0 0 var(--cs-pdp-recommendations-basis);
  margin: 0 !important;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* Compra rápida responsiva; os controlos espelham o único formulário WooCommerce. */
.cs-pdp .cs-pdp__sticky {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 790;
  display: block;
  width: 100%;
  padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: linear-gradient(to top, rgba(255, 254, 253, .96), rgba(255, 254, 253, 0));
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(100% + 12px));
  pointer-events: none;
  transition:
    opacity 120ms cubic-bezier(.4, 0, 1, 1),
    transform var(--cs-pdp-motion) cubic-bezier(.4, 0, 1, 1);
}

.cs-pdp .cs-pdp__sticky[hidden] {
  display: none !important;
}

.cs-pdp .cs-pdp__sticky.is-visible:not([hidden]),
.cs-pdp.is-sticky-visible .cs-pdp__sticky:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 140ms cubic-bezier(.16, 1, .3, 1),
    transform var(--cs-pdp-motion) cubic-bezier(.16, 1, .3, 1);
}

.cs-pdp .cs-pdp__sticky.is-leaving:not([hidden]) {
  visibility: visible;
}

.cs-pdp.is-sticky-visible {
  padding-bottom: var(--cs-pdp-sticky-offset, calc(88px + env(safe-area-inset-bottom)));
}

.cs-pdp .cs-pdp__sticky-inner {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 52px;
  grid-template-areas: "quantity price action";
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(96, 1, 101, .14);
  border-radius: 18px;
  background: rgba(255, 254, 253, .98);
  box-shadow: 0 12px 32px rgba(40, 23, 42, .1);
}

.cs-pdp .cs-pdp__sticky-product {
  grid-area: product;
  display: none;
  min-width: 0;
}

.cs-pdp .cs-pdp__sticky-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--cs-pdp-line);
  border-radius: 10px;
  background: var(--cs-pdp-soft);
  overflow: hidden;
}

.cs-pdp .cs-pdp__sticky-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cs-pdp .cs-pdp__sticky-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cs-pdp .cs-pdp__sticky-brand {
  color: var(--cs-pdp-plum);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cs-pdp .cs-pdp__sticky-name {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--cs-pdp-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.cs-pdp .cs-pdp__sticky-description {
  display: none;
  min-width: 0;
  color: var(--cs-pdp-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.cs-pdp .cs-pdp__sticky-variation {
  position: relative;
  grid-area: variation;
  display: none;
  min-width: 0;
  z-index: 2;
}

.cs-pdp .cs-pdp__sticky-variation-control {
  position: relative;
  width: 100%;
  min-width: 0;
}

.cs-pdp .cs-pdp__sticky-variation-trigger,
.cs-pdp .cs-pdp__sticky-variation-summary {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0 50px 0 14px;
  border: 1px solid rgba(96, 1, 101, .2);
  border-radius: 10px;
  background-color: var(--cs-pdp-surface);
  color: var(--cs-pdp-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.cs-pdp .cs-pdp__sticky-variation-trigger:hover:not(:disabled),
.cs-pdp .cs-pdp__sticky-variation-control.is-open .cs-pdp__sticky-variation-trigger {
  border-color: rgba(96, 1, 101, .42);
  background: var(--cs-pdp-soft);
}

.cs-pdp .cs-pdp__sticky-variation-trigger:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.cs-pdp .cs-pdp__sticky-variation-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-pdp .cs-pdp__sticky-variation-chevron {
  position: absolute;
  top: 50%;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--cs-pdp-plum);
  pointer-events: none;
  transform: translateY(-50%);
  transition: transform var(--cs-pdp-motion) ease;
}

.cs-pdp .cs-pdp__sticky-variation-chevron svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-pdp .cs-pdp__sticky-variation-control.is-open .cs-pdp__sticky-variation-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.cs-pdp .cs-pdp__sticky-variation-listbox {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 4;
  display: grid;
  gap: 2px;
  width: 100%;
  max-height: min(280px, calc(100dvh - 120px));
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(96, 1, 101, .2);
  border-radius: 10px;
  background: var(--cs-pdp-surface);
  box-shadow: 0 14px 32px rgba(40, 23, 42, .14);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cs-pdp .cs-pdp__sticky-variation-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 38px 9px 12px;
  border-radius: 8px;
  color: var(--cs-pdp-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  outline: 0;
}

.cs-pdp .cs-pdp__sticky-variation-option:is(:hover, .is-active):not(.is-disabled) {
  background: var(--cs-pdp-soft-strong);
  color: var(--cs-pdp-plum);
}

.cs-pdp .cs-pdp__sticky-variation-option.is-selected {
  background: var(--cs-pdp-soft);
  color: var(--cs-pdp-plum);
  font-weight: 750;
}

.cs-pdp .cs-pdp__sticky-variation-option.is-selected::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 9px;
  height: 5px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(-65%) rotate(-45deg);
}

.cs-pdp .cs-pdp__sticky-variation-option.is-disabled {
  color: var(--cs-pdp-muted);
  cursor: not-allowed;
  opacity: .46;
}

.cs-pdp .cs-pdp__sticky-variation-option:focus-visible {
  box-shadow: inset 0 0 0 2px var(--cs-pdp-lilac);
}

.cs-pdp .cs-pdp__sticky-variation-summary::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--cs-pdp-plum);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
}

.cs-pdp .cs-pdp__sticky-quantity {
  grid-area: quantity;
  display: grid;
  grid-template-columns: 44px 40px 44px;
  align-items: center;
  justify-self: start;
  width: 128px;
  height: 48px;
  min-width: 0;
  border: 1px solid rgba(96, 1, 101, .2);
  border-radius: 10px;
  background: var(--cs-pdp-surface);
  overflow: hidden;
}

.cs-pdp .cs-pdp__sticky-quantity-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 46px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cs-pdp-plum);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--cs-pdp-motion) ease, color var(--cs-pdp-motion) ease;
}

.cs-pdp .cs-pdp__sticky-quantity-button:hover:not(:disabled) {
  background: var(--cs-pdp-soft-strong);
}

.cs-pdp .cs-pdp__sticky-quantity-button:disabled {
  color: var(--cs-pdp-muted);
  cursor: not-allowed;
  opacity: .42;
}

.cs-pdp .cs-pdp__sticky-quantity-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 46px;
  color: var(--cs-pdp-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
}

.cs-pdp .cs-pdp__sticky-price,
.cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-price] {
  grid-area: price;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  color: var(--cs-pdp-plum);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.cs-pdp .cs-pdp__sticky-price ins {
  order: 1;
  color: inherit;
  text-decoration: none;
}

.cs-pdp .cs-pdp__sticky-price > .woocommerce-Price-amount {
  order: 1;
}

.cs-pdp .cs-pdp__sticky-price del {
  order: 2;
  color: var(--cs-pdp-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: .74;
}

.cs-pdp .cs-pdp__sticky-price .cs-product-price__discount {
  order: 3;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #ef3227;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
}

.cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-action] {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--cs-pdp-plum);
  border-radius: 14px;
  background: var(--cs-pdp-plum);
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: background-color var(--cs-pdp-motion) ease, border-color var(--cs-pdp-motion) ease, transform var(--cs-pdp-motion) ease;
}

.cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-action]:hover:not(:disabled) {
  border-color: var(--cs-pdp-lilac);
  background: var(--cs-pdp-lilac);
}

.cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-action]:active:not(:disabled) {
  transform: translateY(1px);
}

.cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-action]:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-action][aria-busy="true"] {
  cursor: progress;
}

.cs-pdp .cs-pdp__sticky-action-label {
  display: none;
  white-space: nowrap;
}

.cs-pdp .cs-pdp__sticky-action-icon {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 24px;
  background: center / contain no-repeat var(--cs-pdp-add-to-cart-icon);
}

.cs-pdp .cs-pdp__sticky :is(button, select):focus-visible {
  outline: 3px solid rgba(200, 128, 203, .42);
  outline-offset: 2px;
}

@media (min-width: 600px) and (max-width: 767px) {
  .cs-pdp .cs-pdp__sticky {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }

  .cs-pdp .cs-pdp__sticky-inner {
    grid-template-columns: minmax(150px, 1fr) 120px minmax(112px, auto) 52px;
    grid-template-areas: "product quantity price action";
    gap: 8px;
    max-width: 760px;
    padding: 8px;
    border-radius: 14px;
  }

  .cs-pdp .cs-pdp__sticky-product {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .cs-pdp .cs-pdp__sticky-media {
    width: 48px;
    height: 48px;
  }

  .cs-pdp .cs-pdp__sticky-price,
  .cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-price] {
    justify-content: flex-start;
    font-size: 18px;
  }

  .cs-pdp .cs-pdp__sticky-quantity {
    grid-template-columns: 44px 32px 44px;
    width: 120px;
  }

  .cs-pdp .cs-pdp__sticky-quantity-value {
    width: 32px;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .cs-pdp .cs-pdp__sticky {
    padding: 8px max(16px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .cs-pdp .cs-pdp__sticky-inner {
    grid-template-columns: minmax(160px, 1fr) 120px minmax(118px, auto) 160px;
    grid-template-areas: "variation quantity price action";
    gap: 8px;
    max-width: 900px;
    padding: 8px;
    border-radius: 14px;
  }

  .cs-pdp .cs-pdp__sticky:not(.has-sticky-variation) .cs-pdp__sticky-inner {
    grid-template-columns: minmax(190px, 1fr) 120px minmax(118px, auto) 160px;
    grid-template-areas: "product quantity price action";
  }

  .cs-pdp .cs-pdp__sticky-product {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .cs-pdp .has-sticky-variation .cs-pdp__sticky-product {
    display: none;
  }

  .cs-pdp .cs-pdp__sticky-media {
    width: 48px;
    height: 48px;
  }

  .cs-pdp .cs-pdp__sticky-variation {
    display: block;
    max-width: none;
  }

  .cs-pdp .cs-pdp__sticky-quantity {
    grid-template-columns: 44px 32px 44px;
    width: 120px;
  }

  .cs-pdp .cs-pdp__sticky-quantity-value {
    width: 32px;
  }

  .cs-pdp .cs-pdp__sticky-price,
  .cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-price] {
    justify-content: flex-start;
    font-size: 18px;
  }

  .cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-action] {
    width: 160px;
    min-width: 160px;
    height: 48px;
    min-height: 48px;
    padding: 0 10px;
    gap: 6px;
    border-radius: 10px;
  }

  .cs-pdp .cs-pdp__sticky-action-label {
    display: inline;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .015em;
    text-transform: uppercase;
  }

  .cs-pdp .cs-pdp__sticky-action-icon {
    width: 16px;
    height: 18px;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .cs-pdp .cs-pdp__sticky {
    padding: 9px max(18px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }

  .cs-pdp .cs-pdp__sticky-inner {
    grid-template-columns: minmax(180px, 1fr) minmax(140px, 180px) 120px minmax(118px, auto) 168px;
    grid-template-areas: "product variation quantity price action";
    gap: 10px;
    max-width: 1180px;
    padding: 9px;
    border-radius: 14px;
  }

  .cs-pdp .cs-pdp__sticky:not(.has-sticky-variation) .cs-pdp__sticky-inner {
    grid-template-columns: minmax(240px, 1fr) 120px minmax(130px, auto) 168px;
    grid-template-areas: "product quantity price action";
  }

  .cs-pdp .cs-pdp__sticky-product {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
  }

  .cs-pdp .cs-pdp__sticky-media {
    width: 52px;
    height: 52px;
  }

  .cs-pdp .cs-pdp__sticky-variation {
    display: block;
    max-width: none;
  }

  .cs-pdp .cs-pdp__sticky-quantity {
    grid-template-columns: 44px 32px 44px;
    width: 120px;
  }

  .cs-pdp .cs-pdp__sticky-quantity-value {
    width: 32px;
  }

  .cs-pdp .cs-pdp__sticky-price,
  .cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-price] {
    justify-content: flex-start;
    font-size: 19px;
  }

  .cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-action] {
    width: 168px;
    min-width: 168px;
    height: 52px;
    min-height: 52px;
    padding: 0 12px;
    gap: 7px;
    border-radius: 10px;
  }

  .cs-pdp .cs-pdp__sticky-action-label {
    display: inline;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .015em;
    text-transform: uppercase;
  }

  .cs-pdp .cs-pdp__sticky-action-icon {
    width: 17px;
    height: 19px;
  }
}

@media (min-width: 1200px) {
  .cs-pdp .cs-pdp__sticky {
    padding: 10px max(20px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }

  .cs-pdp .cs-pdp__sticky-inner {
    grid-template-columns: minmax(300px, 1fr) minmax(180px, 220px) 120px minmax(140px, auto) 190px;
    grid-template-areas: "product variation quantity price action";
    gap: 12px;
    max-width: 1440px;
    padding: 10px;
    border-radius: 14px;
  }

  .cs-pdp .cs-pdp__sticky:not(.has-sticky-variation) .cs-pdp__sticky-inner {
    grid-template-columns: minmax(380px, 1fr) 120px minmax(150px, auto) 190px;
    grid-template-areas: "product quantity price action";
  }

  .cs-pdp .cs-pdp__sticky-product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
  }

  .cs-pdp .cs-pdp__sticky-media {
    width: 64px;
    height: 64px;
    border-radius: 11px;
  }

  .cs-pdp .cs-pdp__sticky-brand {
    font-size: 11px;
  }

  .cs-pdp .cs-pdp__sticky-name {
    font-size: 15px;
  }

  .cs-pdp .cs-pdp__sticky-variation {
    display: block;
    max-width: none;
  }

  .cs-pdp .cs-pdp__sticky-quantity {
    grid-template-columns: 44px 32px 44px;
    width: 120px;
  }

  .cs-pdp .cs-pdp__sticky-quantity-value {
    width: 32px;
  }

  .cs-pdp .cs-pdp__sticky-price,
  .cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-price] {
    justify-content: flex-start;
    font-size: 21px;
  }

  .cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-action] {
    width: 190px;
    min-width: 190px;
    height: 52px;
    min-height: 52px;
    padding: 0 20px;
    gap: 9px;
    border-radius: 10px;
  }

  .cs-pdp .cs-pdp__sticky-action-label {
    display: inline;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
  }

  .cs-pdp .cs-pdp__sticky-action-icon {
    width: 18px;
    height: 20px;
  }
}

@media (min-width: 1280px) {
  .cs-pdp .cs-pdp__sticky-description {
    display: block;
  }
}

@media (min-width: 1024px) {
  .cs-pdp .cs-pdp__gallery .woocommerce-product-gallery__image > a {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .cs-pdp .cs-pdp__gallery .woocommerce-product-gallery:has(.flex-control-thumbs) {
    display: grid;
    grid-template-columns: clamp(84px, 18%, 118px) minmax(0, 1fr);
    grid-template-rows: minmax(0, auto);
    gap: 16px;
    align-items: stretch;
  }

  .cs-pdp .cs-pdp__gallery .woocommerce-product-gallery:has(.flex-control-thumbs) > .flex-viewport,
  .cs-pdp .cs-pdp__gallery .woocommerce-product-gallery:has(.flex-control-thumbs) > .woocommerce-product-gallery__wrapper {
    grid-column: 2;
    grid-row: 1;
  }

  .cs-pdp .cs-pdp__gallery .woocommerce-product-gallery:has(.flex-control-thumbs) > .flex-control-thumbs {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    flex-direction: column;
    gap: 10px;
    max-height: clamp(360px, 39vw, 620px);
    padding: 0 7px 0 0;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y proximity;
  }

  .cs-pdp .cs-pdp__gallery .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs li {
    width: 100% !important;
    scroll-snap-align: start;
  }

  .cs-pdp .cs-pdp__gallery .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-control-thumbs li img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .cs-pdp .cs-pdp__gallery .woocommerce-product-gallery:has(.flex-control-thumbs) .flex-direction-nav .flex-prev {
    left: calc(clamp(84px, 18%, 118px) + 34px);
  }
}

@media (max-width: 1199px) {
  .cs-pdp .cs-pdp__primary {
    grid-template-columns: minmax(0, 1.01fr) minmax(390px, .99fr);
    gap: clamp(26px, 3vw, 38px);
  }

  .cs-pdp .cs-pdp__related ul.products {
    --cs-pdp-recommendations-basis: calc((100% - 36px) / 3);
  }
}

@media (max-width: 900px) {
  .cs-pdp .cs-pdp__primary {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .cs-pdp .cs-pdp__gallery {
    position: static;
  }

  .cs-pdp .cs-pdp__summary {
    max-width: 760px;
    margin-inline: auto !important;
  }

  .cs-pdp .cs-pdp__details #reviews.woocommerce-Reviews,
  .cs-pdp .cs-pdp__reviews #reviews.woocommerce-Reviews {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-pdp .cs-pdp__related ul.products {
    --cs-pdp-recommendations-basis: calc((100% - 28px) / 3);
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .cs-pdp .cs-pdp__gallery .flex-direction-nav {
    display: none;
  }

  .cs-pdp {
    margin-top: 16px;
    margin-bottom: 56px;
  }

  .cs-pdp .cs-pdp__primary {
    gap: 30px;
    margin-bottom: 42px;
  }

  .cs-pdp .cs-pdp__gallery .woocommerce-product-gallery {
    padding: 0;
    border-radius: 0;
  }

  .cs-pdp .cs-pdp__gallery .woocommerce-product-gallery__image > a {
    padding: 0;
  }

  .cs-pdp .cs-pdp__gallery .flex-control-thumbs {
    padding: 10px 0 0;
  }

  .cs-pdp .cs-pdp__gallery .flex-control-thumbs li img {
    width: 56px;
    height: 56px;
  }

  .cs-pdp .cs-pdp__gallery-status {
    display: block;
  }

  .cs-pdp .cs-pdp__summary .product_title.entry-title {
    max-width: none;
    font-size: clamp(20px, 4vw, 30px);
  }

  .cs-pdp .cs-pdp__summary :is(.price, p.price, .cs-product-price) {
    font-size: 27px;
  }

  .cs-pdp .cs-pdp__summary {
    padding: 0 0 8px;
    border-radius: 0;
  }

  .cs-pdp .cs-pdp__trust-strip {
    display: none;
  }

  .cs-pdp .cs-pdp__trust-strip ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cs-pdp .cs-pdp__trust-strip li {
    border-top: 0;
    border-left: 1px solid rgba(96, 1, 101, .1);
  }

  .cs-pdp .cs-pdp__trust-strip li:first-child {
    border-left: 0;
  }

  .cs-pdp .cs-pdp__trust-strip a {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 82px;
    padding: 10px 7px;
    text-align: center;
  }

  .cs-pdp .cs-pdp__structured-grid,
  .cs-pdp .cs-pdp__content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-pdp .cs-pdp__details .woocommerce-tabs .panel {
    padding: 24px 20px;
  }

  .cs-pdp .cs-pdp__details table.shop_attributes :is(th, td) {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .cs-pdp .cs-pdp__details table.shop_attributes th {
    padding-top: 14px;
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .cs-pdp .cs-pdp__details table.shop_attributes td {
    padding-top: 3px;
    padding-bottom: 14px;
  }

  .cs-pdp #reviews #review_form_wrapper {
    padding: 20px;
  }

  .cs-pdp #reviews .comment-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-pdp .cs-pdp__related ul.products {
    --cs-pdp-recommendations-basis: calc((100% - 14px) / 2);
  }

}

@media (max-width: 430px) {
  .cs-pdp .cs-pdp__trust-copy > span {
    display: none;
  }

  .cs-pdp .cs-pdp__summary .cs-product-swatch,
  .cs-pdp .cs-pdp__summary .cs-tone-picker__option {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  }

  .cs-pdp .cs-pdp__summary form.cart:not(.variations_form),
  .cs-pdp .cs-pdp__summary .woocommerce-variation-add-to-cart {
    flex-wrap: wrap;
  }

  .cs-pdp .cs-pdp__summary form.cart:not(.variations_form) .quantity,
  .cs-pdp .cs-pdp__summary .woocommerce-variation-add-to-cart .quantity {
    order: 1;
  }

  .cs-pdp .cs-pdp__summary .quantity.cs-qty {
    grid-template-columns: 44px 40px 44px;
    flex-basis: 128px;
    width: 128px;
  }

  .cs-pdp .cs-pdp__summary form.cart:not(.variations_form) .single_add_to_cart_button,
  .cs-pdp .cs-pdp__summary .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    order: 2;
    flex: 1 1 calc(100% - 140px);
    width: auto;
  }

  .cs-pdp .cs-pdp__summary form.cart .cs-pdp__buy-now {
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }

  .cs-pdp .cs-pdp__summary .cs-single-wish-wrap {
    order: 4;
  }

  .cs-pdp .cs-pdp__summary .cs-tone-picker__toggle {
    width: 100%;
  }

}

@media (max-width: 374px) {
  .cs-pdp .cs-pdp__sticky-inner {
    grid-template-columns: 124px minmax(0, 1fr) 52px;
    gap: 6px;
    padding: 7px;
  }

  .cs-pdp .cs-pdp__sticky-quantity {
    grid-template-columns: 44px 36px 44px;
    width: 124px;
  }

  .cs-pdp .cs-pdp__sticky-quantity-value {
    width: 36px;
  }

  .cs-pdp .cs-pdp__sticky-price,
  .cs-pdp .cs-pdp__sticky [data-cs-pdp-sticky-price] {
    gap: 2px 5px;
    font-size: 17px;
  }

  .cs-pdp .cs-pdp__sticky-price del {
    font-size: 11px;
  }

  .cs-pdp .cs-pdp__sticky-price .cs-product-price__discount {
    min-height: 20px;
    padding: 3px 5px;
    font-size: 9px;
  }
}

@media (max-width: 339px) {
  .cs-pdp .cs-pdp__related ul.products {
    --cs-pdp-recommendations-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-pdp *,
  .cs-pdp *::before,
  .cs-pdp *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
