/*
 * Design language: product templates (T-117). Loaded after design-base-1.0.0.css by fc_design_enqueue();
 * every rule needs html.fcd. Reference: forcar-concepts-docs/reference/design-language.md
 *
 * Scope: single product pages. Selectors use div.product[id^='product-'] so the YITH bundle rows
 * (div.product.yith-wcpb-product-bundled-item) and the product cards in ul.products are not touched.
 * Card internals (cards-1.0.3.css) stay as they are; only the section around related/upsell grids changes.
 */

/* ---------- layout: container, empty sidebar, two-column product grid ---------- */
html.fcd body.single-product #content > .col-full {
  box-sizing: border-box;
  padding: 0 24px;
}
/* the shop filter sidebar renders empty on product pages and only pushes the content to the right */
html.fcd body.single-product #secondary {
  display: none;
}
html.fcd body.single-product #primary {
  float: none;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}
html.fcd body.single-product div.product[id^='product-'] {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 56px;
  align-items: start;
  overflow: visible;
  padding-bottom: 88px;
}
html.fcd body.single-product div.product[id^='product-']::before,
html.fcd body.single-product div.product[id^='product-']::after {
  display: none;
}
html.fcd body.single-product div.product[id^='product-'] > .woocommerce-product-gallery {
  grid-column: 1;
  grid-row: 1;
  float: none;
  width: auto;
  margin: 0 0 40px;
}
html.fcd body.single-product div.product[id^='product-'] > .summary {
  grid-column: 2;
  grid-row: 1;
  float: none;
  width: auto;
  margin: 0 0 40px;
}
html.fcd body.single-product div.product[id^='product-'] > :is(.woocommerce-tabs, .related, .upsells, .up-sells, .custom-related-products, section) {
  grid-column: 1 / -1;
}
html.fcd body.single-product div.product[id^='product-'] > .onsale {
  grid-column: 1;
  grid-row: 1;
  z-index: 5;
  align-self: start;
  justify-self: start;
}

/* ---------- gallery ---------- */
html.fcd body.single-product .woocommerce-product-gallery {
  position: relative;
}
html.fcd body.single-product div.product[id^='product-'] .woocommerce-product-gallery .flex-viewport,
html.fcd body.single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
html.fcd body.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}
/* flexslider writes an inline pixel height from the old column width; the square image defines the height now */
html.fcd body.single-product div.product[id^='product-'] .woocommerce-product-gallery .flex-viewport {
  height: auto !important; /* inline style="height: 712px" set by flexslider */
}
/* products without a photo: WooCommerce placeholder, keep the square */
html.fcd body.single-product .woocommerce-product-gallery--without-images .woocommerce-product-gallery__image img {
  object-fit: cover;
}
html.fcd body.single-product div.product[id^='product-'] .woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}
html.fcd body.single-product div.product[id^='product-'] .woocommerce-product-gallery .flex-control-thumbs::before,
html.fcd body.single-product div.product[id^='product-'] .woocommerce-product-gallery .flex-control-thumbs::after {
  display: none;
}
html.fcd body.single-product div.product[id^='product-'] .woocommerce-product-gallery .flex-control-thumbs li {
  float: none;
  width: auto;
  margin: 0;
  list-style: none;
}
html.fcd body.single-product div.product[id^='product-'] .woocommerce-product-gallery .flex-control-thumbs li img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
  opacity: .62;
  transition: opacity .2s, outline-color .2s;
}
html.fcd body.single-product div.product[id^='product-'] .woocommerce-product-gallery .flex-control-thumbs li img:hover {
  opacity: 1;
}
html.fcd body.single-product div.product[id^='product-'] .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
  opacity: 1;
  outline: 3px solid var(--bronze);
  outline-offset: -3px;
}
html.fcd body.single-product .woocommerce-product-gallery__trigger {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  line-height: 44px;
  text-align: center;
  transition: background .2s, border-color .2s;
}
html.fcd body.single-product .woocommerce-product-gallery__trigger:hover {
  border-color: var(--ink);
}
html.fcd body.single-product .woocommerce-product-gallery__trigger::before {
  border-color: var(--ink);
}
html.fcd body.single-product .woocommerce-product-gallery__trigger::after {
  background: var(--ink);
}
html.fcd body.single-product .woocommerce-product-gallery__trigger span[aria-hidden] {
  font-size: 0;
}
/* sale flash: square, bronze with ink text (white on bronze is only 3.1:1) */
html.fcd body.single-product span.onsale {
  min-width: 0;
  min-height: 0;
  margin: 12px 0 0 12px;
  padding: 6px 12px;
  border: 0;
  border-radius: 0;
  background: var(--bronze);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  line-height: 1.2;
  text-transform: uppercase;
}

