/* Keep WooCommerce in charge of the gallery slider, product forms and payment buttons. */
body.single-product .s4h-catalog.s4h-single {
  --s4hd-pdp-ink: #362c39;
  --s4hd-pdp-muted: #615864;
  --s4hd-pdp-line: #e1d7e2;
  width: min(1256px, calc(100% - 96px));
  background: transparent;
  color: var(--s4hd-pdp-ink);
  font-family: var(--s4hd-sans, Arial, sans-serif);
}
body.single-product:has(.s4hd-product-layout) { background: #f6f2f6; }
.s4h-single .breadcrumb-trail, .s4h-single nav.woocommerce-breadcrumb {
  padding-block: 17px;
  font-size: .82rem;
  color: var(--s4hd-pdp-muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.s4hd-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: 'gallery intro' 'gallery buy';
  align-items: start;
  column-gap: clamp(32px, 4.65vw, 76px);
  margin-block: 0 clamp(30px, 4vw, 60px);
}
.s4hd-product-intro { grid-area: intro; min-width: 0; }
.s4hd-product-gallery {
  grid-area: gallery;
  position: relative;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--s4hd-pdp-line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 9px 32px -23px #51395755;
}
.s4h-single.woocommerce div.product .s4hd-product-gallery div.images {
  width: 100%; float: none; margin: 0;
}
.s4h-single.woocommerce .s4hd-product-gallery .woocommerce-product-gallery__image {
  border: 0; border-radius: 11px;
}
.s4h-single.woocommerce .s4hd-product-gallery .woocommerce-product-gallery__image > a > img { width: 100%; height: auto; }
.s4h-single.woocommerce div.product .s4hd-product-gallery .onsale {
  inset: 16px auto auto 15px;
  background: #fff; color: #513654; border: 1px solid #eee0d5;
  padding: 5px 12px; font: 700 .83rem/1.35 var(--s4hd-sans, Arial, sans-serif);
  pointer-events: none;
}
.s4h-single.woocommerce div.product .s4hd-product-gallery .flex-control-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(62px,18%),1fr));
  list-style: none; gap: 6px; margin-top: 8px; padding: 0;
}
.s4h-single.woocommerce div.product .s4hd-product-gallery .flex-control-thumbs li {
  width: auto; float: none; margin: 0; padding: 0;
}
.s4h-single.woocommerce div.product .s4hd-product-gallery .flex-control-thumbs img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; opacity: 1;
  padding: 2px; border-radius: 8px; border: 2px solid transparent;
}
.s4h-single.woocommerce div.product .s4hd-product-gallery .flex-control-thumbs .flex-active { border-color: var(--s4hd-plum, #4f355a); }
.s4hd-product-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(18px, 1.7vw, 26px) clamp(18px, 2vw, 30px);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(112deg,#48304f,#65466f);
  color: white;
}
.s4hd-product-heading::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; width: 78%; height: 120%;
  bottom: -105%; right: -12%; border: 1px solid #dcc7d960; border-radius: 50%; transform: rotate(-15deg);
}
.s4hd-product-brand { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; color: white; font: 650 .71rem/1.4 var(--s4hd-sans, Arial, sans-serif); letter-spacing: .13em; text-transform: uppercase; }
.s4hd-product-brand::before { content: ''; width: 25px; height: 1px; background: #decebc; }
.s4h-single.woocommerce div.product .s4hd-product-heading h1.product_title {
  margin: 0; padding: 0; color: white; font: 500 clamp(2.4rem,3.6vw,3.8rem)/1.04 var(--s4hd-serif, Georgia, serif);
  letter-spacing: -.035em; text-transform: none; overflow-wrap: anywhere;
}
.s4hd-product-reading {
  padding: 17px clamp(18px, 2vw, 30px) 15px;
  background: white; border-inline: 1px solid var(--s4hd-pdp-line); color: var(--s4hd-pdp-ink);
}
.s4hd-product-reading:empty { display: none; }
.s4h-single.woocommerce .s4hd-product-reading .s4hd-product-label {
  margin: 0 0 6px; color: #47394d; font: 700 1rem/1.4 var(--s4hd-sans, Arial, sans-serif);
}
.s4hd-product-lead, .s4hd-product-reading .woocommerce-product-details__short-description { margin: 0; line-height: 1.62; color: #433d44; }
.s4hd-product-story-link { display: inline-block; margin-top: 7px; font-size: .89rem; text-decoration: underline; text-underline-offset: .2em; }
.s4hd-product-story-link span { padding-inline-start: .15em; }
.s4h-single.woocommerce div.product .s4hd-product-layout > div.summary {
  grid-area: buy; min-width: 0; width: 100%; float: none; clear: none; margin: 0;
  padding: 18px clamp(18px, 2vw, 30px); border: 1px solid var(--s4hd-pdp-line); border-radius: 0 0 14px 14px;
  background: linear-gradient(120deg,#f4eef5,#f7f3f6); color: var(--s4hd-pdp-ink);
}
.s4h-single.woocommerce div.product .s4hd-product-layout > .summary > .price {
  margin: 0 0 8px; font-size: 1.9rem; line-height: 1.25; letter-spacing: -.045em; color: var(--s4hd-plum,#4f355a);
}
.s4hd-product-layout > .summary > .price del { padding-inline-end: .28em; font-size: 1.06rem; letter-spacing: 0; }
.s4hd-product-layout .stock { font-size: .87rem; margin: 8px 0; font-weight: 600; }
.s4hd-product-layout p.stock:before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-inline-end: 7px; vertical-align: .06em; }
.s4hd-product-layout .summary :is(select,input,textarea,button) { max-width: 100%; font-family: inherit; }
.s4h-single.woocommerce div.product .s4hd-product-layout form.cart { margin: 15px 0 8px; }
.s4h-single.woocommerce div.product :is(.product-type-simple, .s4hd-product-layout) form.cart .single_add_to_cart_button,
.s4h-single.woocommerce div.product .s4hd-product-layout form.cart .s4hd-product-direct {
  min-height: 46px; border-radius: 8px; text-align: center; white-space: normal;
  padding: 9px 15px; font-family: var(--s4hd-sans, Arial, sans-serif); font-size: 1rem; font-weight: 700; line-height: 1.35;
}
.s4h-single.woocommerce div.product .s4hd-product-layout form.cart .single_add_to_cart_button { color: white; background: var(--s4hd-plum,#4f355a); }
.s4h-single.woocommerce div.product .s4hd-product-layout form.cart .single_add_to_cart_button:hover { background: #65466f; }
.s4h-single.woocommerce div.product .s4hd-product-layout form.cart .s4hd-product-direct {
  display: block; float: none; clear: both; width: 100%; margin-top: 9px;
  color: var(--s4hd-plum,#4f355a); background: #fff; border: 1px solid #aa96ae;
}
.s4h-single.woocommerce div.product .s4hd-product-layout form.cart .s4hd-product-direct:hover { background: #f9f4f9; }
.s4hd-product-layout .woocommerce-variation-add-to-cart-disabled .s4hd-product-direct { opacity: .65; }
.s4h-single.woocommerce div.product .s4hd-product-layout form.cart div.quantity {
  margin-right: 9px;
}
.s4h-single.woocommerce div.product .s4hd-product-layout form.cart input.qty {
  border: 1px solid #ac9aaf; width: 4.7em; min-height: 46px; background: #fff; font-family: var(--s4hd-sans, Arial, sans-serif);
}
.s4hd-product-layout .variations_form .variations, .s4hd-product-layout .group_table { width: 100%; }
.s4hd-product-layout .group_table td { overflow-wrap: anywhere; }
.s4hd-product-layout .reset_variations { font-size: .85rem; }
.s4h-single.woocommerce div.product .s4hd-product-layout .product_meta { margin-top: 16px; border-top: 1px solid #d9cfdb; padding: 12px 0 0; color: var(--s4hd-pdp-muted); font-size: .84rem; line-height: 1.55; overflow-wrap: anywhere; }
.s4hd-product-layout .woocommerce-product-details__short-description { margin: 0 0 .65rem; }
.s4hd-product-layout .woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }
.s4h-single.woocommerce div.product .woocommerce-tabs { padding-top: 0; }
.s4h-single.woocommerce div.product .woocommerce-tabs .panel { scroll-margin-top: 2rem; }
.s4h-single.woocommerce div.product .woocommerce-tabs #tab-description { margin-bottom: 2rem; }
.s4hd-product-description {
  display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: clamp(24px,5vw,76px);
  padding: clamp(22px,4vw,56px); border: 1px solid var(--s4hd-pdp-line); border-radius: 16px; background: white;
}
.s4hd-product-description:has(.s4hd-product-story-photo) { grid-template-columns: minmax(150px,.55fr) minmax(0,1.45fr); }
.s4hd-product-story-photo { display: block; width: 100%; height: auto; border-radius: 10px; }
.s4hd-product-copy { min-width: 0; overflow-wrap: anywhere; color: var(--s4hd-pdp-ink); line-height: 1.65; }
.s4hd-product-copy > :first-child { margin-top: 0; }
.s4hd-product-copy > :last-child { margin-bottom: 0; }
.s4hd-product-copy :is(h2,h3,h4) { margin: 1.05em 0 .38em; color: var(--s4hd-plum,#4f355a); font-family: var(--s4hd-serif,Georgia,serif); line-height: 1.18; }
.s4hd-product-copy h2 { font-size: clamp(1.75rem,2.5vw,2.6rem); }
.s4hd-product-copy h3 { font-size: clamp(1.45rem,2vw,2.1rem); }
.s4hd-product-copy ul, .s4hd-product-copy ol { padding-inline-start: 1.4em; }
.s4hd-product-copy img { max-width: 100%; height: auto; }
.s4hd-product-copy a { text-underline-offset: 3px; }
.s4hd-product-layout :is(button,a,select,input):focus-visible { outline: 3px solid #715778; outline-offset: 3px; }
@media (max-width: 1050px) {
  body.single-product .s4h-catalog.s4h-single { width: calc(100% - 48px); }
  .s4hd-product-layout { column-gap: 28px; }
}
@media (max-width: 760px) {
  body.single-product .s4h-catalog.s4h-single { width: calc(100% - 32px); }
  .s4hd-product-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; grid-template-areas: 'intro' 'gallery' 'buy'; gap: 16px; }
  .s4hd-product-heading { padding: 14px 16px; }
  .s4h-single.woocommerce div.product .s4hd-product-heading h1.product_title { font-size: clamp(2.15rem,8.1vw,3.3rem); }
  .s4hd-product-reading { padding: 12px 15px 14px; border: 1px solid var(--s4hd-pdp-line); border-top: 0; border-radius: 0 0 13px 13px; }
  .s4hd-product-lead { line-height: 1.52; }
  .s4h-single.woocommerce div.product .s4hd-product-layout > div.summary { padding: 16px; border-radius: 13px; }
  .s4hd-product-description, .s4hd-product-description:has(.s4hd-product-story-photo) { grid-template-columns: minmax(0,1fr); }
  .s4hd-product-story-photo { display: none; }
  .s4h-single .breadcrumb-trail, .s4h-single nav.woocommerce-breadcrumb { padding-block: 12px; font-size: .74rem; }
}
@media (max-width: 370px) {
  body.single-product .s4h-catalog.s4h-single { width: calc(100% - 24px); }
  .s4hd-product-heading { padding: 11px; }
  .s4hd-product-reading { padding: 10px; }
  .s4hd-product-layout form.cart .single_add_to_cart_button { font-size: .9rem; }
  .s4h-single.woocommerce div.product .s4hd-product-layout form.cart input.qty { width: 4.2em; }
}
/* Enhance the real numeric control, so its min, max, step and variation listeners still apply. */
.s4h-single.woocommerce div.product .s4hd-product-layout form.cart .s4hd-product-stepper {
  display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid #ac9aaf; border-radius: 8px; background: #fff;
}
.s4h-single.woocommerce div.product .s4hd-product-layout form.cart .s4hd-product-stepper input.qty {
  box-sizing: border-box; width: 2.4em; min-height: 44px; padding: 4px 0; border: 0; border-radius: 0;
  appearance: textfield; text-align: center;
}
.s4hd-product-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.s4hd-product-stepper .s4hd-product-step { width: 30px; min-height: 44px; padding: 0; background: transparent; color: var(--s4hd-plum,#4f355a); border: 0; font: inherit; font-size: 1.2rem; cursor: pointer; }
.s4hd-product-stepper .s4hd-product-step:hover { background: #f4eef5; }
.s4hd-product-stepper .s4hd-product-step:first-of-type { border-radius: 8px 0 0 8px; }
.s4hd-product-stepper .s4hd-product-step:last-of-type { border-radius: 0 8px 8px 0; }
.s4hd-product-stepper:has(input:is([type=hidden],[readonly],[disabled])) .s4hd-product-step { display: none; }
.s4h-single.woocommerce div.product .s4hd-product-layout form.cart .quantity + .single_add_to_cart_button { float: none; min-width: min(100%,calc(100% - 120px)); }
.s4hd-product-heading .product_title em { display: block; margin-top: .11em; color: inherit; font-size: .83em; line-height: 1.13; font-weight: inherit; font-style: italic; }
