.e-sofa39-product-hero { width: 100%; min-width: 0; }
.sofa39-hero {
    --sofa39-accent: var(--e-global-color-accent, #f60);
    --sofa39-price: #f45900;
    --sofa39-border: #ddd;
    max-width: 1366px; width: 100%; margin-inline: auto;
    color: #111; font-family: var(--e-global-typography-text-font-family, 'Open Sans'), sans-serif;
    font-size: 15px; line-height: 1.4;
}
.sofa39-hero *, .sofa39-hero *::before, .sofa39-hero *::after { box-sizing: border-box; }
.sofa39-hero a { color: var(--sofa39-accent); }
.sofa39-hero button, .sofa39-hero a, .sofa39-hero summary { -webkit-tap-highlight-color: transparent; }
.sofa39-hero :is(button, a, summary, input, select):focus-visible { outline: 3px solid #222; outline-offset: 3px; }
.sofa39-hero__breadcrumbs { margin: 0 0 24px; font-size: 13px; color: #777; overflow-wrap: anywhere; }
.sofa39-hero__breadcrumbs a { color: #555; text-decoration: none; }
.sofa39-hero__breadcrumbs a:hover { text-decoration: underline; }
.sofa39-hero__layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sofa39-hero__visual, .sofa39-hero__buy { min-width: 0; }
.sofa39-hero__buy { background: #f7f7f7; border: 1px solid #ededed; border-radius: 16px; padding: 26px; }
.sofa39-hero__heading { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.sofa39-hero h1 { margin: 0; flex: 1 1 260px; font-family: var(--e-global-typography-primary-font-family, Roboto), sans-serif; font-size: 30px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.sofa39-hero__stock { padding: 5px 10px; border-radius: 5px; background: #dfefdb; color: #176923; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sofa39-hero__stock[data-state='out'] { background: #eee; color: #555; }
.sofa39-hero__stock[data-state='order'] { background: #fff0dd; color: #7c4900; }
.sofa39-hero__summary { margin: 0 0 22px; color: #555; font-size: 14px; }
.sofa39-gallery { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; }
.sofa39-hero.product .sofa39-gallery.images { width: 100%; float: none; margin: 0; }
.sofa39-gallery--single, .sofa39-gallery--empty { grid-template-columns: minmax(0, 1fr); }
.sofa39-gallery__thumbs { display: flex; flex-direction: column; gap: 12px; max-height: 560px; overflow-y: auto; padding: 3px; scrollbar-width: thin; }
.sofa39-gallery__thumb { appearance: none; border: 1px solid transparent; background: #f4f4f4; padding: 3px; border-radius: 10px; width: 100%; flex-shrink: 0; cursor: pointer; aspect-ratio: 1; }
.sofa39-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; display: block; }
.sofa39-gallery__thumb[aria-pressed='true'] { border: 2px solid var(--sofa39-accent); padding: 2px; background: #fff; }
.sofa39-gallery__thumb:hover { background: #eee; }
.sofa39-gallery__stage { background: #fff; border: 1px solid #eee; border-radius: 16px; overflow: hidden; }
.sofa39-hero .sofa39-gallery__zoom { display: block; position: relative; aspect-ratio: auto; line-height: 0; }
.sofa39-hero .sofa39-gallery .wp-post-image { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; margin: 0; }
.sofa39-gallery--empty img { max-height: 500px; width: 100%; object-fit: contain; border-radius: 16px; }
.sofa39-gallery__dialog { position: fixed; padding: 44px 16px 16px; border: 0; border-radius: 12px; background: white; max-width: min(1100px, 94vw); max-height: 94vh; }
.sofa39-gallery__dialog::backdrop { background: rgb(0 0 0 / 65%); }
.sofa39-gallery__dialog img { display: block; max-width: 100%; max-height: 80vh; object-fit: contain; }
.sofa39-gallery__close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; color: #111; background: white; font-size: 28px; cursor: pointer; }
.sofa39-hero__benefits { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(var(--sofa39-benefits, 3), minmax(0, 1fr)); gap: 20px; }
.sofa39-hero__benefit { display: flex; gap: 12px; align-items: flex-start; min-width: 0; margin: 0; }
.sofa39-hero__benefit-icon { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.sofa39-hero__benefit h2 { margin: 0 0 6px; font-size: 14px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.sofa39-hero__benefit p { margin: 0; font-size: 12px; line-height: 1.4; color: #666; overflow-wrap: anywhere; }
.sofa39-hero.product form.cart { margin: 0 0 0 !important; padding: 0; }
.sofa39-hero table.variations { display: block; border: 0; margin: 20px 0 0; width: 100%; }
.sofa39-hero table.variations tbody, .sofa39-hero table.variations tr { display: block; width: 100%; }
.sofa39-hero table.variations :is(th, td) { display: block; border: 0; padding: 0 0 8px; background: transparent; text-align: left; width: 100%; }
.sofa39-hero table.variations label { font-size: 14px; font-weight: 700; }
.sofa39-hero table.variations select { width: 100%; min-height: 44px; border: 1px solid var(--sofa39-border); border-radius: 6px; background: #fff; }
.sofa39-hero .sofa39-hero__native-select { display: none; }
.sofa39-hero__options { display: flex; flex-wrap: wrap; gap: 8px; }
.sofa39-hero .sofa39-hero__option { appearance: none; min-width: 82px; min-height: 44px; padding: 10px 12px; background: #fff; color: #222; border: 1px solid var(--sofa39-border); border-radius: 6px; font: inherit; font-size: 13px; line-height: 1.2; cursor: pointer; }
.sofa39-hero .sofa39-hero__option[aria-pressed='true'] { border: 2px solid var(--sofa39-accent); padding: 9px 11px; background: #fff4eb; font-weight: 700; }
.sofa39-hero .sofa39-hero__option:hover:not(:disabled) { border-color: var(--sofa39-accent); }
.sofa39-hero .sofa39-hero__option:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.sofa39-hero .reset_variations { display: inline-block; font-size: 12px; margin-top: 8px; color: #666; }
.sofa39-hero__price { margin: 12px 0 18px; }
.sofa39-hero__price-before { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.sofa39-hero__price-before del { color: #7a7a7a; font-size: 24px; }
.sofa39-hero__price-current, .sofa39-hero__price-range { color: var(--sofa39-price); font-weight: 800; font-size: 36px; line-height: 1.2; font-family: var(--e-global-typography-primary-font-family, Roboto), sans-serif; }
.sofa39-hero__price-range { font-size: 28px; }
.sofa39-hero__price-range del { font-size: .7em; color: #7a7a7a; }
.sofa39-hero__price :is(ins, bdi) { background: transparent; text-decoration: none; }
.sofa39-hero__discount { border-radius: 4px; background: var(--sofa39-price); color: #fff; padding: 4px 9px; font-weight: 700; font-size: 14px; }
.sofa39-hero .woocommerce-variation-price { display: none; }
.sofa39-hero .woocommerce-variation-description { font-size: 13px; color: #555; }
.sofa39-hero .woocommerce-variation-availability { font-size: 13px; }
.sofa39-hero .woocommerce-variation-add-to-cart, .sofa39-hero form.cart:not(.variations_form) { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sofa39-hero .quantity { flex: 0 0 64px; margin: 0; }
.sofa39-hero .quantity input.qty { width: 64px; min-height: 54px; border: 1px solid var(--sofa39-border); border-radius: 8px; background: #fff; padding: 8px; }
.sofa39-hero .single_add_to_cart_button { flex: 1 1 190px; display: block; width: auto; min-height: 54px; margin: 0; padding: 16px 22px; border: 1px solid var(--sofa39-price); border-radius: 12px; background: var(--sofa39-price); color: #fff; font: inherit; font-weight: 700; line-height: 1.3; text-align: center; cursor: pointer; }
.sofa39-hero .single_add_to_cart_button:hover { background: #d74e00; border-color: #d74e00; color: #fff; }
.sofa39-hero .single_add_to_cart_button:is(.disabled, :disabled) { opacity: .5; cursor: not-allowed; }
.sofa39-hero__credit { display: block; margin-top: 8px; min-height: 48px; padding: 13px 20px; border: 1px solid var(--sofa39-accent); border-radius: 8px; text-decoration: none; text-align: center; font-weight: 600; background: transparent; }
.sofa39-hero__credit:hover { background: #fff3e9; }
.sofa39-hero__service { display: flex; gap: 16px; border-top: 1px solid var(--sofa39-border); margin-top: 22px; padding-top: 18px; font-size: 13px; }
.sofa39-hero__service-icon { flex: 0 0 28px; color: #222; }
.sofa39-hero__service p { margin: 0 0 6px; }
.sofa39-hero__service a { text-decoration: underline; text-underline-offset: 3px; }
.sofa39-hero__custom { border-top: 1px solid var(--sofa39-border); padding-top: 18px; margin-top: 18px; font-size: 13px; }
.sofa39-hero__custom summary { display: flex; gap: 16px; align-items: center; cursor: pointer; list-style: none; }
.sofa39-hero__custom summary::-webkit-details-marker { display: none; }
.sofa39-hero__custom-link { display: block; color: #666; text-decoration: underline; margin-top: 4px; }
.sofa39-hero__chevron { margin-left: auto; font-size: 26px; color: #777; transition: transform .2s; }
.sofa39-hero__custom[open] .sofa39-hero__chevron { transform: rotate(90deg); }
.sofa39-hero__custom-body { padding: 12px 0 0 44px; color: #555; }
.sofa39-hero__custom-body p { margin: 0 0 8px; }
@media (max-width: 1200px) {
    .sofa39-hero__layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
    .sofa39-hero__buy { padding: 20px; }
    .sofa39-gallery { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
    .sofa39-gallery--single, .sofa39-gallery--empty { grid-template-columns: minmax(0, 1fr); }
    .sofa39-hero__benefits { gap: 14px; }
    .sofa39-hero__benefit { flex-direction: column; gap: 8px; }
}
@media (max-width: 767px) {
    .sofa39-hero__layout { display: flex; flex-direction: column; gap: 22px; }
    .sofa39-hero__visual, .sofa39-hero__buy { width: 100%; }
    .sofa39-hero__visual { display: contents; }
    .sofa39-hero__buy { order: 2; }
    .sofa39-hero__breadcrumbs { margin-bottom: 16px; font-size: 12px; }
    .sofa39-hero__buy { padding: 20px 16px; }
    .sofa39-hero h1 { font-size: 28px; flex-basis: 210px; }
    .sofa39-gallery { display: flex; flex-direction: column; gap: 12px; width: 100%; order: 1; }
    .sofa39-gallery__stage { order: -1; width: 100%; }
    .sofa39-gallery__thumbs { flex-direction: row; width: 100%; max-height: none; overflow-x: auto; overflow-y: hidden; }
    .sofa39-gallery__thumb { width: 64px; height: 64px; flex-basis: 64px; }
    .sofa39-hero__benefits { order: 3; width: 100%; margin: 0; grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .sofa39-hero__benefit { flex-direction: row; gap: 12px; }
    .sofa39-hero__benefit p { font-size: 13px; }
    .sofa39-hero__price-current { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .sofa39-hero * { transition: none !important; } }

/* Keep WooCommerce/theme defaults from overriding the enhanced product controls. */
.sofa39-hero table.variations select.sofa39-hero__native-select { display: none !important; }
.sofa39-hero form.cart button.single_add_to_cart_button { background: #F45900 !important; color: #fff !important; border-radius: 12px; }
.sofa39-hero form.cart button.single_add_to_cart_button:hover { background: #d74e00 !important; }

/* Product readability and a single-item purchase form. */
.sofa39-hero { font-size: 16px; line-height: 1.5; }
.sofa39-hero form.cart .quantity { display: none !important; }
.sofa39-hero .sofa39-hero__breadcrumbs { font-size: 14px; }
.sofa39-hero .sofa39-hero__stock { font-size: 14px; }
.sofa39-hero .sofa39-hero__summary { font-size: 16px; line-height: 1.5; }
.sofa39-hero .sofa39-hero__benefit h2 { font-size: 17px; line-height: 1.35; }
.sofa39-hero .sofa39-hero__benefit p { font-size: 15px; line-height: 1.5; }
.sofa39-hero table.variations label { font-size: 16px; }
.sofa39-hero .sofa39-hero__option { font-size: 15px; }
.sofa39-hero .reset_variations { font-size: 14px; }
.sofa39-hero .woocommerce-variation-description,
.sofa39-hero .woocommerce-variation-availability,
.sofa39-hero .sofa39-hero__service,
.sofa39-hero .sofa39-hero__custom { font-size: 16px; line-height: 1.5; }
.sofa39-hero form.cart button.single_add_to_cart_button,
.sofa39-hero .sofa39-hero__credit { font-size: 17px; }

/* Mobile purchase hierarchy. The intro is populated with existing title/price nodes. */
.sofa39-hero__mobile-intro { display: none; }
@media (max-width: 767px) {
    .sofa39-hero__mobile-intro:not(:empty) { display: block; width: 100%; order: 0; }
    .sofa39-hero__mobile-intro .sofa39-hero__heading { margin-bottom: 8px; gap: 8px; }
    .sofa39-hero__mobile-intro .sofa39-hero__price { margin: 0; }
    .sofa39-hero__mobile-intro .sofa39-hero__price-current { font-size: 30px; }
    .sofa39-hero__mobile-intro .sofa39-hero__price-before del { font-size: 19px; }
    .sofa39-hero__layout { gap: 16px; }
    .sofa39-hero .sofa39-gallery { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
    .sofa39-hero .sofa39-gallery--single, .sofa39-hero .sofa39-gallery--empty { grid-template-columns: minmax(0, 1fr); }
    .sofa39-hero .sofa39-gallery__stage { order: 0; background: #fff; }
    .sofa39-hero .sofa39-gallery__thumbs { flex-direction: column; max-height: 190px; overflow-y: auto; overflow-x: hidden; padding: 0; gap: 8px; }
    .sofa39-hero .sofa39-gallery__thumb { width: 48px; height: 48px; flex-basis: 48px; }
    .sofa39-hero .sofa39-gallery .wp-post-image, .sofa39-hero .sofa39-gallery--empty img { height: clamp(140px, 42vw, 190px); width: 100%; object-fit: contain; }
    .sofa39-hero__buy { display: flex; flex-direction: column; padding: 16px; }
    .sofa39-hero__buy form.cart { order: 0; width: 100%; }
    .sofa39-hero__buy .sofa39-hero__credit { order: 1; }
    .sofa39-hero__buy .sofa39-hero__summary { order: 2; margin: 16px 0 0; }
    .sofa39-hero__buy .sofa39-hero__service { order: 3; }
    .sofa39-hero__buy .sofa39-hero__custom { order: 4; }
    .sofa39-hero table.variations { margin-top: 0; }
    .sofa39-hero .sofa39-hero__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .sofa39-hero .sofa39-hero__option { min-width: 0; padding-inline: 6px; }
    .sofa39-hero .sofa39-hero__option[aria-pressed='true'] { padding-inline: 5px; }
}

/* Finishing details: stable numbers, consistent actions, unclipped keyboard focus. */
.sofa39-hero__price { font-variant-numeric: tabular-nums; }
.sofa39-hero__price bdi { white-space: nowrap; }
.sofa39-hero .sofa39-gallery__zoom:focus-visible,
.sofa39-hero .sofa39-gallery__thumb:focus-visible { outline-offset: -4px; }
.sofa39-hero form.cart button.single_add_to_cart_button,
.sofa39-hero .sofa39-hero__credit { border-radius: 16px; }
.sofa39-hero form.cart button.single_add_to_cart_button { font-size: 19px; }
.sofa39-hero form.cart button.single_add_to_cart_button:is(.disabled, :disabled):hover { background: #f45900 !important; border-color: #f45900; }
.sofa39-hero .reset_variations { min-height: 44px; align-content: center; text-underline-offset: 3px; }
.sofa39-hero__custom summary { min-height: 44px; }
.sofa39-hero__benefit > div { min-width: 0; }
@media (min-width: 768px) and (max-width: 1200px) {
    .sofa39-hero__benefits { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .sofa39-hero__benefit { flex-direction: row; gap: 12px; }
}
@media (max-width: 767px) {
    .sofa39-hero__mobile-intro .sofa39-hero__heading { align-items: flex-start; }
    .sofa39-hero__mobile-intro h1 { flex-basis: 100%; }
    .sofa39-hero__mobile-intro .sofa39-hero__stock { padding: 3px 8px; }
}