/* ---------- summary: title, price, notes ---------- */
html.fcd body.single-product .entry-summary .product_title {
  margin: 0 0 16px !important; /* main-2.0.x: .entry-summary .product_title.entry-title { margin-bottom: 0 !important } */
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: none; /* 40-70 character names: all caps drops readability, see report "karar" */
  color: var(--ink);
  overflow-wrap: break-word;
  hyphens: auto;
}
html.fcd body.single-product .entry-summary :is(p.price, .single_variation .price) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 20px !important; /* main-2.0.x: .woocommerce div.product div.summary > .price { margin-bottom: 20px !important } */
  color: var(--ink);
}
html.fcd body.single-product .entry-summary .woocommerce-Price-amount {
  color: var(--ink);
  font-weight: 700;
}
html.fcd body.single-product .entry-summary .price del {
  order: 2;
  opacity: 1;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
html.fcd body.single-product .entry-summary .price del .woocommerce-Price-amount {
  color: var(--muted);
  font-weight: 400;
}
html.fcd body.single-product .entry-summary .price ins {
  order: 1;
  margin: 0;
  background: none;
  text-decoration: none;
}
html.fcd body.single-product .entry-summary .price :is(small, .woocommerce-price-suffix) {
  order: 3;
  font-size: var(--fs-sm) !important; /* main-2.0.x sets inline-small sizes with !important on the price */
  font-weight: 400;
  color: var(--muted);
}
html.fcd body.single-product .entry-summary .price small a {
  color: var(--bronze-3);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html.fcd body.single-product .entry-summary .price small a:hover {
  color: var(--ink);
}
/* "Preis pro Stück" info line */
html.fcd body.single-product .entry-summary p.aaakkkk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
html.fcd body.single-product .entry-summary p.aaakkkk i {
  color: var(--bronze-3);
}

/* stock and delivery time */
html.fcd body.single-product .entry-summary p.stock {
  position: relative;
  margin: 0 0 20px;
  padding: 12px 16px 12px 20px;
  border-left: 4px solid var(--ok);
  background: var(--paper);
  font-size: var(--fs-sm);
  line-height: 1.5;
  text-align: left;
  color: var(--text);
}
html.fcd body.single-product .entry-summary p.stock.available-on-backorder {
  border-left-color: var(--bronze);
}
html.fcd body.single-product .entry-summary p.stock.out-of-stock {
  border-left-color: var(--danger);
}
/* the stock text carries inline colours (#ff0000 on backorder); text and the paper box need real contrast */
html.fcd body.single-product .entry-summary p.stock span {
  color: var(--text) !important; /* inline style="color:#ff0000" from the stock text plugin */
}
html.fcd body.single-product .entry-summary p.stock span span {
  font-weight: 700;
  color: var(--ink) !important; /* same inline colour/weight on the delivery-time value */
}
html.fcd body.single-product .entry-summary .woocommerce-variation-description p,
html.fcd body.single-product .entry-summary .woocommerce-product-details__short-description {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text);
}

/* ---------- variations ---------- */
html.fcd body.single-product div.product table.variations {
  width: 100%;
  margin: 0 0 16px;
  border: 0;
}
html.fcd body.single-product div.product table.variations :is(tbody, tr) {
  display: block;
}
html.fcd body.single-product div.product table.variations :is(th, td) {
  display: block;
  padding: 0;
  border: 0;
}
html.fcd body.single-product div.product table.variations tr {
  margin: 0 0 16px;
}
html.fcd body.single-product div.product table.variations .label label {
  display: block;
  margin: 0 0 6px !important; /* main-2.0.x: .variations .label label { margin-bottom: .5rem !important } */
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink);
}
html.fcd body.single-product div.product table.variations .value {
  margin: 0;
  padding: 0 !important; /* main-2.0.x: span.quantity, .variation { padding-left: 35px !important } reaches td.value in some builds */
}
html.fcd body.single-product div.product table.variations select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0 44px 0 14px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%230e0f11' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  box-shadow: none;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-md);
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
html.fcd body.single-product div.product table.variations select:focus {
  outline: 2px solid var(--bronze);
  outline-offset: 0;
  border-color: var(--bronze);
}
html.fcd body.single-product div.product a.reset_variations {
  display: inline-block;
  margin: 8px 0 0 !important; /* main-2.0.x: .reset_variations { margin-top: 1rem !important } */
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--bronze-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
html.fcd body.single-product div.product a.reset_variations:hover {
  color: var(--ink);
}
html.fcd body.single-product div.product .single_variation_wrap .single_variation {
  margin: 0;
}
html.fcd body.single-product div.product .single_variation .price {
  margin: 0 0 16px !important; /* main-2.0.x: .single_variation .price { margin-bottom: 0 !important } */
  color: var(--ink);
}

/* ---------- product add-ons (WooCommerce Product Add-Ons) ---------- */
html.fcd body.single-product form.cart .wc-pao-addons-container {
  margin: 0 0 20px;
}
html.fcd body.single-product form.cart .wc-pao-addon {
  margin: 0 0 12px;
  padding: 20px;
  border: 0;
  border-top: 3px solid var(--bronze);
  background: var(--paper);
}
html.fcd body.single-product form.cart .wc-pao-addon .wc-pao-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
html.fcd body.single-product form.cart .wc-pao-addon .wc-pao-legend {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
html.fcd body.single-product form.cart h2.wc-pao-addon-name {
  margin: 0 0 12px !important; /* main-2.0.x: .wc-pao-addon-name { margin-bottom: .5rem !important } */
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink);
}
html.fcd body.single-product form.cart .wc-pao-addon .form-row {
  margin: 0;
  padding: 0 !important; /* main-2.0.x: .wc-pao-addon .form-row { padding: 0 .5rem !important } */
}
html.fcd body.single-product form.cart .wc-pao-addon .wc-pao-addon-wrap > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
}
html.fcd body.single-product form.cart .wc-pao-addon input[type='checkbox'],
html.fcd body.single-product form.cart .wc-pao-addon input[type='radio'] {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
html.fcd body.single-product form.cart .wc-pao-addon label {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
}
html.fcd body.single-product form.cart .wc-pao-addon .wc-pao-addon-price {
  font-weight: 700;
  color: var(--ink);
}
html.fcd body.single-product form.cart .wc-pao-addon :is(input.input-text, input[type='text'], input[type='number'], select, textarea):not(.qty) {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background-color: #fff;
  box-shadow: none;
  color: var(--ink);
  font-size: var(--fs-md);
  line-height: 1.4;
}
html.fcd body.single-product form.cart .wc-pao-addon textarea {
  min-height: 104px;
  padding: 12px 14px;
}
html.fcd body.single-product form.cart .wc-pao-addon :is(input, select, textarea):focus {
  outline: 2px solid var(--bronze);
  outline-offset: 0;
  border-color: var(--bronze);
}
html.fcd body.single-product form.cart .wc-pao-addon .required {
  color: var(--danger);
}
html.fcd body.single-product form.cart .wc-pao-addon :is(.wc-pao-addon-description, .wc-pao-addon-description p) {
  margin: 0 0 8px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
html.fcd body.single-product form.cart .product-addon-totals {
  margin: 0 0 12px;
  font-size: var(--fs-sm);
  color: var(--text);
}
html.fcd body.single-product form.cart .product-addon-totals ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
html.fcd body.single-product form.cart .product-addon-totals .wc-pao-col1 strong,
html.fcd body.single-product form.cart .product-addon-totals .wc-pao-subtotal-line .amount {
  color: var(--ink);
}
html.fcd body.single-product form.cart .validation_message {
  margin: 12px 0 0;
}

/* ---------- quantity and add to cart ---------- */
html.fcd body.single-product div.product form.cart {
  margin: 0 0 24px;
  padding: 0;
}
html.fcd body.single-product div.product :is(.woocommerce-variation-add-to-cart, form.cart:not(.variations_form):not(.yith-wcpb-bundle-form)) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  padding: 0;
}
html.fcd body.single-product div.product :is(.woocommerce-variation-add-to-cart, form.cart:not(.variations_form):not(.yith-wcpb-bundle-form))::before,
html.fcd body.single-product div.product :is(.woocommerce-variation-add-to-cart, form.cart:not(.variations_form):not(.yith-wcpb-bundle-form))::after {
  display: none;
}
html.fcd body.single-product div.product form.cart:not(.variations_form):not(.yith-wcpb-bundle-form) > .wc-pao-addons-container {
  flex: 0 0 100%;
  margin-bottom: 8px;
}
html.fcd body.single-product div.product form.cart .quantity {
  float: none;
  flex: none;
  width: 148px;
  margin: 0 !important;
  padding: 0 !important; /* main-2.0.x: span.quantity { padding-left: 35px !important } */
}
html.fcd body.single-product .quantity .number-input {
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  height: 52px;
  padding: 0;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}
html.fcd body.single-product .quantity .number-input a {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important; /* main-2.0.x: .number-input a { text-decoration: none !important } */
  color: var(--ink);
  user-select: none;
  transition: background .2s, color .2s;
}
html.fcd body.single-product .quantity .number-input a:hover {
  background: var(--ink);
  color: #fff;
}
html.fcd body.single-product .quantity .number-input input.qty {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0 !important; /* main-2.0.x: .number-input input[type=number] { border: 0 !important } is kept; this only pins it */
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 700;
  text-align: center;
}
html.fcd body.single-product .quantity .number-input:focus-within {
  outline: 2px solid var(--bronze);
  outline-offset: 0;
  border-color: var(--bronze);
}
html.fcd body.single-product div.product .single_add_to_cart_button {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  float: none;
}
/*
 * Ink button, hover and the green-button overrides come from design-base (its button rule is !important).
 * The disabled state needs more specificity than base's :hover rule (id + 6 classes), hence the doubled classes.
 */
html.fcd #content div.product button.single_add_to_cart_button.button.alt:is(.disabled, :disabled, .wc-variation-selection-needed, .wc-variation-is-unavailable),
html.fcd #content div.product button.single_add_to_cart_button.button.alt:is(.disabled, :disabled, .wc-variation-selection-needed, .wc-variation-is-unavailable):hover {
  border-color: var(--field-line) !important; /* base: border/background/color are !important */
  background: var(--paper) !important;
  color: var(--text) !important;
  opacity: 1;
  cursor: not-allowed;
}
/* "Warenkorb anzeigen" link WooCommerce inserts after adding via ajax */
html.fcd body.single-product div.product a.added_to_cart {
  flex: 0 0 100%;
  margin: 4px 0 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--bronze-3);
}
html.fcd body.single-product div.product .single_add_to_cart_button.loading {
  opacity: .7;
}

