/* Retail product page: Olivenmeer branding, native WooCommerce forms and real product data. */
body.omeds-product .omeds-product-detail {
    --ompd-gap: clamp(28px, 4vw, 56px);
    /* El módulo tipográfico global usa esta variable también en los encabezados. */
    --oma-font-display: var(--omeds-sans);
    --omeds-text: #252b27;
    --omeds-muted: #626962;
    padding-bottom: 40px;
    background: #fff;
    color: var(--omeds-text);
    font-family: var(--omeds-sans);
}

body.omeds-product .omeds-product-detail > .omeds-container {
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px;
}

.omeds-product-detail .omeds-product-navigation {
    padding-top: 20px;
    padding-bottom: 24px;
}

.omeds-product-navigation .omeds-breadcrumbs {
    margin: 0;
    color: var(--omeds-muted);
    font-size: 12px;
    line-height: 1.6;
}

body.omeds-product .omeds-product-detail .omeds-product-shell {
    padding-top: 0;
    padding-bottom: 72px;
}

body.omeds-product .omeds-product-detail div.product {
    display: block;
}

body.omeds-product .omeds-product-detail .product-entry-wrapper {
    width: 100%;
    max-width: none;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas:
        "gallery heading"
        "gallery summary";
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: var(--ompd-gap);
    row-gap: 16px;
}

body.omeds-product .omeds-product-detail div.product div.images {
    grid-area: gallery;
    width: 100%;
    position: sticky;
    top: calc(var(--omeds-header-height) + 24px);
    min-height: 0;
    padding: 20px;
    border: 0;
    border-radius: 0;
    background: #fff;
}

body.omeds-product .omeds-product-detail div.product div.images img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
}

body.omeds-product .omeds-product-detail div.product div.summary {
    grid-area: summary;
    width: 100%;
    margin-inline-start: 0;
    min-width: 0;
    padding: 20px 24px;
    border: 1px solid #e2e7df;
    border-radius: 10px;
    background: #f7f9f5;
    box-shadow: none;
}

.omeds-product-detail .omeds-product-intro {
    grid-area: heading;
    min-width: 0;
    margin: 0;
    padding-top: 4px;
}

.omeds-product-intro .omeds-kicker {
    margin: 0 0 8px;
    color: var(--omeds-green-mid);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

body.omeds-product .omeds-product-detail h1.omeds-product-title {
    margin: 0 0 14px;
    color: var(--omeds-text);
    font-family: var(--omeds-sans);
    font-size: clamp(26px, 2.3vw, 34px);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.025em;
    overflow-wrap: break-word;
}

.omeds-product-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e9efe3;
    color: #33492e;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
}

.omeds-product-availability > span {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
}

.omeds-product-availability.is-soldout {
    background: #eaece8;
    color: #50594f;
}

.omeds-product-availability.is-inquiry {
    background: #f4ebd8;
    color: #725323;
}

body.omeds-product .omeds-product-detail .summary.entry-summary > p.price:not(.price-unit) {
    margin: 0 0 8px;
    color: var(--omeds-green);
    font-family: var(--omeds-sans);
    font-size: clamp(30px, 2.6vw, 38px);
    font-weight: 700;
    line-height: 1.15;
}

.omeds-product-detail .summary > .price:not(.price-unit) > .amount,
.omeds-product-detail .summary > .price:not(.price-unit) ins > .amount {
    font-size: inherit;
}

.omeds-product-detail .summary > .price del {
    margin-right: 8px;
    color: var(--omeds-muted);
    font-size: 0.65em;
    opacity: 1;
}

.omeds-product-detail .summary > .price ins {
    background: transparent;
    text-decoration: none;
}

body.omeds-product .omeds-product-detail .summary > .price.price-unit,
.omeds-product-detail .summary > .om-price-per-liter,
.omeds-product-detail .summary .legal-price-info {
    margin-top: 6px;
    margin-bottom: 6px;
    color: var(--omeds-muted);
    font-family: var(--omeds-sans);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.omeds-product-detail .summary > .price.price-unit .amount,
.omeds-product-detail .summary > .price.price-unit del {
    font-size: inherit;
}

.omeds-product-detail .summary:has(> .price-unit) > .om-price-per-liter {
    display: none;
}

.omeds-product-detail .summary > .om-sku {
    margin: 12px 0 0;
    color: var(--omeds-muted);
    font-size: 12px;
    line-height: 1.5;
}

.omeds-product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.omeds-product-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #b5c1ae;
    border-radius: 10px;
    color: var(--omeds-green);
    font-family: var(--omeds-sans);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.omeds-product-links a:hover {
    border-color: var(--omeds-green);
    background: #e9efe3;
    color: var(--omeds-green);
}

.omeds-product-detail .omeds-product-anchor {
    height: 0;
    margin: 0;
    padding: 0;
    scroll-margin-top: calc(var(--omeds-header-height) + 28px);
}

body.omeds-product .omeds-product-detail .woocommerce-product-details__short-description {
    margin-top: 18px;
    margin-bottom: 16px;
    color: var(--omeds-text);
    font-size: 16px;
    line-height: 1.65;
}

.omeds-product-detail .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

.omeds-product-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
    gap: 16px;
    margin: 0 0 18px;
    padding: 14px 0;
    border-top: 1px solid var(--omeds-line);
    border-bottom: 1px solid var(--omeds-line);
}

