/* Joy Cakes single product page. */

/* ---- Info column rhythm ---- */
body.single-product .wp-block-wd-column:has(.wd-15ca6b8c),
body.single-product div.product .summary {
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-body, "Outfit", system-ui, sans-serif);
}

body.single-product div.product .product_title,
body.single-product div.product .wp-block-wd-sp-title .product_title {
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-title-xl);
  font-weight: var(--joy-weight-medium, 500);
  line-height: 1.1;
  letter-spacing: var(--joy-tracking-tight, -0.02em);
}

/* ---- Price ---- */
body.single-product div.product .price,
body.single-product div.product .price .amount {
  color: var(--joy-color-cocoa, #6a391b);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-weight: var(--joy-weight-semibold, 600);
}

body.single-product div.product .price {
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
}

body.single-product.joy-product-simple div.product .wd-single-price {
  display: block;
  margin: 24px 0 28px;
}

body.single-product.joy-product-simple div.product .wd-single-price::before {
  content: "PRICE";
  display: block;
  margin-bottom: 8px;
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-body, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-lead);
  font-weight: var(--joy-weight-medium, 500);
  letter-spacing: var(--joy-tracking-label, 0.06em);
  text-transform: uppercase;
}

body.single-product.joy-product-simple div.product .wd-single-price .price,
body.single-product.joy-product-simple div.product .wd-single-price .amount {
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-title-lg);
  font-weight: var(--joy-weight-medium, 500);
}

/* ---- Size swatches as Joy pills (Woodmart text swatches) ---- */
body.single-product .variations .label {
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-body, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-lead);
  font-weight: var(--joy-weight-medium, 500);
  letter-spacing: var(--joy-tracking-label, 0.06em);
  text-transform: uppercase;
  margin-bottom: 25px !important;
}

body.single-product
  .wd-single-short-desc
  .woocommerce-product-details__short-description {
  font-size: var(--joy-text-lead);
  color: var(--joy-color-text);
}

body.single-product .joy-product-short-description-append {
  margin-top: 0.75em;
}

body.single-product .joy-product-short-description-append > :last-child {
  margin-bottom: 0;
}

body.single-product .bottom-description {
  font-size: var(--joy-text-lead);
  font-weight: var(--joy-weight-light);
  color: var(--joy-color-text);
}

body.single-product .wd-swatches-product {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

body.single-product .wd-swatches-product .wd-swatch {
  display: flex;
  width: auto;
  min-width: 0;
  height: auto;
  max-height: 52px;
  margin: 0;
  padding: 14px 22px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border: 2px solid rgba(106, 57, 27, 0.25) !important;
  border-radius: var(--joy-radius-md);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

body.single-product .wd-swatches-product .wd-swatch .wd-swatch-text,
body.single-product .wd-swatches-product .wd-swatch > span:first-child {
  color: var(--joy-color-cocoa);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-button) !important;
  font-weight: var(--joy-weight-bold);
}

body.single-product .wd-swatches-product .wd-swatch .joy-size-servings {
  color: var(--joy-color-cocoa);
  font-family: var(--joy-font-body, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-button);
  font-weight: var(--joy-weight-bold);
  line-height: 1.2;
}

body.single-product .wd-swatches-product .wd-swatch .joy-size-servings::before {
  content: "•";
  margin-right: 8px;
}

body.single-product .wd-swatches-product .wd-swatch:hover {
  border-color: var(--joy-color-cocoa) !important;
}

body.single-product .wd-swatches-product .wd-swatch:hover * {
  color: var(--joy-color-white, #fff) !important;
}

body.single-product .wd-swatches-product .wd-swatch.selected,
body.single-product .wd-swatches-product .wd-swatch.wd-active {
  border: 4px solid var(--joy-color-cocoa) !important;
  background: var(--joy-color-text, #261306);
}

body.single-product .wd-swatches-product .wd-swatch.selected .wd-swatch-text,
body.single-product .wd-swatches-product .wd-swatch.wd-active .wd-swatch-text,
body.single-product .wd-swatches-product .wd-swatch.selected .joy-size-servings,
body.single-product
  .wd-swatches-product
  .wd-swatch.wd-active
  .joy-size-servings {
  color: var(--joy-color-white, #fff);
}

/* ---- Quantity stepper — same look as the cart stepper ---- */
body.single-product form.cart .quantity {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin: 0;
}

body.single-product form.cart .quantity :is(.minus, .plus) {
  display: inline-grid;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: transparent;
  background-color: rgba(106, 57, 27, 0.25);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  backdrop-filter: blur(5px);
  box-shadow: none;
  font-size: 0;
  cursor: pointer;
}

body.single-product form.cart .quantity .minus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 7.58329V6.41663H10.5V7.58329H3.5Z' fill='%231C1B1F'/%3E%3C/svg%3E");
}

body.single-product form.cart .quantity .plus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M6.41602 7.58329H2.91602V6.41663H6.41602V2.91663H7.58268V6.41663H11.0827V7.58329H7.58268V11.0833H6.41602V7.58329Z' fill='%236A391B'/%3E%3C/svg%3E");
}

body.single-product form.cart .quantity input.qty {
  width: 56px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-title-lg);
  font-weight: var(--joy-weight-medium, 500);
  text-align: center;
}

/* ---- Add to cart + Buy Now buttons ---- */
body.single-product form.cart .single_add_to_cart_button,
body.single-product form.cart .wd-buy-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--joy-radius-md, 16px);
  font-family: var(--joy-font-body, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-button, 1.125rem);
  font-weight: var(--joy-weight-bold, 700);
  letter-spacing: 0;
  text-transform: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