/* ---------- product meta ---------- */
html.fcd body.single-product div.product .product_meta {
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
}
html.fcd body.single-product div.product .product_meta a {
  font-weight: 700;
  color: var(--bronze-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
html.fcd body.single-product div.product .product_meta a:hover {
  color: var(--ink);
}
/* base only hides .addtoany_share_save_container; this site's AddToAny output is header + kit (base issue) */
html.fcd body.single-product :is(.addtoany_header, .a2a_kit) {
  display: none;
}

/* ---------- tabs ---------- */
html.fcd body.single-product .woocommerce-tabs {
  padding: 0;
  overflow: visible;
}
html.fcd body.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  float: none;
  width: 100%;
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
html.fcd body.single-product .woocommerce-tabs ul.tabs::before,
html.fcd body.single-product .woocommerce-tabs ul.tabs::after {
  display: none;
}
html.fcd body.single-product .woocommerce-tabs ul.tabs li {
  position: relative;
  display: block;
  margin: 0 28px -1px 0;
  border: 0;
  background: none;
}
html.fcd body.single-product .woocommerce-tabs ul.tabs li::before {
  display: none;
}
html.fcd body.single-product .woocommerce-tabs ul.tabs li::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  width: auto;
  height: 3px;
  margin: 0;
  background: var(--bronze);
  border: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
html.fcd body.single-product .woocommerce-tabs ul.tabs li:is(.active, :hover)::after {
  transform: scaleX(1);
}
html.fcd body.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 14px 0 16px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
html.fcd body.single-product .woocommerce-tabs ul.tabs li:is(.active) a {
  color: var(--ink) !important; /* main-2.0.x: .woocommerce-tabs li.active > a { color: #000 !important } */
}
html.fcd body.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--ink) !important; /* main-2.0.x: .woocommerce-tabs li > a:hover { color: #000 !important } */
}
html.fcd body.single-product .woocommerce-tabs .panel {
  float: none;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
html.fcd body.single-product .woocommerce-tabs .panel > h2:first-of-type {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
html.fcd body.single-product .woocommerce-tabs .panel > :is(p, ul, ol, h3, h4, div:not(.acf-label):not(.acf-input)) {
  max-width: 78ch;
}
html.fcd body.single-product .woocommerce-tabs .panel :is(p, li) {
  line-height: 1.65;
  color: var(--text);
}
html.fcd body.single-product .woocommerce-tabs .panel h3 {
  margin: 28px 0 12px;
  font-weight: 700;
  line-height: 1.25;
}
html.fcd body.single-product .woocommerce-tabs .panel iframe {
  max-width: 100%;
}
/* additional information: thin ruled table */
html.fcd body.single-product table.woocommerce-product-attributes {
  width: 100%;
  max-width: 720px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}
html.fcd body.single-product table.woocommerce-product-attributes :is(th, td) {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: var(--fs-md);
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}
html.fcd body.single-product table.woocommerce-product-attributes tr:first-child :is(th, td) {
  border-top: 1px solid var(--line);
}
html.fcd body.single-product table.woocommerce-product-attributes th {
  width: 34%;
  padding-right: 20px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink);
}
html.fcd body.single-product table.woocommerce-product-attributes td p {
  margin: 0;
}
html.fcd body.single-product table.woocommerce-product-attributes td a {
  color: var(--bronze-3);
  font-weight: 700;
}

/* reviews */
html.fcd body.single-product #reviews {
  max-width: 780px;
}
html.fcd body.single-product #reviews .comment-reply-title {
  display: block;
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  color: var(--ink);
}
html.fcd body.single-product #review_form #commentform :is(.comment-form-rating, .comment-form-comment, .comment-form-author, .comment-form-email, .comment-form-cookies-consent, .aiowps-captcha) {
  margin: 0 0 16px;
}
html.fcd body.single-product #review_form #commentform label {
  display: block;
  margin: 0 0 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}
