/* Product layout owns its spacing. Third-party features keep their own behaviour. */
.cz-pdp .product_meta .sku_wrapper { display: none; }
.cz-pdp {
  --cz-accent: #17b590;
  --cz-ink: #243b38;
  --cz-muted: #64716e;
  --cz-line: #dfe8e5;
  --cz-tint: #f4f8f6;
  color: var(--cz-ink);
}
/* Follow the theme's configured container width for the product page. */
.cz-pdp .cz-pdp-header { padding-top: 28px; padding-bottom: 24px; }
.cz-pdp-header .woocommerce-breadcrumb { margin: 0 0 12px; font-size: 12px; line-height: 1.6; font-weight: 400; text-transform: none; color: var(--cz-muted); }
.cz-pdp-header h1.product-title { margin: 0; width: auto; color: var(--cz-ink); font-size: clamp(25px, 2.5vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: break-word; }
.cz-pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 10px; font-size: 12px; color: var(--cz-muted); }
.cz-pdp-meta:empty { display: none; }
.cz-pdp-meta .woocommerce-product-rating { margin: 0; }
.cz-pdp .product-main { padding: 0 0 40px; }
.cz-pdp .content-row { align-items: flex-start; }
.cz-pdp .product-gallery { padding-bottom: 0; }
.cz-pdp .product-gallery .product-images { margin-bottom: 16px; }
.cz-pdp .product-gallery .woocommerce-product-gallery__image img { object-fit: contain; }
.cz-pdp .product-thumbnails a { border: 1px solid var(--cz-line); border-radius: 8px; overflow: hidden; }
.cz-pdp .product-thumbnails .is-nav-selected a { border-color: var(--cz-accent); }
.cz-pdp .product-gallery .wishlist-button, .cz-pdp .product-gallery .yith-wcwl-add-to-wishlist { display: none; } /* The labelled control lives beside purchase actions. */
.cz-pdp.product-container .product-info .mgpc-product-offer:not(:empty) { margin-bottom: 16px; }
.cz-pdp.product-container .product-info { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.cz-pdp.product-container .product-info > .is-divider, .cz-pdp.product-container .product-info > .next-prev-thumbs { display: none; }
.cz-pdp.product-container .product-info .price-wrapper { min-height: 0; padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--cz-line); }
.cz-pdp.product-container .product-info .product-page-price { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.25; color: var(--cz-ink); }
.cz-pdp.product-container .product-info .price del { font-size: .65em; font-weight: 400; color: var(--cz-muted); }
.cz-pdp.product-container .product-info .price ins { text-decoration: none; }
.cz-pdp.product-container .product-info .price .woocommerce-Price-currencySymbol { font-size: .72em; vertical-align: baseline; }
.cz-pdp.product-container .product-info .mgpc-product-offer:has(.mgpc-initial:empty):has(.mgpc-selected:empty) { display: none; }
.cz-pdp.product-container .product-info form.cart { margin: 0 0 20px; }
.cz-pdp.product-container .product-info table.variations { margin: 0 0 16px; }
.cz-pdp.product-container .product-info table.variations tr { display: grid; grid-template-columns: minmax(60px, 24%) minmax(0, 1fr); align-items: center; gap: 10px; margin: 0 0 14px; border: 0; }
.cz-pdp.product-container .product-info table.variations tr:last-child { margin-bottom: 0; }
.cz-pdp.product-container .product-info table.variations th.label,
.cz-pdp.product-container .product-info table.variations td.value { display: block; width: 100%; padding: 0; border: 0; }
.cz-pdp.product-container .product-info table.variations label { display: block; margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; text-transform: none; white-space: normal; overflow-wrap: anywhere; }
.cz-pdp.product-container .product-info table.variations select { display: block; width: 100%; max-width: 100%; height: 32px; min-height: 32px; margin: 0; padding: 4px 26px 4px 10px; border: 1px solid #c4d3cd; border-radius: 0; box-shadow: none; background-color: #fff; color: var(--cz-ink); font-size: 14px; line-height: 1.4; }
.cz-pdp.product-container .product-info table.variations .reset_variations { position: static; display: inline-block; margin: 0; font-size: 12px; line-height: 1.4; color: var(--cz-muted); opacity: 1; text-transform: none; text-decoration: underline; text-underline-offset: 3px; }
.cz-pdp.product-container .product-info .stock { margin: 0 0 16px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.cz-pdp.product-container .product-info .single_variation .stock { padding: 0; border-top: 0; }
.cz-pdp.product-container .product-info .woocommerce-variation-description:empty { display: none; }
.cz-pdp.product-container .product-info .woocommerce-variation-price:empty { display: none; }
.cz-pdp.product-container .product-info .single_variation { min-height: 0; margin: 0; padding: 0; }
.cz-pdp.product-container .product-info .single_variation_wrap { min-height: 0 !important; height: auto !important; }
.cz-pdp.cz-price-synced .product-info .woocommerce-variation-price { display: none; }
.cz-pdp.product-container .product-info .in-stock { color: #2f7045; }
.cz-pdp.product-container .product-info .out-of-stock { color: #ab3535; }
.cz-pdp.product-container .product-info form.cart:not(.variations_form):not(.grouped_form),
.cz-pdp.product-container .product-info .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.cz-pdp.product-container .product-info form.cart:not(.variations_form) > .stock { flex-basis: 100%; }
.cz-pdp.product-container .product-info .ux-quantity.quantity { display: inline-flex; flex: 0 0 104px; height: 48px; margin: 0 !important; }
.cz-pdp.product-container .product-info .quantity input { height: 48px; min-height: 48px; margin: 0; box-shadow: none; border-color: #c4d3cd; font-size: 16px; }
.cz-pdp.product-container .product-info .quantity .minus, .cz-pdp.product-container .product-info .quantity .plus { width: 32px; min-width: 32px; padding: 0; background: var(--cz-tint); color: var(--cz-ink); }
.cz-pdp.product-container .product-info .quantity .minus { border-radius: 8px 0 0 8px; }
.cz-pdp.product-container .product-info .quantity .plus { border-radius: 0 8px 8px 0; }
.cz-pdp.product-container .product-info .quantity .qty { width: 40px; padding: 0; border-radius: 0; }
.cz-pdp.product-container .product-info .single_add_to_cart_button { flex: 1 1 160px; min-height: 48px; margin: 0; padding: 12px 16px; border: 1px solid transparent; border-radius: 0; background: var(--cz-accent); color: #fff; font-size: 15px; line-height: 1.4; font-weight: 700; letter-spacing: 0; text-transform: none; box-shadow: none; }
.cz-pdp.product-container .product-info .single_add_to_cart_button:hover { background: #139b7c; }
.cz-pdp.product-container .product-info .single_add_to_cart_button.disabled { opacity: .5; }
.cz-pdp.product-container .product-info .wlr-product-message { margin: 16px 0; padding: 10px 12px; background: var(--cz-tint); border-radius: 8px; font-size: 14px; line-height: 1.5; }
.cz-pdp .cz-pdp-actions .feedback { display: none; }
.cz-pdp .product_meta { font-size: 12px; color: var(--cz-muted); }
.cz-pdp a:focus-visible, .cz-pdp button:focus-visible, .cz-pdp input:focus-visible { outline: 3px solid var(--cz-accent); outline-offset: 3px; }
.cz-pdp.product-container .product-info table.variations select:focus { outline: none !important; box-shadow: none !important; }
.cz-pdp.product-container .product-info table.variations select:focus-visible { border-color: var(--cz-muted); }
.cz-pdp.product-container .product-info table.variations option.cz-option-available,
.cz-pdp.product-container .product-info table.variations select.cz-option-available { color: #1b7f3b; }
.cz-pdp.product-container .product-info table.variations option.cz-option-unavailable,
.cz-pdp.product-container .product-info table.variations select.cz-option-unavailable { color: #c62828; }
.cz-pdp.product-container .product-info table.variations option[value=""] { color: var(--cz-muted); }
.cz-pdp .product-footer { margin: 0; padding-top: 0; }
.cz-pdp .woocommerce-tabs { border-top: 1px solid var(--cz-line); padding: 0; }
.cz-pdp .woocommerce-tabs ul.tabs { gap: 24px; padding: 0; margin: 0 0 28px; }
.cz-pdp .woocommerce-tabs ul.tabs li { margin: 0; }
.cz-pdp .woocommerce-tabs ul.tabs a { padding: 18px 0; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--cz-muted); }
.cz-pdp .woocommerce-tabs ul.tabs li.active a { color: var(--cz-accent); }
.cz-pdp .woocommerce-tabs ul.tabs a::before { background: var(--cz-accent); }
.cz-pdp .tab-panels { padding-top: 0; }
.cz-pdp .product-footer .entry-content { color: #34423e; font-size: 16px; line-height: 1.75; overflow-wrap: break-word; }
.cz-pdp .product-footer .entry-content h2 { margin: 28px 0 16px; color: var(--cz-ink); font-size: 26px; line-height: 1.3; }
.cz-pdp .product-footer .entry-content h3 { margin: 24px 0 14px; color: var(--cz-ink); font-size: 21px; line-height: 1.4; }
.cz-pdp .product-footer .entry-content .wp-block-media-text { margin: 28px 0; }
.cz-pdp .product-footer .entry-content .wp-block-media-text__media img { border-radius: 12px; }
.cz-pdp .product-footer .entry-content table { width: 100%; font-size: 14px; }
.cz-pdp .woocommerce-product-attributes th { width: 35%; font-weight: 600; text-transform: none; letter-spacing: 0; }
.cz-pdp .woocommerce-product-attributes th, .cz-pdp .woocommerce-product-attributes td { padding: 14px; border-color: var(--cz-line); }
.cz-pdp .woocommerce-product-attributes tr:nth-child(odd) { background: var(--cz-tint); }
.cz-pdp .woocommerce-product-attributes p { margin: 0; }
.cz-pdp .cz-pdp-tab-toggle { display: none; }
@media (min-width: 850px) {
  .cz-pdp .content-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; margin: 0 auto; padding: 0 15px; }
  .cz-pdp .product-gallery > .row { margin-left: 0; margin-right: 0; }
  .cz-pdp .content-row > .product-gallery, .cz-pdp .content-row > .product-info { flex: none; width: 100%; max-width: 100%; margin: 0; }
  .cz-pdp .content-row > .product-gallery { padding: 0; }
}
@media (max-width: 849px) {
  .cz-pdp .cz-pdp-header { padding-top: 20px; padding-bottom: 20px; }
  .cz-pdp .content-row { margin: 0; }
  .cz-pdp .content-row > .product-gallery, .cz-pdp .content-row > .product-info { flex-basis: 100%; max-width: 100%; width: 100%; }
  .cz-pdp .product-main { padding-bottom: 28px; }
  .cz-pdp .product-gallery { padding: 0 16px; }
  .cz-pdp .product-thumbnails .col { width: 80px !important; max-width: 80px; flex-basis: 80px; }
  .cz-pdp.product-container .product-info { margin: 16px; width: calc(100% - 32px) !important; max-width: calc(100% - 32px) !important; padding: 0; border: 0; border-radius: 0; }
  .cz-pdp.product-container .product-info .product-page-price { font-size: 28px; }
  .cz-pdp .product-footer > .container { padding: 0 16px; }
  .cz-pdp .cz-tabs-ready > ul.tabs { display: none; }
  .cz-pdp .cz-tabs-ready .cz-pdp-tab-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--cz-line); border-radius: 0; background: #fff; box-shadow: none; color: var(--cz-ink); font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: left; }
  .cz-pdp .cz-pdp-tab-toggle::after { content: ''; flex: none; width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin-right: 4px; }
  .cz-pdp .cz-pdp-tab-toggle[aria-expanded=true] { color: var(--cz-accent); }
  .cz-pdp .cz-pdp-tab-toggle[aria-expanded=true]::after { transform: rotate(225deg); }
  .cz-pdp .cz-tabs-ready .tab-panels > .panel { display: none !important; padding: 18px 0 24px; margin: 0; }
  .cz-pdp .cz-tabs-ready .tab-panels > .panel.cz-panel-open { display: block !important; height: auto; opacity: 1; visibility: visible; overflow: visible; }
  .cz-pdp .product-footer .entry-content .wp-block-media-text,
  .cz-pdp .product-footer .entry-content .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr !important; gap: 20px !important; margin: 24px 0; }
  .cz-pdp .product-footer .entry-content .wp-block-columns { flex-direction: column; gap: 20px !important; }
  .cz-pdp .product-footer .entry-content h2 { font-size: 23px; }
  .cz-pdp .product-footer .entry-content h3 { font-size: 19px; }
  .cz-pdp .product-footer .entry-content .wp-block-gallery { gap: 16px !important; }
}
@media (prefers-reduced-motion: reduce) { .cz-pdp * { scroll-behavior: auto !important; transition: none !important; } }

.cz-pdp .cz-pdp-share-status { flex-basis: 100%; font-size: 12px; overflow-wrap: anywhere; }
.cz-pdp .cz-pdp-share-status:empty { display: none; }
.cz-pdp .cz-pdp-actions a, .cz-pdp .cz-pdp-actions button { scroll-margin-top: 160px; }
.cz-pdp .cz-pdp-tab-toggle { scroll-margin-top: 150px; }

/* Header actions and SKU follow the reference: compact controls, SKU beneath. */
.cz-pdp .cz-pdp-header { display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 32px; }
.cz-pdp-header > .woocommerce-breadcrumb { grid-column: 1 / -1; }
.cz-pdp .cz-pdp-toolbar { position: relative; min-width: 156px; text-align: right; align-self: end; }
.cz-pdp .cz-pdp-toolbar .cz-pdp-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.cz-pdp .cz-pdp-toolbar .cz-pdp-sku { display: block; margin-top: 6px; color: var(--cz-muted); font-size: 12px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-pdp .cz-pdp-toolbar .yith-wcwl-add-to-wishlist,
.cz-pdp .cz-pdp-toolbar .yith-wcwl-add-button,
.cz-pdp .cz-pdp-toolbar .yith-wcwl-wishlistaddedbrowse,
.cz-pdp .cz-pdp-toolbar .yith-wcwl-wishlistexistsbrowse { position: static; display: flex; align-items: center; margin: 0; }
.cz-pdp.product-container .cz-pdp-toolbar .add_to_wishlist,
.cz-pdp.product-container .cz-pdp-toolbar .yith-wcwl-wishlistaddedbrowse a,
.cz-pdp.product-container .cz-pdp-toolbar .yith-wcwl-wishlistexistsbrowse a,
.cz-pdp.product-container .cz-pdp-toolbar .cz-pdp-compare,
.cz-pdp.product-container .cz-pdp-toolbar .cz-pdp-share {
  position: static !important; inset: auto !important; transform: none !important;
  display: inline-flex !important; align-items: center; justify-content: center;
  flex: 0 0 44px; width: 44px !important; height: 44px !important; min-width: 44px; min-height: 44px;
  padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 8px;
  background: transparent !important; box-shadow: none; color: var(--cz-accent) !important; line-height: 1;
}
.cz-pdp .cz-pdp-toolbar .cz-pdp-share[hidden] { display: none !important; }
.cz-pdp .cz-pdp-toolbar svg { width: 24px; height: 24px; margin: 0; }
.cz-pdp .cz-pdp-toolbar .cz-pdp-wishlist { flex: 0 0 44px; width: 44px; height: 44px; }
.cz-pdp .cz-pdp-toolbar .cz-pdp-wishlist .yith-wcwl-add-to-wishlist,
.cz-pdp .cz-pdp-toolbar .cz-pdp-wishlist .yith-wcwl-add-button,
.cz-pdp .cz-pdp-toolbar .cz-pdp-wishlist .yith-wcwl-wishlistaddedbrowse,
.cz-pdp .cz-pdp-toolbar .cz-pdp-wishlist .yith-wcwl-wishlistexistsbrowse { flex-direction: row !important; width: 44px; height: 44px; min-height: 0; }
.cz-pdp .cz-pdp-toolbar .cz-pdp-wishlist svg { color: inherit !important; }
.cz-pdp .cz-pdp-toolbar .cz-pdp-wishlist .feedback { display: none !important; }
.single-product #yith-wcwl-popup-message { left: 50% !important; top: 50% !important; margin: 0 !important; transform: translate(-50%, -50%); max-width: calc(100vw - 32px); padding: 14px; font-size: 14px; }
.cz-pdp .cz-pdp-toolbar .add_to_wishlist::after,
.cz-pdp .cz-pdp-toolbar .yith-wcwl-wishlistaddedbrowse a::after,
.cz-pdp .cz-pdp-toolbar .yith-wcwl-wishlistexistsbrowse a::after { content: none; }
.cz-pdp .cz-pdp-toolbar .cz-pdp-actions > a > span,
.cz-pdp .cz-pdp-toolbar .cz-pdp-share > span,
.cz-pdp .cz-pdp-toolbar .cz-pdp-wishlist a > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cz-pdp .cz-pdp-toolbar .cz-pdp-actions a:hover,
.cz-pdp .cz-pdp-toolbar .cz-pdp-share:hover,
.cz-pdp .cz-pdp-toolbar .cz-pdp-compare.is-added { background: var(--cz-tint) !important; }
.cz-pdp .cz-pdp-toolbar .cz-pdp-compare-view { order: 4; flex-basis: 100%; margin-top: 4px; font-size: 12px; }
.cz-pdp .cz-pdp-info { border-top: 1px solid var(--cz-line); margin-top: 24px; }
.cz-pdp .cz-pdp-info-row { border-bottom: 1px solid var(--cz-line); margin: 0; }
.cz-pdp .cz-pdp-info-row summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 0; color: var(--cz-ink); font-size: 14px; line-height: 1.5; list-style: none; cursor: pointer; }
.cz-pdp .cz-pdp-info-row summary::-webkit-details-marker { display: none; }
.cz-pdp .cz-pdp-info-row summary > svg { width: 20px; height: 20px; flex: 0 0 20px; }
.cz-pdp .cz-pdp-info-row summary > span { flex: 1; }
.cz-pdp .cz-pdp-info-row summary::after { content: ''; width: 6px; height: 6px; border-right: 1px solid var(--cz-muted); border-bottom: 1px solid var(--cz-muted); transform: rotate(-45deg); margin: 0 4px; flex: none; }
.cz-pdp .cz-pdp-info-row[open] summary::after { transform: rotate(45deg); }
.cz-pdp .cz-pdp-info-row > div { padding: 0 0 14px 32px; color: var(--cz-muted); font-size: 13px; line-height: 1.6; }
.cz-pdp .cz-pdp-info-row p { margin: 0 0 8px; }
.cz-pdp .cz-pdp-info-row a { color: var(--cz-accent); text-decoration: underline; text-underline-offset: 3px; }
.cz-pdp summary:focus-visible { outline: 3px solid var(--cz-accent); outline-offset: 3px; }
@media (max-width: 849px) {
  .cz-pdp .cz-pdp-header { grid-template-columns: minmax(0,1fr); gap: 0; }
  .cz-pdp .cz-pdp-toolbar { justify-self: end; margin-top: 8px; }
}

/* A reserved square exists before images or Flickity load. Slide aspect ratios
   and variation-image dimensions cannot change the frame or thumbnail rail. */
.cz-pdp .product-gallery-slider { aspect-ratio: 1 / 1; height: auto !important; overflow: hidden; }
.cz-pdp .product-gallery-slider .flickity-viewport { height: 100% !important; transition: none !important; }
.cz-pdp .product-gallery-slider .woocommerce-product-gallery__image { height: 100%; display: flex; align-items: center; justify-content: center; }
.cz-pdp .product-gallery-slider .woocommerce-product-gallery__image > a,
.cz-pdp .product-gallery-slider .mp-video-frame { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.cz-pdp .product-gallery-slider .woocommerce-product-gallery__image img:not(.zoomImg),
.cz-pdp .product-gallery-slider .mp-inline-video { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.cz-pdp .product-gallery-slider:not(.flickity-enabled) > .slide:not(:first-child) { display: none; }
.cz-pdp .product-thumbnails img { margin: 0; transform: none !important; transition: opacity .15s; }
.cz-pdp.product-container .product-info table.variations td.value { display: grid; grid-template-columns: minmax(0, 150px) minmax(78px, 1fr); grid-template-rows: 16px 16px; column-gap: 12px; align-items: center; }
.cz-pdp.product-container .product-info table.variations select { grid-column: 1; grid-row: 1 / 3; }
.cz-pdp.product-container .product-info table.variations .reset_variations { grid-column: 2; grid-row: 1; justify-self: end; font-size: 11px; text-transform: uppercase; text-decoration: none; }
.cz-pdp .cz-pdp-variation-status { grid-column: 2; grid-row: 2; text-align: right; font-size: 12px; line-height: 1.4; }
.cz-pdp.product-container .product-info .cz-pdp-variation-status .stock { margin: 0; padding: 0; border: 0; font-size: 12px; line-height: 1.4; }
.cz-pdp.cz-stock-inline .product-info .woocommerce-variation-availability { display: none; }
.cz-pdp .cz-pdp-share-status { position: absolute; top: 100%; right: 0; z-index: 5; padding: 5px 8px; background: #fff; box-shadow: 0 2px 10px #0001; white-space: nowrap; }
@media (max-width: 849px) {
  .cz-pdp .cz-pdp-toolbar { width: 220px; }
  .cz-pdp.product-container .product-info table.variations tr { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
  .cz-pdp.product-container .product-info table.variations td.value { grid-template-columns: minmax(0, 150px) minmax(72px, 1fr); column-gap: 8px; }
  .cz-pdp.product-container .product-info table.variations select { font-size: 16px; }
}

@media (max-width:849px) {
  /* Use normal horizontal flow on mobile instead of old desktop cell offsets. */
  .cz-pdp .product-thumbnails .flickity-viewport { height: 72px !important; overflow-x: auto !important; overflow-y: hidden !important; touch-action: pan-x !important; }
  .cz-pdp .product-thumbnails .flickity-slider { position: relative !important; display: flex !important; width: max-content !important; height: auto !important; transform: none !important; left: 0 !important; }
  .cz-pdp .product-thumbnails .col { position: relative !important; left: auto !important; right: auto !important; flex: 0 0 80px; max-width: 80px !important; }
}