.omeds-product-facts dt {
    margin-bottom: 5px;
    color: var(--omeds-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.omeds-product-facts dd {
    margin: 0;
    color: var(--omeds-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.omeds-product-detail .ct-product-divider {
    display: none;
}

.omeds-product-detail.is-soldout .ct-product-add-to-cart > .stock.out-of-stock {
    display: none;
}

body.omeds-product .omeds-product-detail div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 18px;
}

body.omeds-product .omeds-product-detail div.product form.cart .single_add_to_cart_button {
    min-height: 52px;
    padding: 14px 24px;
    flex: 1 1 180px;
    border-radius: 7px;
    font-family: var(--omeds-sans);
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

.omeds-product-detail .om-restock {
    margin-top: 0;
    padding: 20px;
    border: 1px solid #dce3d6;
    border-radius: 8px;
    background: #fff;
}

.omeds-product-detail .om-restock__title {
    margin: 0 0 12px;
    color: var(--omeds-green);
    font-family: var(--omeds-sans);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.35;
}

.omeds-product-detail .om-restock__intro {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.65;
}

.omeds-product-detail .om-restock :is(label, input, button) {
    font-family: var(--omeds-sans);
}

.omeds-product-detail .om-restock__field label {
    font-size: 13px;
    font-weight: 600;
}

.omeds-product-detail .om-restock__field input {
    min-height: 46px;
    border-color: #aab4a6;
    border-radius: 9px;
    background: #fff;
    font-size: 16px;
}

.omeds-product-detail .om-restock__consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--omeds-muted);
    font-size: 12px;
    line-height: 1.6;
}

.omeds-product-detail .om-restock__consent input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--omeds-green);
}

.omeds-product-detail .om-restock__submit .button {
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 9px;
    background: var(--omeds-green);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

body.omeds-product .omeds-product-detail #vorbestellung-anfragen {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
}

.omeds-product-detail .om-inquiry-form-heading .om-eyebrow {
    margin-bottom: 10px;
    color: #725323;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.omeds-product-detail .om-inquiry-form-heading h2 {
    margin: 0 0 12px;
    font-family: var(--omeds-sans);
    font-size: 20px;
    font-weight: 650;
    line-height: 1.3;
}

.omeds-product-detail .om-inquiry-form-heading > p:last-child {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.65;
}

body.omeds-product .omeds-product-detail .om-inquiry-form {
    margin: 22px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--omeds-sans);
    font-size: 13px;
    line-height: 1.6;
}

.omeds-product-detail .om-inquiry-form .om-honeypot {
    display: none;
}

.omeds-product-detail .om-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.omeds-product-detail .om-inquiry-form p {
    margin: 0 0 18px;
}

.omeds-product-detail .om-inquiry-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--omeds-text);
    font-family: var(--omeds-sans);
    font-size: 13px;
    font-weight: 600;
}

.omeds-product-detail .om-inquiry-form :is(input:not([type="checkbox"]), textarea) {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #b7ae99;
    border-radius: 9px;
    background: #fff;
    color: var(--omeds-text);
    font-family: var(--omeds-sans);
    font-size: 16px;
}

.omeds-product-detail .om-inquiry-form .om-privacy-field label {
    font-size: 12px;
    font-weight: 400;
}

.omeds-product-detail .om-inquiry-form input[type="checkbox"] {
    margin-right: 6px;
    accent-color: var(--omeds-green);
}

.omeds-product-detail .om-inquiry-form button {
    min-height: 48px;
    border-radius: 9px;
    background: var(--omeds-green);
    color: #fff;
    font-family: var(--omeds-sans);
    font-size: 13px;
}

.omeds-product-detail .om-inquiry-form .om-form-small {
    margin: 12px 0 0;
    color: var(--omeds-muted);
    font-size: 11px;
}

.omeds-product-detail .omeds-soldout-actions {
    margin-top: 18px;
    padding-top: 0;
    border-top: 0;
}

.omeds-product-detail .omeds-soldout-actions > p {
    display: none;
}