html.fcd body.single-product #review_form #commentform :is(input[type='text'], input[type='email'], input[type='url'], select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background-color: #fff;
  box-shadow: none;
  color: var(--ink);
  font-size: var(--fs-md);
  line-height: 1.4;
}
html.fcd body.single-product #review_form #commentform textarea {
  min-height: 140px;
  padding: 12px 14px;
}
html.fcd body.single-product #review_form #commentform :is(input[type='text'], input[type='email'], select, textarea):focus {
  outline: 2px solid var(--bronze);
  outline-offset: 0;
  border-color: var(--bronze);
}
html.fcd body.single-product #review_form #commentform .aiowps-captcha-answer {
  display: inline-block;
  width: 96px;
  margin-left: 8px;
}
html.fcd body.single-product #review_form #commentform p.stars a {
  color: var(--bronze-3);
}
html.fcd body.single-product #reviews .commentlist {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
html.fcd body.single-product #reviews .commentlist li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
html.fcd body.single-product #reviews .commentlist li :is(.comment_container, .comment-text) {
  border-radius: 0;
}
html.fcd body.single-product #reviews .commentlist li img.avatar {
  border: 1px solid var(--line);
  border-radius: 0;
}

/* ---------- related / upsells / recently viewed: section heading like the home page, grid spacing ---------- */
html.fcd body.single-product div.product[id^='product-'] > :is(section.related, section.upsells, section.up-sells, .custom-related-products) {
  margin: 0;
  padding: 56px 0 0;
  border-top: 1px solid var(--line);
}
html.fcd body.single-product div.product[id^='product-'] > :is(section.related, section.upsells, section.up-sells, .custom-related-products) > h2 {
  position: relative;
  max-width: none;
  margin: 0 0 32px;
  padding: 0;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  line-height: .95;
  letter-spacing: -.01em;
  text-align: left;
  text-transform: uppercase;
}
html.fcd body.single-product div.product[id^='product-'] > :is(section.related, section.upsells, section.up-sells, .custom-related-products) > h2::before {
  content: '';
  display: block;
  width: 34px;
  height: 3px;
  margin: 0 0 14px;
  background: var(--bronze);
}
/*
 * The grid itself comes from cards-1.0.3.css (4 across, but WooCommerce prints columns-3 for upsells, which leaves one
 * orphan card on the second row). Only the column count is set here, with enough specificity to beat that file's
 * columns-3 rule; the cards stay untouched.
 */