/* Add to Cart = outline, Buy Now = filled cocoa (per Figma 1:3622). */
body.single-product form.cart .single_add_to_cart_button {
  color: var(--joy-color-cocoa, #6a391b);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--joy-color-cocoa, #6a391b);
}

body.single-product form.cart .single_add_to_cart_button:hover {
  color: var(--joy-color-cocoa, #6a391b);
  background: transparent;
  transform: translateY(-1px);
}

body.single-product form.cart .wd-buy-now-btn {
  color: var(--joy-color-white, #fff);
  background: var(--joy-color-cocoa, #6a391b);
  box-shadow: none;
}

body.single-product form.cart .wd-buy-now-btn:hover {
  color: var(--joy-color-white, #fff);
  background: var(--joy-color-cocoa, #6a391b);
  transform: translateY(-1px);
}

/* Quantity on its own row; Add to Cart + Buy Now equal-width below (per Figma 1:3622). */
body.single-product .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

body.single-product .woocommerce-variation-add-to-cart .quantity {
  flex: 0 0 100%;
}

body.single-product
  .woocommerce-variation-add-to-cart
  .single_add_to_cart_button,
body.single-product .woocommerce-variation-add-to-cart .wd-buy-now-btn {
  flex: 1 1 0;
  margin: 0;
}

/* ---- Price: hide the range, show the selected variation price with a PRICE label ---- */
body.single-product div.product .wd-single-price {
  display: none;
}

body.single-product .single_variation .woocommerce-variation-price {
  margin-bottom: 8px;
}

body.single-product .single_variation .woocommerce-variation-price::before {
  content: "PRICE";
  display: block;
  margin-bottom: 8px;
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-body, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-lead);
  font-weight: var(--joy-weight-medium, 500);
  letter-spacing: var(--joy-tracking-label, 0.06em);
  text-transform: uppercase;
}

body.single-product .single_variation .woocommerce-variation-price .price,
body.single-product .single_variation .woocommerce-variation-price .amount {
  color: var(--joy-color-text);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-title-lg);
  font-weight: var(--joy-weight-medium);
}

/* ---- Product add-ons ---- */
body.single-product .joy-product-addons {
  width: 100%;
}

body.single-product .joy-product-addons__eyebrow {
  margin: 0 0 16px;
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-body, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-lead);
  font-weight: var(--joy-weight-medium, 500);
  letter-spacing: var(--joy-tracking-label, 0.06em);
  text-transform: uppercase;
}

body.single-product .joy-product-addons__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.single-product .joy-product-addon-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  min-height: 132px;
  padding: 14px 36px 14px 14px;
  align-items: stretch;
  border: 1px solid rgba(38, 19, 6, 0.65);
  border-radius: var(--joy-radius-md, 16px);
  background: transparent;
  color: var(--joy-color-cocoa, #6a391b);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

body.single-product .joy-product-addon-card.is-selected {
  border-color: var(--joy-color-cocoa, #6a391b);
  background: rgba(106, 57, 27, 0.06);
  box-shadow: inset 0 0 0 1px rgba(106, 57, 27, 0.28);
}

body.single-product .joy-product-addon-card__select {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin: 0;
  place-items: center;
  cursor: pointer;
}

body.single-product .joy-product-addon-card__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

body.single-product .joy-product-addon-card__checkbox-ui {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(106, 57, 27, 0.7);
  border-radius: 4px;
  background: transparent;
}

body.single-product
  .joy-product-addon-card__checkbox:checked
  + .joy-product-addon-card__checkbox-ui {
  border-color: var(--joy-color-cocoa, #6a391b);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M7.05 13.25 2.8 9l1.4-1.4 2.85 2.85L13.8 3.7 15.2 5.1 7.05 13.25Z' fill='%23fff'/%3E%3C/svg%3E")
      center/12px 12px no-repeat,
    var(--joy-color-cocoa, #6a391b);
}

body.single-product .joy-product-addon-card__media {
  overflow: hidden;
  align-self: stretch;
  width: 100%;
  min-height: 112px;
  border-radius: 10px;
  background: rgba(106, 57, 27, 0.12);
}

body.single-product .joy-product-addon-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.single-product .joy-product-addon-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

body.single-product .joy-product-addon-card__title {
  margin: 0 0 8px;
  color: var(--joy-color-cocoa, #6a391b);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: 16px;
  font-weight: var(--joy-weight-bold, 700);
  line-height: 1.16;
  letter-spacing: 0;
}

body.single-product .joy-product-addon-card__price,
body.single-product .joy-product-addon-card__price .amount {
  color: var(--joy-color-cocoa, #6a391b);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: 20px;
  font-weight: var(--joy-weight-medium, 500);
  line-height: 1.1;
}

body.single-product .joy-product-addon-card__quantity {
  display: inline-grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  width: max-content;
  min-height: 36px;
  margin-top: 12px;
  border: 1px solid rgba(106, 57, 27, 0.24);
  opacity: 0.52;
  transition: opacity 160ms ease;
}

body.single-product
  .joy-product-addon-card.is-selected
  .joy-product-addon-card__quantity {
  opacity: 1;
}

body.single-product .joy-product-addon-card__qty-btn {
  display: grid;
  width: 34px;
  min-width: 34px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--joy-color-cocoa, #6a391b);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: 18px;
  font-weight: var(--joy-weight-bold, 700);
  line-height: 1;
  cursor: pointer;
}

body.single-product .joy-product-addon-card__qty-input {
  width: 38px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--joy-color-cocoa, #6a391b);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: 16px;
  font-weight: var(--joy-weight-medium, 500);
  text-align: center;
  appearance: textfield;
}

body.single-product
  .joy-product-addon-card__qty-input::-webkit-outer-spin-button,
body.single-product
  .joy-product-addon-card__qty-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

/* Hide the default product meta clutter (SKU / "Categories:" line) in the hero. */
body.single-product div.product .wd-single-meta,
body.single-product div.product .product_meta,
body.single-product div.product .sku_wrapper {
  display: none;
}

/* ---- Product story (signature flavor) — contained brown card ---- */
.joy-product-story {
  padding: clamp(40px, 5vw, 72px) 0;
}

.joy-product-story__card {
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  grid-template-areas:
    "head media"
    "body body";
  gap: 28px 24px;
  align-items: start;
  padding: 40px 30px 64px;
  border-radius: var(--joy-radius-md, 16px);
  background: #8b5e3e;
  color: var(--joy-color-white, #fff);
}

.joy-product-story__head {
  grid-area: head;
}

.joy-product-story__eyebrow {
  margin: 0 0 24px;
  color: var(--joy-color-white, #fff);
}

.joy-product-story__title {
  margin: 0;
  color: var(--joy-color-white, #fff);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-title-xl);
  font-weight: var(--joy-weight-bold, 700);
  line-height: 1.05;
  letter-spacing: var(--joy-tracking-tight, -0.02em);
  text-transform: uppercase;
}

.joy-product-story__media {
  grid-area: media;
  overflow: hidden;
  aspect-ratio: 651 / 519;
  border-radius: var(--joy-radius-md, 16px);
}

.joy-product-story__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.joy-product-story__body {
  grid-area: body;
  align-self: end;
  margin: 0;
  color: var(--joy-color-white, #fff);
  font-family: var(--joy-font-body, "Outfit", system-ui, sans-serif);
  font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.75rem);
  line-height: 1.4;
}

.joy-product-story__body p {
  margin: 0;
}

@media (max-width: 900px) {
  .joy-product-story__card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "media"
      "body";
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  body.single-product .joy-product-addons__grid {
    grid-template-columns: 1fr;
  }

  body.single-product .joy-product-addon-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    min-height: 132px;
    padding: 14px 36px 14px 14px;
  }

  body.single-product .joy-product-addon-card__select {
    top: 14px;
    right: 14px;
    width: 16px;
    height: 16px;
  }

  body.single-product .joy-product-addon-card__checkbox-ui {
    width: 16px;
    height: 16px;
    border-radius: 4px;
  }

  body.single-product
    .joy-product-addon-card__checkbox:checked
    + .joy-product-addon-card__checkbox-ui {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M7.05 13.25 2.8 9l1.4-1.4 2.85 2.85L13.8 3.7 15.2 5.1 7.05 13.25Z' fill='%23fff'/%3E%3C/svg%3E")
        center/12px 12px no-repeat,
      var(--joy-color-cocoa, #6a391b);
  }

  body.single-product .joy-product-addon-card__title {
    padding-right: 4px;
    font-size: 16px;
  }

  body.single-product .joy-product-addon-card__price,
  body.single-product .joy-product-addon-card__price .amount {
    font-size: 20px;
  }

  body.single-product .joy-product-addon-card__quantity {
    grid-template-columns: 34px 38px 34px;
    margin-top: 12px;
  }

  .joy-product-story {
    padding: 32px 0;
  }

  .joy-product-story__card {
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 4px;
  }

  .joy-product-story__head {
    padding: 28px 28px 24px;
  }

  .joy-product-story__eyebrow {
    margin-bottom: 28px;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .joy-product-story__title {
    max-width: 14ch;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .joy-product-story__media {
    width: 100%;
    aspect-ratio: 665 / 530;
    border-radius: 0;
  }

  .joy-product-story__body {
    padding: 30px 28px 32px;
    font-size: 16px;
    line-height: 1.6;
  }
}

/* ---- Quality ingredients (global) ---- */
.joy-product-ingredients {
  padding: var(--joy-space-section-y);
}
.joy-product-ingredients__header {
  margin-bottom: clamp(32px, 4vw, 56px);
  text-align: center;
}
.joy-product-ingredients__eyebrow {
  margin: 0 0 14px;
}
.joy-product-ingredients__title {
  max-width: 18ch;
  margin: 0 auto;
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-title-xl);
  font-weight: var(--joy-weight-medium, 500);
  line-height: 1.15;
}
.joy-product-ingredients__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.joy-product-ingredients__card {
  text-align: center;
}
.joy-product-ingredients__media {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  border-radius: var(--joy-radius-md, 16px);
  background: var(--joy-color-soft, #f7f5f4);
}
.joy-product-ingredients__media.is-placeholder {
  background: linear-gradient(
    135deg,
    var(--joy-color-soft, #f7f5f4),
    var(--joy-color-base, #f2efe8)
  );
}
.joy-product-ingredients__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.joy-product-ingredients__name {
  margin: 0 0 6px;
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: var(--joy-weight-medium, 500);
}
.joy-product-ingredients__desc {
  max-width: 26ch;
  margin: 0 auto;
  color: var(--joy-color-brown, #8b5e3e);
  font-family: var(--joy-font-body, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-body, 1rem);
  line-height: 1.5;
}
.joy-product-ingredients__dots {
  display: none;
}
@media (max-width: 1024px) {
  .joy-product-ingredients__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .joy-product-ingredients {
    overflow: hidden;
    padding: 34px 0 42px;
  }

  .joy-product-ingredients__inner {
    padding-right: 0;
    padding-left: 0;
  }

  .joy-product-ingredients__header {
    width: min(100% - 30px, 350px);
    margin: 0 auto 36px;
  }

  .joy-product-ingredients__eyebrow {
    margin-bottom: 26px;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 0.08em;
  }

  .joy-product-ingredients__title {
    max-width: 14ch;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .joy-product-ingredients__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 15px 28px;
    scroll-padding-left: 15px;
    scroll-padding-right: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .joy-product-ingredients__grid::-webkit-scrollbar {
    display: none;
  }

  .joy-product-ingredients__card {
    flex: 0 0 170px;
    scroll-snap-align: start;
    text-align: left;
  }

  .joy-product-ingredients__media {
    margin-bottom: 20px;
    border-radius: 4px;
  }

  .joy-product-ingredients__name {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .joy-product-ingredients__desc {
    max-width: none;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .joy-product-ingredients__dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
  }

  .joy-product-ingredients__dot {
    appearance: none;
    display: block;
    width: 14px;
    min-width: 0;
    height: 14px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--joy-radius-pill, 999px);
    background: rgba(38, 19, 6, 0.18);
    box-shadow: none;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    background-color: rgba(38, 19, 6, 0.18) !important;
  }

  .joy-product-ingredients__dot.is-active {
    background: var(--joy-color-text, #261306) !important;
  }
}

/* ---- Perfect for every occasion (global, accordion) ---- */
.joy-product-occasions {
  overflow: hidden;
  padding: var(--joy-space-section-y);
}
.joy-product-occasions__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(50px, 5vw, 72px);
}
.joy-product-occasions__header {
  margin: 0;
}

.joy-product-occasions__title {
  max-width: none;
  margin: 24px 0 0;
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-title-xl);
  font-weight: var(--joy-weight-medium, 500);
  line-height: 1.08;
}

.joy-product-occasions__content_wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 620px);
  gap: clamp(60px, 7vw, 104px);
  align-items: center;
}
.joy-product-occasions__content {
  min-width: 0;
}
.joy-product-occasions__list {
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 5.2vw, 76px);
  margin: 0;
  list-style: none;
  padding: 0;
  position: relative;
}

.joy-product-occasions__list::before {
  content: "";
  position: absolute;
  height: 100%;
  left: 4px;
  width: 1px;
  background: var(--joy-color-text, #261306);
  opacity: 0.2;
}

.joy-product-occasions__item {
  position: relative;
  padding-left: 30px;
}
.joy-product-occasions__item.is-active::before {
  content: "";
  position: absolute;
  top: -10px;
  height: 80px;
  left: 0;
  width: 8px;
  background: var(--joy-color-text, #261306);
}
.joy-product-occasions__label {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-heading, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-title-lg);
  font-weight: var(--joy-weight-light);
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}
.joy-product-occasions__item.is-active .joy-product-occasions__label,
.joy-product-occasions__label:hover {
  opacity: 1;
  font-weight: var(--joy-weight-medium);
  background: transparent;
  color: var(--joy-color-text, #261306);
}
.joy-product-occasions__desc {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 240ms ease;
}
.joy-product-occasions__item.is-active .joy-product-occasions__desc {
  grid-template-rows: 1fr;
}
.joy-product-occasions__desc > p {
  min-height: 0;
  max-width: 360px;
  margin: 1rem 0 0;
  color: var(--joy-color-text, #261306);
  font-family: var(--joy-font-body, "Outfit", system-ui, sans-serif);
  font-size: var(--joy-text-button);
  font-weight: var(--joy-weight-light, 300);
  line-height: 1.28;
}
.joy-product-occasions__media {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--joy-radius-md, 16px);
}
.joy-product-occasions__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 27%;
  right: -50vw;
  bottom: -48px;
  left: -40px;
  border-radius: var(--joy-radius-md, 16px) 0 0 var(--joy-radius-md, 16px);
  background: var(--joy-color-warm-panel, #9f6c47);
}
.joy-product-occasions__picture {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}
.joy-product-occasions__picture.is-active {
  opacity: 1;
  visibility: visible;
}
.joy-product-occasions__media img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--joy-radius-md, 16px);
  object-fit: cover;
}
@media (max-width: 1024px) {
  .joy-product-occasions {
    padding: clamp(56px, 9vw, 80px) 0 clamp(70px, 10vw, 92px);
  }
  .joy-product-occasions__content_wrapper {
    grid-template-columns: 1fr;
    gap: clamp(34px, 6vw, 48px);
    width: 100%;
  }

  .joy-product-occasions__content,
  .joy-product-occasions__list {
    width: 100%;
  }

  .joy-product-occasions__media {
    order: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: 16 / 10;
  }

  .joy-product-occasions__media::before {
    right: 0;
    left: 0;
    border-radius: var(--joy-radius-md, 16px);
  }

  .joy-product-occasions__list {
    gap: clamp(28px, 6vw, 46px);
    padding-top: 0;
  }
}
@media (max-width: 640px) {
  .joy-product-occasions {
    padding: 0 0 42px;
  }

  .joy-product-occasions__inner {
    gap: 34px;
  }

  .joy-product-occasions__eyebrow {
    font-size: 14px;
  }

  .joy-product-occasions__title {
    margin-top: 30px;
    font-size: 30px;
    line-height: 1.08;
    white-space: nowrap;
  }

  .joy-product-occasions__content_wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
  }

  .joy-product-occasions__list {
    gap: 20px;
    min-height: 277px;
  }

  .joy-product-occasions__list::before {
    left: 3.5px;
  }

  .joy-product-occasions__label {
    min-height: 0;
    height: auto;
    font-size: 24px;
    line-height: 1.12;
  }

  .joy-product-occasions__desc {
    display: none;
  }

  .joy-product-occasions__item.is-active .joy-product-occasions__desc {
    display: block;
  }

  .joy-product-occasions__item {
    padding-left: 28px;
  }

  .joy-product-occasions__item.is-active::before {
    top: 0px;
    left: 0;
    width: 8px;
    height: 46px;
  }

  .joy-product-occasions__desc > p {
    max-width: 31ch;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.45;
  }

  .joy-product-occasions__media {
    order: 0;
    width: min(100% - 18px, 337px);
    max-width: none;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
  }

  .joy-product-occasions__media::before {
    top: 92px;
    right: -22px;
    bottom: -26px;
    left: -22px;
    border-radius: 8px;
  }

  .joy-product-occasions__media img {
    border-radius: 8px;
  }

  body.single-product .single_variation .woocommerce-variation-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body.single-product .single_variation .woocommerce-variation-price::before {
    margin-bottom: 0;
  }

  body.single-product .wd-swatches-product .wd-swatch .wd-swatch-text,
  body.single-product .wd-swatches-product .wd-swatch > span:first-child,
  body.single-product .wd-swatches-product .wd-swatch > span {
    font-size: 14px !important;
  }

  body.single-product .wd-swatches-product .wd-swatch {
    padding: 12px 16px;
  }
}

/* ---- Category eyebrow above the product title ---- */
body.single-product .joy-product-category-eyebrow {
  color: var(--joy-color-text);
}

/* ---- Hero info column structure (Figma 1:3622) ---- */
/* Category eyebrow stacked above a left-aligned title, with a divider under it. */
body.single-product
  div.product
  .wp-block-wd-container:has(> .joy-product-category-eyebrow) {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: clamp(20px, 2.5vw, 32px);
  border-bottom: 1px solid rgba(38, 19, 6, 0.2);
}

/* Divider above the quantity / buttons (under the price). */
body.single-product .woocommerce-variation-add-to-cart {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(38, 19, 6, 0.2);
}

/* Hide the variation reset ("Clear") link — not in the design. */
body.single-product .reset_variations,
body.single-product .wd-reset-var {
  display: none;
}

/* Drop the colon Woodmart appends after the size label. */
body.single-product .variations .label::after,
body.single-product .variations .label label::after {
  content: none !important;
}