.omeds-product-detail .omeds-soldout-actions .omeds-primary-button {
    min-height: 44px;
    border: 1px solid #c3cbbd;
    border-radius: 10px;
    background: transparent;
    color: var(--omeds-green);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.omeds-product-detail .omeds-product-contact {
    margin-top: 24px;
    padding-top: 22px;
    font-size: 14px;
    line-height: 1.65;
}

.omeds-product-detail .omeds-product-contact .omeds-external-note {
    font-size: 11px;
    line-height: 1.6;
}

body.omeds-product .omeds-product-detail .woocommerce-tabs {
    margin-top: 48px;
    padding-top: 0;
    border-top: 0;
}

body.omeds-product .omeds-product-detail div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 28px;
    overflow: visible;
    margin: 0 0 28px;
    padding: 0;
    border-top: 1px solid var(--omeds-line);
    border-bottom: 1px solid var(--omeds-line);
    background: #fff;
}

body.omeds-product .omeds-product-detail div.product .woocommerce-tabs ul.tabs li {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body.omeds-product .omeds-product-detail div.product .woocommerce-tabs ul.tabs li::before,
body.omeds-product .omeds-product-detail div.product .woocommerce-tabs ul.tabs li::after,
body.omeds-product .omeds-product-detail div.product .woocommerce-tabs ul.tabs::before,
body.omeds-product .omeds-product-detail div.product .woocommerce-tabs ul.tabs::after {
    display: none;
}

body.omeds-product .omeds-product-detail div.product .woocommerce-tabs ul.tabs li a {
    min-height: 52px;
    padding: 16px 0;
    border-bottom: 3px solid transparent;
    color: var(--omeds-muted);
    font-family: var(--omeds-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

body.omeds-product .omeds-product-detail div.product .woocommerce-tabs ul.tabs li.active a,
body.omeds-product .omeds-product-detail div.product .woocommerce-tabs ul.tabs li a:hover {
    border-bottom-color: var(--omeds-green);
    color: var(--omeds-green);
}

body.omeds-product .omeds-product-detail .woocommerce-Tabs-panel {
    max-width: 900px;
    color: var(--omeds-text);
    font-family: var(--omeds-sans);
    font-size: 15px;
    line-height: 1.7;
}

.omeds-product-detail .woocommerce-Tabs-panel :is(h2, h3) {
    font-family: var(--omeds-sans);
    font-size: 22px;
    font-weight: 650;
    line-height: 1.35;
}

.omeds-product-detail .woocommerce-Tabs-panel h3 {
    margin-top: 24px;
    font-size: 17px;
}

.omeds-product-detail .woocommerce-Tabs-panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.omeds-product-detail .woocommerce-Tabs-panel caption {
    padding: 12px 16px;
    background: #edf1e9;
    color: var(--omeds-text);
    font-weight: 650;
    text-align: left;
}

.omeds-product-detail .woocommerce-Tabs-panel :is(th, td) {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e7df;
    text-align: left;
    overflow-wrap: anywhere;
}

.omeds-product-detail .woocommerce-Tabs-panel tr:nth-child(even) {
    background: #f7f9f5;
}

.omeds-product-detail .woocommerce-Tabs-panel .omeds-product-facts {
    max-width: 620px;
}

.omeds-product-detail :is(a, button, input):focus-visible {
    outline: 2px solid var(--omeds-green);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    body.omeds-product .omeds-product-detail .product-entry-wrapper {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "heading" "gallery" "summary";
        grid-template-rows: auto;
        gap: 20px;
    }

    body.omeds-product .omeds-product-detail div.product div.images {
        position: relative;
        top: auto;
        max-width: 620px;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 0;
    }
}

@media (max-width: 680px) {
    .omeds-product-detail .omeds-product-navigation {
        padding-top: 18px;
        padding-bottom: 20px;
    }

    .omeds-product-navigation .omeds-breadcrumbs {
        font-size: 11px;
    }

    body.omeds-product .omeds-product-detail div.product div.images {
        padding: 12px;
        border-radius: 0;
    }

    body.omeds-product .omeds-product-detail div.product div.images img {
        max-height: 320px;
    }

    body.omeds-product .omeds-product-detail h1.omeds-product-title {
        margin-bottom: 14px;
        font-size: 26px;
        line-height: 1.2;
    }

    .omeds-product-detail .om-restock,
    body.omeds-product .omeds-product-detail #vorbestellung-anfragen {
        padding: 20px;
    }

    .omeds-product-detail .om-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .omeds-product-detail .om-restock__title {
        font-size: 18px;
    }

    body.omeds-product .omeds-product-detail > .omeds-container {
        width: calc(100% - 28px);
    }

    body.omeds-product .omeds-product-detail div.product div.summary {
        padding: 18px;
    }

    body.omeds-product .omeds-product-detail .woocommerce-tabs {
        margin-top: 44px;
    }
}
