/* Scoped to the product body; existing shop header, footer and listings keep their design. */
.d4p {
  --d4p-gold: #b09665;
  --d4p-ink: #252527;
  --d4p-muted: #67676b;
  --d4p-line: #e5dfd5;
  --d4p-surface: #f5f3ef;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 26px 0 64px;
  color: var(--d4p-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: break-word;
}
.d4p *, .d4p *::before, .d4p *::after { box-sizing: border-box; }
.d4p [hidden] { display: none !important; }
.d4p button, .d4p select, .d4p input { font: inherit; }
.d4p a { color: var(--d4p-gold); }
.d4p a:focus-visible, .d4p button:focus-visible, .d4p input:focus-visible, .d4p select:focus-visible, .d4p-stage:focus-visible { outline: 3px solid var(--d4p-gold); outline-offset: 4px; }
.d4p button { cursor: pointer; }
.d4p-main-content { background: transparent !important; }
.d4p-main-content:before, .d4p-main-content .container:before { display: none !important; }
.d4p-breadcrumb .woocommerce-breadcrumb { margin: 0 0 20px; font-size: 13px; color: var(--d4p-muted); }
.d4p-breadcrumb .woocommerce-breadcrumb a { color: var(--d4p-muted); }
.d4p-product { width: 100%; }
.d4p-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 48px; }
.d4p-gallery { min-width: 0; width: 100%; }
.d4p-stage { position: relative; border-radius: 10px; overflow: hidden; background: var(--d4p-surface); aspect-ratio: 1 / 1; touch-action: pan-y; }
.d4p-main-image { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; padding: 0; user-select: none; }
.d4p-stage .d4p-arrow, .d4p-stage .d4p-zoom { position: absolute; width: 42px; height: 42px; border: 1px solid #eee; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--d4p-ink); padding: 0; box-shadow: 0 2px 8px #0000000c; display: grid; place-items: center; }
.d4p-stage .d4p-arrow { top: calc(50% - 21px); font-size: 32px; line-height: 1; }
.d4p-stage .d4p-prev { left: 14px; }
.d4p-stage .d4p-next { right: 14px; }
.d4p-stage .d4p-zoom { top: 14px; right: 14px; }
.d4p .d4p-js-only { visibility: hidden; }
.d4p-ready .d4p-js-only { visibility: visible; }
.d4p-counter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: #333333bb; border-radius: 20px; padding: 3px 15px; color: #fff; font-size: 13px; pointer-events: none; }
.d4p-thumbnails { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--d4p-gold) var(--d4p-surface); padding: 3px 2px 9px; }
.d4p-thumbnail { flex: 0 0 calc((100% - 50px) / 5.5); min-width: 72px; aspect-ratio: 1; border: 2px solid transparent; padding: 3px; border-radius: 8px; background: var(--d4p-surface); scroll-snap-align: start; overflow: hidden; }
.d4p-thumbnail.is-selected { border-color: var(--d4p-gold); }
.d4p-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 4px; }
.d4p-lightbox { width: min(1100px, 94vw); max-width: 94vw; height: min(900px, 90vh); max-height: 90vh; padding: 40px; border: 0; border-radius: 10px; background: #fff; }
.d4p-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.d4p-lightbox::backdrop { background: #000b; }
.d4p-lightbox img { width: 100%; height: 100%; object-fit: contain; }
.d4p-lightbox button { position: absolute; width: 40px; height: 40px; border: 1px solid var(--d4p-line); border-radius: 50%; background: #fff; font-size: 28px; color: var(--d4p-ink); padding: 0; line-height: 1; }
.d4p-lightbox-close { top: 8px; right: 8px; }
.d4p-lightbox-prev { top: calc(50% - 20px); left: 8px; }
.d4p-lightbox-next { top: calc(50% - 20px); right: 8px; }
.d4p div.product .d4p-summary.summary { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; min-width: 0; }
.d4p-category { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 1px 0 12px; color: var(--d4p-gold); }
.d4p-category a { color: inherit; }
.d4p div.product .product_title { font-family: inherit; color: var(--d4p-ink); font-weight: 700; font-size: clamp(26px, 2.55vw, 36px); line-height: 1.15; letter-spacing: -.6px; padding: 0; margin: 0 0 14px; }
.d4p div.product .woocommerce-product-rating { margin-bottom: 14px; font-size: 13px; }
.d4p div.product .star-rating { color: var(--d4p-gold); }
.d4p div.product .summary > .price { font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--d4p-ink); margin: 18px 0 6px; }
.d4p div.product .price del { font-size: 17px; color: var(--d4p-muted); }
.d4p div.product .price ins { background: transparent; text-decoration: none; }
.d4p .d4p-price-note { font-size: 12px; line-height: 1.5; color: var(--d4p-muted); margin: 0 0 20px; padding: 0; }
.d4p .d4p-price-note a { color: inherit; text-decoration: underline; }
.d4p .woocommerce-product-details__short-description { font-size: 15px; color: var(--d4p-muted); margin-bottom: 20px; }
.d4p .woocommerce-product-details__short-description p { padding-bottom: 8px; }
.d4p .d4p-delivery { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--d4p-ink); margin-bottom: 16px; }
.d4p .d4p-delivery svg { flex: 0 0 22px; }
.d4p div.product form.cart { width: 100%; margin: 20px 0 24px; border-top: 1px solid var(--d4p-line); padding-top: 20px; }
.d4p div.product form.cart .variations { border: 0 !important; margin: 0 0 12px; }
.d4p div.product form.cart .variations tbody, .d4p div.product form.cart .variations tr, .d4p div.product form.cart .variations td, .d4p div.product form.cart .variations th { display: block; width: 100%; border: 0 !important; padding: 0 !important; background: transparent; text-align: left; }
.d4p div.product form.cart .variations tr { margin-bottom: 22px; }
.d4p div.product form.cart .variations label { display: inline-block; font-weight: 700; color: var(--d4p-ink); margin-bottom: 9px; }
.d4p-selected-value { font-weight: 400; color: var(--d4p-muted); }
.d4p .variations select { width: 100%; max-width: 100%; min-width: 0; border: 1px solid var(--d4p-line); background: #fff; border-radius: 5px; color: var(--d4p-ink); padding: 10px; }
.d4p .d4p-enhanced-select { display: none !important; }
.d4p-choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.d4p .d4p-choice { position: relative; appearance: none; min-height: 42px; min-width: 90px; border: 1px solid var(--d4p-gold); border-radius: 5px; background: #fff; color: var(--d4p-ink); padding: 9px 13px; text-align: center; line-height: 1.2; font-size: 13px; }
.d4p-sizes .d4p-choice { flex: 1 0 calc(33.333% - 10px); }
.d4p .d4p-choice.is-selected { background: #f3eee4; border-color: var(--d4p-gold); box-shadow: inset 0 0 0 1px var(--d4p-gold); }
.d4p .d4p-choice:disabled { opacity: .35; cursor: not-allowed; border-color: #bbb; text-decoration: line-through; }
.d4p .d4p-color-choice { width: 46px; min-width: 46px; height: 46px; min-height: 46px; border: 1px solid #d0ccc5; padding: 3px; border-radius: 50%; display: grid; place-items: center; }
.d4p .d4p-color-choice.is-selected { background: #fff; box-shadow: 0 0 0 2px var(--d4p-gold); border-color: #fff; }
.d4p-swatch { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--d4p-swatch); border: 1px solid #0000000f; }
.d4p .d4p-check { display: none; position: absolute; top: 11px; left: 11px; width: 22px; height: 22px; background: #ffffffec; border-radius: 50%; color: #222; font-size: 15px; line-height: 22px; }
.d4p .d4p-choice.is-selected .d4p-check { display: block; }
.d4p div.product form.cart .reset_variations { font-size: 12px; margin-top: 10px; display: inline-block; text-decoration: underline; }
.d4p .woocommerce-variation-price { color: var(--d4p-ink); font-size: 22px; margin-bottom: 12px; }
.d4p-variation-price-synced .woocommerce-variation-price { display: none; }
.d4p .woocommerce-variation-description { color: var(--d4p-muted); margin-bottom: 12px; }
.d4p .woocommerce-variation-add-to-cart, .d4p form.cart:not(.variations_form):not(.grouped_form) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.d4p form.cart > :not(.quantity):not(.single_add_to_cart_button):not(input[type=hidden]) { flex-basis: 100%; }
.d4p div.product form.cart div.quantity { margin: 0; float: none; }
.d4p .quantity { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; flex: 0 0 auto; }
.d4p .quantity .qty { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; width: 44px !important; min-height: 46px; padding: 9px 2px !important; background: #fff !important; color: var(--d4p-ink) !important; text-align: center; -moz-appearance: textfield; }
.d4p .quantity .qty::-webkit-inner-spin-button, .d4p .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.d4p .d4p-quantity-step { width: 32px; height: 46px; border: 0; background: #f7f7f7; color: var(--d4p-ink); padding: 0; font-size: 19px; }
.d4p div.product form.cart .single_add_to_cart_button, .d4p a.single_add_to_cart_button { flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px !important; background: var(--d4p-gold) !important; border: 1px solid var(--d4p-gold) !important; border-radius: 6px !important; color: #fff !important; font-size: 16px !important; font-weight: 500; line-height: 1.25 !important; text-decoration: none; float: none; }
.d4p div.product form.cart .single_add_to_cart_button::after { display: none !important; }
.d4p div.product form.cart .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.d4p-cart-hint { width: 100%; font-size: 12px; color: var(--d4p-muted); margin: 0; }
.d4p .product_meta { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--d4p-line); padding-top: 18px; color: var(--d4p-muted); font-size: 12px; }
.d4p .d4p-information { border-top: 1px solid var(--d4p-line); margin-top: 36px; padding-top: 0; clear: both; }
.d4p div.product .woocommerce-tabs { margin-bottom: 36px; }
.d4p div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 25px !important; display: flex; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--d4p-line); background: transparent !important; }
.d4p div.product .woocommerce-tabs ul.tabs::before, .d4p div.product .woocommerce-tabs ul.tabs li::before, .d4p div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.d4p div.product .woocommerce-tabs ul.tabs li { border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; padding: 0 12px !important; background: transparent !important; }
.d4p div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--d4p-gold) !important; background: transparent !important; }
.d4p div.product .woocommerce-tabs ul.tabs li a { display: block; font-weight: 400; padding: 17px 0; color: var(--d4p-muted) !important; }
.d4p div.product .woocommerce-tabs ul.tabs li.active a { color: var(--d4p-ink) !important; font-weight: 700; }
.d4p div.product .woocommerce-tabs .panel { background: transparent !important; padding: 0 !important; margin: 0; border: 0; color: var(--d4p-muted); }
.d4p h2, .d4p h3 { font-family: inherit; color: var(--d4p-ink); }
.d4p .woocommerce-Tabs-panel h2 { font-size: 21px; font-weight: 700; }
.d4p .woocommerce-Tabs-panel p { padding-bottom: 12px; }
.d4p .woocommerce-Tabs-panel ul, .d4p .woocommerce-Tabs-panel ol { padding-left: 22px; }
.d4p .woocommerce-product-attributes { border: 1px solid var(--d4p-line); }
.d4p .woocommerce-product-attributes td, .d4p .woocommerce-product-attributes th { padding: 12px; }
.d4p .related.products, .d4p .up-sells { margin-top: 34px; }
.d4p ul.products li.product .woocommerce-loop-product__title { font-size: 15px; color: var(--d4p-ink); }
.d4p ul.products li.product .price { color: var(--d4p-ink); font-size: 17px; }
.d4p ul.products li.product img { border-radius: 7px; }
.d4p .screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; padding: 0; position: absolute !important; white-space: nowrap; }
@media (max-width: 1000px) {
  .d4p { width: calc(100% - 40px); }
  .d4p-grid { gap: 28px; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
  .d4p-sizes .d4p-choice { flex-basis: calc(50% - 10px); }
}
@media (max-width: 760px) {
  .d4p { width: calc(100% - 32px); padding-top: 16px; }
  .d4p-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .d4p-stage { aspect-ratio: 1 / 1; }
  .d4p-thumbnail { flex-basis: 18%; min-width: 62px; }
  .d4p div.product .product_title { font-size: 28px; }
  .d4p div.product .summary > .price { font-size: 28px; }
  .d4p-sizes .d4p-choice { flex-basis: calc(33.333% - 10px); }
  .d4p div.product .woocommerce-tabs ul.tabs { gap: 4px; }
  .d4p div.product .woocommerce-tabs ul.tabs li { padding: 0 7px !important; font-size: 13px; }
  .d4p-information { margin-top: 26px; }
  .d4p-lightbox { padding: 38px 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .d4p-thumbnails { scroll-behavior: smooth; }
  .d4p-choice, .d4p-arrow { transition: background .15s ease, border-color .15s ease; }
}