html.fcd #content :is(section.related, section.upsells, section.up-sells) ul.products:not(.fcy-rail ul):not(.owl-carousel ul):not(.columns-1):not(.columns-2) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- bundle products (YITH): keep the rows, align to the new language ---------- */
html.fcd body.single-product form.yith-wcpb-bundle-form {
  margin: 0 0 24px;
  padding: 0;
}
html.fcd body.single-product .yith-wcpb-product-bundled-items {
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
}
html.fcd body.single-product .yith-wcpb-product-bundled-item {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
html.fcd body.single-product .yith-wcpb-product-bundled-item img {
  border-radius: 0;
}
html.fcd body.single-product h3.yith-wcpb-product-bundled-item-data__title {
  margin: 0 0 6px;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.3;
}
html.fcd body.single-product h3.yith-wcpb-product-bundled-item-data__title a {
  color: var(--ink);
  text-decoration: none;
}
html.fcd body.single-product .entry-summary .yith-wcpb-product-bundled-item-data__price .price {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-size: var(--fs-md) !important; /* main-2.0.x: .entry-summary .price { font-size: 14px !important } */
}
html.fcd body.single-product .entry-summary .yith-wcpb-product-bundled-item-data__price .woocommerce-Price-amount {
  font-size: var(--fs-md) !important; /* type-scale: .entry-summary .woocommerce-Price-amount { font-size: var(--fs-xl) !important } is meant for the main price only */
}
html.fcd body.single-product .entry-summary .yith-wcpb-product-bundled-item-data__price del .woocommerce-Price-amount {
  font-size: var(--fs-sm) !important;
}

/* ---------- small screens ---------- */
@media (max-width: 1024px) {
  html.fcd #content :is(section.related, section.upsells, section.up-sells) ul.products:not(.fcy-rail ul):not(.owl-carousel ul):not(.columns-1):not(.columns-2) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  html.fcd #content :is(section.related, section.upsells, section.up-sells) ul.products:not(.fcy-rail ul):not(.owl-carousel ul):not(.columns-1):not(.columns-2) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html.fcd body.single-product div.product[id^='product-'] {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 60px;
  }
  html.fcd body.single-product div.product[id^='product-'] > .woocommerce-product-gallery,
  html.fcd body.single-product div.product[id^='product-'] > .summary {
    grid-column: 1;
    margin-bottom: 28px;
  }
  html.fcd body.single-product div.product[id^='product-'] > .summary {
    grid-row: 2;
  }
}
@media (max-width: 640px) {
  html.fcd body.single-product #content > .col-full {
    padding: 0 16px;
  }
  html.fcd body.single-product div.product[id^='product-'] .woocommerce-product-gallery .flex-control-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  html.fcd body.single-product div.product form.cart .quantity {
    width: 100%;
  }
  html.fcd body.single-product div.product .single_add_to_cart_button {
    flex-basis: 100%;
  }
  /* five long labels: one swipeable row instead of a tall stack */
  html.fcd body.single-product .woocommerce-tabs ul.tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  html.fcd body.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
  }
  html.fcd body.single-product .woocommerce-tabs ul.tabs li {
    flex: none;
    width: auto;
    margin-right: 22px;
    white-space: nowrap;
  }
  html.fcd body.single-product div.product[id^='product-'] > :is(section.related, section.upsells, section.up-sells, .custom-related-products) {
    padding-top: 40px;
  }
}
