/* XPM Product Premium v25 - Odoo 18 */
:root {
    --xpm20-navy: #262b4f;
    --xpm20-navy-dark: #191e39;
    --xpm20-gold: #bf8a00;
    --xpm20-ink: #15182b;
    --xpm20-muted: #667085;
    --xpm20-line: #e2e7ef;
    --xpm20-soft: #f7f8fb;
    --xpm20-card: #ffffff;
    --xpm20-radius: 14px;
    --xpm20-shadow: 0 14px 34px rgba(38, 43, 79, .07);
}

body.xpm-product-premium-v27 #product_detail.oe_website_sale.container {
    width: calc(100% - 48px) !important;
    max-width: 1440px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

body.xpm-product-premium-v27 #product_detail > .row:first-child {
    margin-right: 0;
    margin-bottom: 18px;
    margin-left: 0;
}

body.xpm-product-premium-v27 #product_detail_main.xpm20-main {
    display: grid !important;
    grid-template-columns: minmax(0, 56fr) minmax(430px, 44fr);
    gap: 30px;
    align-items: start;
    width: 100% !important;
    margin: 0 !important;
}

body.xpm-product-premium-v27 #product_detail_main.xpm20-main > .o_wsale_product_images,
body.xpm-product-premium-v27 #product_detail_main.xpm20-main > #product_details {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
}

/* GALERÍA */
body.xpm-product-premium-v27 #o-carousel-product {
    position: relative !important;
    top: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: clamp(500px, 36vw, 590px) !important;
    gap: 14px;
    width: 100%;
    margin: 0 !important;
    overflow: visible !important;
}

body.xpm-product-premium-v27 #o-carousel-product .o_carousel_product_outer {
    grid-row: 1;
    width: 100% !important;
    min-width: 0;
    overflow: hidden !important;
    border: 1px solid var(--xpm20-line);
    border-radius: var(--xpm20-radius);
    background: linear-gradient(145deg, #fff 0%, #fafbfc 100%);
    box-shadow: var(--xpm20-shadow);
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-inner,
body.xpm-product-premium-v27 #o-carousel-product .carousel-item,
body.xpm-product-premium-v27 #o-carousel-product .carousel-item > div {
    height: 100% !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-item {
    padding: 18px;
}

body.xpm-product-premium-v27 #o-carousel-product .product_detail_img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transform: scale(1.16);
    transform-origin: center;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-control-prev,
body.xpm-product-premium-v27 #o-carousel-product .carousel-control-next {
    top: 50%;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border: 1px solid var(--xpm20-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--xpm20-navy);
    opacity: 1;
    box-shadow: 0 5px 16px rgba(38, 43, 79, .08);
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-control-prev {
    left: 14px;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-control-next {
    right: 14px;
}

body.xpm-product-premium-v27 #o-carousel-product .o_carousel_product_indicators {
    grid-row: 2;
    width: 100% !important;
    min-width: 0;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    max-width: 100%;
    gap: 10px;
    overflow-x: auto;
    margin: 0 !important;
    padding: 0 0 5px !important;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #a4a9b6 transparent;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators::-webkit-scrollbar {
    height: 5px;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #a4a9b6;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators li,
body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators button,
body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators > * {
    width: 94px !important;
    height: 82px !important;
    min-width: 94px !important;
    flex: 0 0 94px !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--xpm20-line) !important;
    border-radius: 10px;
    background: #fff !important;
    opacity: 1 !important;
    scroll-snap-align: start;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators .active {
    border-color: var(--xpm20-navy) !important;
    box-shadow: 0 0 0 1px var(--xpm20-navy);
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 5px;
}

/* PANEL DERECHO */
body.xpm-product-premium-v27 #product_details.xpm20-details {
    color: var(--xpm20-ink);
}

body.xpm-product-premium-v27 #product_details > h1 {
    margin: 0 0 8px !important;
    color: var(--xpm20-ink);
    font-size: clamp(1.9rem, 2.25vw, 2.45rem) !important;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
    text-wrap: balance;
}

body.xpm-product-premium-v27 #product_details > .text-muted.mt-1.mb-2,
body.xpm-product-premium-v27 #product_details > .xpm20-reference {
    margin: 0 0 12px !important;
    color: #475467 !important;
    font-size: .88rem;
}

body.xpm-product-premium-v27 #product_details > span[itemprop="url"],
body.xpm-product-premium-v27 #product_details > span[itemprop="image"],
body.xpm-product-premium-v27 #product_details > input,
body.xpm-product-premium-v27 #contact_us_wrapper {
    display: none !important;
}

body.xpm-product-premium-v27 .xpm20-key-points {
    margin: 0 0 18px;
}

body.xpm-product-premium-v27 .xpm20-key-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    color: var(--xpm20-navy);
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

body.xpm-product-premium-v27 .xpm20-key-heading::before {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--xpm20-gold);
    color: #fff;
    content: "1";
    font-size: .82rem;
}

body.xpm-product-premium-v27 .xpm20-key-heading::after {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, var(--xpm20-gold), rgba(191, 138, 0, 0));
    content: "";
}

body.xpm-product-premium-v27 .xpm20-key-list {
    padding-left: 7px;
}

body.xpm-product-premium-v27 .xpm20-key-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 0;
}

body.xpm-product-premium-v27 .xpm20-key-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: var(--xpm20-navy);
    font-size: 1rem;
}

body.xpm-product-premium-v27 .xpm20-key-item strong,
body.xpm-product-premium-v27 .xpm20-key-item small {
    display: block;
}

body.xpm-product-premium-v27 .xpm20-key-item strong {
    margin-bottom: 2px;
    color: var(--xpm20-ink);
    font-size: .96rem;
    line-height: 1.28;
}

body.xpm-product-premium-v27 .xpm20-key-item small {
    color: #475467;
    font-size: .81rem;
    line-height: 1.45;
}

body.xpm-product-premium-v27 #product_details > .oe_structure {
    display: none !important;
}

body.xpm-product-premium-v27 #product_details > form {
    margin: 0 !important;
}

body.xpm-product-premium-v27 #product_details .product_price {
    margin: 0 0 10px !important;
}

body.xpm-product-premium-v27 #product_details .product_price h3 {
    margin: 0 !important;
    color: var(--xpm20-ink);
}

body.xpm-product-premium-v27 #product_details .product_price .oe_price {
    color: var(--xpm20-ink);
    font-size: clamp(2rem, 2.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.04em;
}

body.xpm-product-premium-v27 #product_details .product_price .h6 {
    margin-left: .35rem;
    color: #667085 !important;
    font-size: .78rem;
    font-weight: 500;
}

body.xpm-product-premium-v27 .xpm20-mini-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid var(--xpm20-line);
    border-radius: 10px;
    background: #fff;
}

body.xpm-product-premium-v27 .xpm20-mini-benefit {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 10px;
}

body.xpm-product-premium-v27 .xpm20-mini-benefit + .xpm20-mini-benefit {
    border-left: 1px solid var(--xpm20-line);
}

body.xpm-product-premium-v27 .xpm20-mini-benefit i {
    color: var(--xpm20-navy);
    font-size: 1rem;
}

body.xpm-product-premium-v27 .xpm20-mini-benefit strong,
body.xpm-product-premium-v27 .xpm20-mini-benefit small {
    display: block;
}

body.xpm-product-premium-v27 .xpm20-mini-benefit strong {
    color: var(--xpm20-ink);
    font-size: .72rem;
    line-height: 1.2;
}

body.xpm-product-premium-v27 .xpm20-mini-benefit small {
    margin-top: 2px;
    color: var(--xpm20-muted);
    font-size: .64rem;
    line-height: 1.25;
}

body.xpm-product-premium-v27 .xpm20-variants-hidden {
    display: none !important;
}

body.xpm-product-premium-v27 #o_wsale_cta_wrapper {
    display: grid !important;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: stretch !important;
}

body.xpm-product-premium-v27 #o_wsale_cta_wrapper > .css_quantity {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--xpm20-line);
    border-radius: 8px;
    background: #fff;
}

body.xpm-product-premium-v27 #o_wsale_cta_wrapper > .css_quantity .btn,
body.xpm-product-premium-v27 #o_wsale_cta_wrapper > .css_quantity .form-control {
    min-height: 50px;
    border: 0;
    border-radius: 0;
}

body.xpm-product-premium-v27 #o_wsale_cta_wrapper > #add_to_cart_wrap {
    display: contents !important;
}

body.xpm-product-premium-v27 #add_to_cart {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-color: var(--xpm20-navy);
    border-radius: 8px;
    background: var(--xpm20-navy);
    box-shadow: 0 9px 20px rgba(38, 43, 79, .16);
    font-size: .95rem;
    font-weight: 700;
}

body.xpm-product-premium-v27 #add_to_cart:hover,
body.xpm-product-premium-v27 #add_to_cart:focus {
    border-color: var(--xpm20-navy-dark);
    background: var(--xpm20-navy-dark);
}

body.xpm-product-premium-v27 .o_we_buy_now {
    grid-column: 1 / -1;
    grid-row: 2;
    display: inline-flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    border-radius: 8px;
    font-weight: 700;
}

body.xpm-product-premium-v27 #product_option_block {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
}

body.xpm-product-premium-v27 #product_option_block .btn-link,
body.xpm-product-premium-v27 .xpm20-share-button {
    color: #344054;
    font-size: .84rem;
}

body.xpm-product-premium-v27 .o_add_compare_dyn {
    display: none !important;
}

/* BARRA DE CONFIANZA */
body.xpm-product-premium-v27 .xpm20-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1440px;
    margin: 22px auto 16px;
    overflow: hidden;
    border: 1px solid var(--xpm20-line);
    border-radius: 12px;
    background: #fff;
}

body.xpm-product-premium-v27 .xpm20-trust-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}

body.xpm-product-premium-v27 .xpm20-trust-item + .xpm20-trust-item {
    border-left: 1px solid var(--xpm20-line);
}

body.xpm-product-premium-v27 .xpm20-trust-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f3f8;
    color: var(--xpm20-navy);
}

body.xpm-product-premium-v27 .xpm20-trust-item strong,
body.xpm-product-premium-v27 .xpm20-trust-item small {
    display: block;
}

body.xpm-product-premium-v27 .xpm20-trust-item strong {
    color: var(--xpm20-ink);
    font-size: .84rem;
}

body.xpm-product-premium-v27 .xpm20-trust-item small {
    margin-top: 2px;
    color: var(--xpm20-muted);
    font-size: .71rem;
    line-height: 1.3;
}

/* BLOQUES INFERIORES */
body.xpm-product-premium-v27 .xpm20-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto 18px;
}

body.xpm-product-premium-v27 .xpm20-story-card,
body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card {
    overflow: hidden;
    border: 1px solid var(--xpm20-line);
    border-radius: var(--xpm20-radius);
    background: #fff;
    box-shadow: 0 9px 26px rgba(38, 43, 79, .045);
}

body.xpm-product-premium-v27 .xpm20-card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px 11px;
    border-bottom: 1px solid var(--xpm20-line);
}

body.xpm-product-premium-v27 .xpm20-card-number {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--xpm20-gold);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
}

body.xpm-product-premium-v27 .xpm20-card-heading strong,
body.xpm-product-premium-v27 .xpm20-card-heading small {
    display: block;
}

body.xpm-product-premium-v27 .xpm20-card-heading strong {
    color: var(--xpm20-ink);
    font-size: 1rem;
}

body.xpm-product-premium-v27 .xpm20-card-heading small {
    color: var(--xpm20-muted);
    font-size: .72rem;
}

body.xpm-product-premium-v27 .xpm20-story-body {
    padding: 15px 17px 8px;
    color: #344054;
    font-size: .87rem;
    line-height: 1.68;
}

body.xpm-product-premium-v27 .xpm20-story-body p:last-child {
    margin-bottom: 0;
}

body.xpm-product-premium-v27 .xpm20-story-body > .oe_structure {
    display: block !important;
    margin: 0 !important;
}

body.xpm-product-premium-v27 .xpm20-story-body > .oe_structure > :last-child {
    margin-bottom: 0;
}

body.xpm-product-premium-v27 .xpm20-info-accordion {
    border-top: 1px solid var(--xpm20-line);
}

body.xpm-product-premium-v27 .xpm20-info-accordion .accordion-item {
    border: 0;
    border-bottom: 1px solid var(--xpm20-line);
}

body.xpm-product-premium-v27 .xpm20-info-accordion .accordion-item:last-child {
    border-bottom: 0;
}

body.xpm-product-premium-v27 .xpm20-info-accordion .accordion-button {
    padding: 12px 16px;
    color: var(--xpm20-ink);
    background: #fff;
    box-shadow: none;
    font-size: .87rem;
    font-weight: 700;
}

body.xpm-product-premium-v27 .xpm20-info-accordion .accordion-button:not(.collapsed) {
    color: var(--xpm20-navy);
    background: var(--xpm20-soft);
}

body.xpm-product-premium-v27 .xpm20-info-accordion .accordion-body {
    padding: 12px 16px 14px;
    color: #475467;
    font-size: .82rem;
    line-height: 1.6;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card {
    margin: 0 !important;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card > .accordion-item {
    border: 0;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .accordion-header {
    display: none !important;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .accordion-collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .accordion-body {
    padding: 16px !important;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card table,
body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    width: 100%;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card tr {
    display: grid;
    grid-template-columns: minmax(96px, 118px) minmax(0, 1fr);
    gap: 10px 14px;
    align-items: center;
    min-width: 0;
    min-height: 68px;
    padding: 12px 14px;
    border: 1px solid var(--xpm20-line);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfe 100%);
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card td {
    display: block;
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card td:first-child {
    color: #667085;
    font-size: .71rem;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.35;
    text-transform: uppercase;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card td:last-child {
    color: var(--xpm20-ink) !important;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

body.xpm-product-premium-v27 #o_product_terms_and_share {
    display: none !important;
}

/* RECOMENDACIONES */
body.xpm-product-premium-v27 .xpm20-related-heading,
body.xpm-product-premium-v27 .xpm20-instagram-heading {
    max-width: 1440px;
    margin: 20px auto 10px;
    color: var(--xpm20-ink);
}

body.xpm-product-premium-v27 .xpm20-related-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
}

body.xpm-product-premium-v27 .xpm20-related-heading h2 {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 750;
}

body.xpm-product-premium-v27 .xpm20-related-heading span {
    color: var(--xpm20-muted);
    font-size: .86rem;
}

body.xpm-product-premium-v27 .xpm20-instagram-heading {
    max-width: 1120px;
    margin-top: 12px;
    margin-bottom: 8px;
}

body.xpm-product-premium-v27 .xpm20-instagram-heading h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

body.xpm-product-premium-v27 .xpm20-instagram-heading span {
    display: block;
    margin-top: 2px;
    color: var(--xpm20-muted);
    font-size: .8rem;
}

body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products {
    max-width: 1440px;
    margin: 0 auto;
}

body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products .container {
    max-width: 1440px !important;
}

body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products .dynamic_snippet_template {
    min-height: 20px;
}

body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products .card {
    border: 1px solid var(--xpm20-line);
    border-radius: 12px;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(38, 43, 79, .08);
}

body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products .card .card-body {
    padding: 12px 14px;
}

body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products .card-title,
body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products h6 {
    color: var(--xpm20-ink);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
}

body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products .card-text,
body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products small {
    color: var(--xpm20-muted);
    font-size: .78rem;
}

body.xpm-product-premium-v27 .s_instagram_page .o_instagram_container .text-muted,
body.xpm-product-premium-v27 .s_instagram_page .o_instagram_container small {
    font-size: .8rem;
}

/* INSTAGRAM */
body.xpm-product-premium-v27 #oe_structure_website_sale_product_2 {
    margin-top: 10px !important;
}

body.xpm-product-premium-v27 .s_instagram_page {
    padding: 8px 0 18px;
    background: #fff !important;
}

body.xpm-product-premium-v27 .s_instagram_page .o_instagram_container {
    max-width: 1120px !important;
}

body.xpm-product-premium-v27 .s_instagram_page .o_instagram_container img {
    border-radius: 10px;
}

body.xpm-product-premium-v27 .xpm20-debug-badge {
    position: fixed;
    z-index: 99999;
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--xpm20-navy);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    body.xpm-product-premium-v27 #product_detail_main.xpm20-main {
        grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
        gap: 24px;
    }

    body.xpm-product-premium-v27 #o-carousel-product {
        grid-template-rows: minmax(455px, 43vw) !important;
    }

    body.xpm-product-premium-v27 .xpm20-mini-benefit {
        padding: 9px 7px;
    }
}

@media (max-width: 991.98px) {
    body.xpm-product-premium-v27 #product_detail.oe_website_sale.container {
        width: calc(100% - 30px) !important;
    }

    body.xpm-product-premium-v27 #product_detail_main.xpm20-main {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body.xpm-product-premium-v27 #o-carousel-product {
        grid-template-rows: minmax(430px, 68vw) !important;
    }

    body.xpm-product-premium-v27 .xpm20-trust-bar,
    body.xpm-product-premium-v27 .xpm20-lower-grid {
        width: calc(100% - 30px);
    }

    body.xpm-product-premium-v27 .xpm20-trust-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.xpm-product-premium-v27 .xpm20-trust-item:nth-child(3) {
        border-top: 1px solid var(--xpm20-line);
        border-left: 0;
    }

    body.xpm-product-premium-v27 .xpm20-trust-item:nth-child(4) {
        border-top: 1px solid var(--xpm20-line);
    }

    body.xpm-product-premium-v27 .xpm20-lower-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    body.xpm-product-premium-v27 #product_detail.oe_website_sale.container {
        width: calc(100% - 20px) !important;
    }

    body.xpm-product-premium-v27 #o-carousel-product {
        grid-template-rows: minmax(330px, 92vw) !important;
    }

    body.xpm-product-premium-v27 #o-carousel-product .carousel-item {
        padding: 8px;
    }

    body.xpm-product-premium-v27 #o-carousel-product .product_detail_img {
        transform: scale(1.03);
    }

    body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators li,
    body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators button,
    body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators > * {
        width: 76px !important;
        height: 66px !important;
        min-width: 76px !important;
        flex-basis: 76px !important;
    }

    body.xpm-product-premium-v27 #product_details > h1 {
        font-size: 1.72rem !important;
    }

    body.xpm-product-premium-v27 .xpm20-mini-benefits {
        grid-template-columns: 1fr;
    }

    body.xpm-product-premium-v27 .xpm20-mini-benefit + .xpm20-mini-benefit {
        border-top: 1px solid var(--xpm20-line);
        border-left: 0;
    }

    body.xpm-product-premium-v27 #o_wsale_cta_wrapper {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    body.xpm-product-premium-v27 .xpm20-trust-bar {
        grid-template-columns: 1fr;
        width: calc(100% - 20px);
    }

    body.xpm-product-premium-v27 .xpm20-trust-item + .xpm20-trust-item {
        border-top: 1px solid var(--xpm20-line);
        border-left: 0;
    }

    body.xpm-product-premium-v27 .xpm20-lower-grid {
        width: calc(100% - 20px);
    }

    body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card table,
    body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card tbody {
        grid-template-columns: 1fr;
    }

    body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card tr {
        grid-template-columns: 92px minmax(0, 1fr);
        min-height: 62px;
        padding: 11px 12px;
    }
}


/* v20: ficha técnica reconstruida fuera de la tabla nativa */
body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card > .xpm20-native-spec-hidden {
    display: none !important;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 16px;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-item {
    display: flex;
    min-width: 0;
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 13px 15px;
    border: 1px solid var(--xpm20-line);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfe 100%);
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-label {
    color: #667085;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.3;
    text-transform: uppercase;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-value {
    display: block;
    min-width: 0;
    color: var(--xpm20-ink);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

@media (max-width: 575.98px) {
    body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-item {
        min-height: 64px;
        padding: 11px 13px;
    }
}


/* v20: banda de miniaturas siempre debajo, nunca superpuesta */
body.xpm-product-premium-v27 #product_detail_main.xpm20-main > .o_wsale_product_images {
    display: block !important;
    position: relative !important;
    overflow: visible !important;
}

body.xpm-product-premium-v27 #o-carousel-product {
    margin-bottom: 0 !important;
}

/* v20: miniaturas visibles y controladas por XPM */
body.xpm-product-premium-v27 #o-carousel-product .o_carousel_product_indicators {
    display: none !important;
}

body.xpm-product-premium-v27 .o_wsale_product_images > .xpm20-thumbnail-rail {
    position: relative !important;
    z-index: 2;
    display: flex;
    clear: both;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    overflow-x: auto;
    margin: 14px 0 0 !important;
    padding: 2px 2px 8px;
    background: #fff;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #a4a9b6 transparent;
}

body.xpm-product-premium-v27 .o_wsale_product_images > .xpm20-thumbnail-rail::-webkit-scrollbar {
    height: 5px;
}

body.xpm-product-premium-v27 .o_wsale_product_images > .xpm20-thumbnail-rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #a4a9b6;
}

body.xpm-product-premium-v27 .o_wsale_product_images > .xpm20-thumbnail-rail .xpm20-thumbnail {
    width: 94px;
    height: 82px;
    min-width: 94px;
    flex: 0 0 94px;
    overflow: hidden;
    padding: 5px;
    border: 1px solid var(--xpm20-line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    opacity: .82;
    scroll-snap-align: start;
    transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

body.xpm-product-premium-v27 .o_wsale_product_images > .xpm20-thumbnail-rail .xpm20-thumbnail:hover,
body.xpm-product-premium-v27 .o_wsale_product_images > .xpm20-thumbnail-rail .xpm20-thumbnail:focus-visible {
    border-color: #9ba2b4;
    opacity: 1;
    transform: translateY(-1px);
}

body.xpm-product-premium-v27 .o_wsale_product_images > .xpm20-thumbnail-rail .xpm20-thumbnail.active {
    border-color: var(--xpm20-navy);
    box-shadow: 0 0 0 1px var(--xpm20-navy);
    opacity: 1;
}

body.xpm-product-premium-v27 .o_wsale_product_images > .xpm20-thumbnail-rail .xpm20-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* v20: ficha técnica en listado premium con bandas alternas */
body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card > .xpm20-native-spec-hidden {
    display: none !important;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-list {
    margin: 16px 18px 18px;
    overflow: hidden;
    border: 1px solid var(--xpm20-line);
    border-radius: 12px;
    background: #fff;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-row {
    display: grid;
    grid-template-columns: minmax(135px, .42fr) minmax(0, .58fr);
    gap: 18px;
    align-items: center;
    min-height: 48px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--xpm20-line);
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-row:nth-child(odd) {
    background: #fff;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-row:nth-child(even) {
    background: #f6f7fa;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-row:last-child {
    border-bottom: 0;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-label {
    color: #667085;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.35;
    text-transform: uppercase;
}

body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-value {
    min-width: 0;
    color: var(--xpm20-ink);
    font-size: .91rem;
    font-weight: 700;
    line-height: 1.42;
    text-align: left;
    overflow-wrap: break-word;
}

body.xpm-product-premium-v27 .xpm20-card-heading > strong {
    color: var(--xpm20-ink);
    font-size: 1rem;
    font-weight: 750;
}

@media (max-width: 575.98px) {
    body.xpm-product-premium-v27 .o_wsale_product_images > .xpm20-thumbnail-rail .xpm20-thumbnail {
        width: 76px;
        height: 66px;
        min-width: 76px;
        flex-basis: 76px;
    }

    body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-list {
        margin: 12px;
    }

    body.xpm-product-premium-v27 #product_accordion.xpm20-spec-card .xpm20-spec-row {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
        padding: 10px 12px;
    }
}

/* EDICIÓN DE PUNTOS CLAVE: visible solo para usuarios internos conectados */
body.xpm-product-premium-v27 .xpm20-key-points {
    position: relative;
}

body.xpm-product-premium-v27 .xpm20-key-edit {
    position: absolute;
    top: -2px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid var(--xpm20-line);
    border-radius: 999px;
    background: #fff;
    color: var(--xpm20-navy);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
    box-shadow: 0 3px 10px rgba(38, 43, 79, .06);
}

body.xpm-product-premium-v27 .xpm20-key-edit:hover,
body.xpm-product-premium-v27 .xpm20-key-edit:focus {
    border-color: var(--xpm20-navy);
    background: var(--xpm20-soft);
    color: var(--xpm20-navy-dark);
}

@media (max-width: 575.98px) {
    body.xpm-product-premium-v27 .xpm20-key-edit span {
        display: none;
    }
}

/* v21: limpieza total de los controles del carrusel.
   Se ocultan todos los iconos/textos internos del control nativo y se dibuja
   una única flecha con pseudo-elemento para eliminar cualquier rayita residual. */
body.xpm-product-premium-v27 #o-carousel-product .carousel-control-prev,
body.xpm-product-premium-v27 #o-carousel-product .carousel-control-next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    color: transparent !important;
    text-shadow: none !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-control-prev > *,
body.xpm-product-premium-v27 #o-carousel-product .carousel-control-next > * {
    display: none !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-control-prev::after,
body.xpm-product-premium-v27 #o-carousel-product .carousel-control-next::after {
    display: block !important;
    font-size: 34px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    color: var(--xpm20-navy) !important;
    text-indent: 0 !important;
    transform: translateY(-1px);
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-control-prev::after {
    content: '9';
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-control-next::after {
    content: 'A';
}

/* ==========================================================
   v20 ESTABILIZACIÓN: galería nativa, stock nativo e Instagram compacto
   ========================================================== */

/* La galería conserva un único carrusel: el nativo de Odoo. */
body.xpm-product-premium-v27 #product_detail_main.xpm20-main > .o_wsale_product_images {
    display: block !important;
    position: relative !important;
    overflow: visible !important;
}

body.xpm-product-premium-v27 #o-carousel-product {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: clamp(500px, 36vw, 590px) auto !important;
    gap: 14px !important;
    overflow: visible !important;
    margin: 0 !important;
}

body.xpm-product-premium-v27 #o-carousel-product .o_carousel_product_outer {
    grid-row: 1 !important;
    position: relative !important;
    z-index: 1;
    min-height: 0;
    overflow: hidden !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-item {
    height: 100% !important;
    padding: 18px !important;
}

body.xpm-product-premium-v27 #o-carousel-product .product_detail_img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

/* Miniaturas originales de Odoo, fuera de la imagen y debajo. */
body.xpm-product-premium-v27 #o-carousel-product .o_carousel_product_indicators {
    grid-row: 2 !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: clamp(8px, 0.7vw, 10px) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin: 0 !important;
    padding: 2px 2px 8px !important;
    background: #fff !important;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #a4a9b6 transparent;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators > [data-bs-slide-to] {
    position: relative !important;
    display: block !important;
    width: clamp(76px, 6.4vw, 88px) !important;
    height: clamp(68px, 5.6vw, 76px) !important;
    min-width: clamp(76px, 6.4vw, 88px) !important;
    flex: 0 0 clamp(76px, 6.4vw, 88px) !important;
    margin: 0 !important;
    padding: 5px !important;
    overflow: hidden !important;
    border: 1px solid var(--xpm20-line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    opacity: .84 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    scroll-snap-align: start;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators > [data-bs-slide-to].active {
    border-color: var(--xpm20-navy) !important;
    box-shadow: 0 0 0 1px var(--xpm20-navy) !important;
    opacity: 1 !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators img {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    object-fit: contain !important;
    pointer-events: none !important;
}

/* Elimina cualquier banda clonada que pudiera quedar en caché. */
body.xpm-product-premium-v27 .xpm17-thumbnail-rail,
body.xpm-product-premium-v27 .xpm20-thumbnail-rail {
    display: none !important;
}

/* Respeta el control de stock de website_sale_stock. */
body.xpm-product-premium-v27 #o_wsale_cta_wrapper.d-none,
body.xpm-product-premium-v27 form.out_of_stock #o_wsale_cta_wrapper,
body.xpm-product-premium-v27 #product_details.out_of_stock #o_wsale_cta_wrapper,
body.xpm-product-premium-v27 .xpm20-is-out-of-stock #o_wsale_cta_wrapper {
    display: none !important;
}

body.xpm-product-premium-v27 #o_wsale_cta_wrapper:not(.d-none) {
    display: grid !important;
}

body.xpm-product-premium-v27 .availability_messages {
    margin: 12px 0 16px !important;
}

body.xpm-product-premium-v27 .availability_messages:empty {
    display: none !important;
}

body.xpm-product-premium-v27 .availability_messages:not(:empty) {
    display: block !important;
}

body.xpm-product-premium-v27 .availability_messages > *:not(.xpm20-stock-card) {
    margin: 0 !important;
    padding: 13px 15px !important;
    border: 1px solid #ead7a4 !important;
    border-radius: 10px !important;
    background: #fffaf0 !important;
    color: #725400 !important;
}

body.xpm-product-premium-v27 .xpm20-stock-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #ead7a4;
    border-radius: 10px;
    background: #fffaf0;
    color: #725400;
}

body.xpm-product-premium-v27 .xpm20-stock-card i {
    font-size: 1.15rem;
}

body.xpm-product-premium-v27 .xpm20-stock-card strong,
body.xpm-product-premium-v27 .xpm20-stock-card small {
    display: block;
}

body.xpm-product-premium-v27 .xpm20-stock-card strong {
    color: #5f4700;
    font-size: .95rem;
}

body.xpm-product-premium-v27 .xpm20-stock-card small {
    margin-top: 2px;
    color: #80671c;
    font-size: .8rem;
}

/* Artículos sugeridos: no deja un encabezado huérfano. */
body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products:not(.xpm20-related-products-ready) {
    margin-top: 0 !important;
}

/* Instagram pasa a ser una franja secundaria. */
body.xpm-product-premium-v27 .xpm20-instagram-heading {
    display: flex;
    max-width: 960px !important;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 18px auto 8px !important;
    padding: 0 4px;
}

body.xpm-product-premium-v27 .xpm20-instagram-heading h2 {
    margin: 0 !important;
    font-size: 1rem !important;
}

body.xpm-product-premium-v27 .xpm20-instagram-heading small {
    display: block;
    margin-top: 2px;
    color: var(--xpm20-muted);
    font-size: .76rem;
}

body.xpm-product-premium-v27 .xpm20-instagram-heading a {
    color: var(--xpm20-navy);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

body.xpm-product-premium-v27 #oe_structure_website_sale_product_2.xpm20-instagram-wrapper {
    max-width: 960px !important;
    margin: 0 auto 18px !important;
}

body.xpm-product-premium-v27 .s_instagram_page.xpm20-instagram-compact {
    max-height: 390px;
    overflow: hidden;
    padding: 8px 0 12px !important;
    border-top: 1px solid var(--xpm20-line);
    background: #fff !important;
}

body.xpm-product-premium-v27 .s_instagram_page.xpm20-instagram-compact .o_instagram_container {
    max-width: 960px !important;
}

body.xpm-product-premium-v27 .s_instagram_page .xpm20-instagram-post-hidden {
    display: none !important;
}

body.xpm-product-premium-v27 .s_instagram_page .xpm20-instagram-post-visible img {
    max-height: 220px !important;
    object-fit: cover !important;
    border-radius: 9px !important;
}

@media (max-width: 991.98px) {
    body.xpm-product-premium-v27 #o-carousel-product {
        grid-template-rows: minmax(430px, 68vw) auto !important;
    }

    body.xpm-product-premium-v27 .xpm20-instagram-heading,
    body.xpm-product-premium-v27 #oe_structure_website_sale_product_2.xpm20-instagram-wrapper {
        width: calc(100% - 30px) !important;
    }
}

@media (max-width: 575.98px) {
    body.xpm-product-premium-v27 #o-carousel-product {
        grid-template-rows: minmax(330px, 92vw) auto !important;
    }

    body.xpm-product-premium-v27 #o-carousel-product .carousel-item {
        padding: 8px !important;
    }

    body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators > [data-bs-slide-to] {
        width: 76px !important;
        height: 66px !important;
        min-width: 76px !important;
        flex-basis: 76px !important;
    }

    body.xpm-product-premium-v27 .xpm20-instagram-heading {
        align-items: start;
    }

    body.xpm-product-premium-v27 .s_instagram_page.xpm20-instagram-compact {
        max-height: 330px;
    }
}

/* v20: oculta totalmente el contenedor de disponibilidad cuando no contiene mensaje. */
body.xpm-product-premium-v27 .availability_messages.xpm20-availability-empty,
body.xpm-product-premium-v27 .availability_messages.d-none {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    min-height: 0 !important;
}


/* v20: galería estabilizada en dos filas independientes */
body.xpm-product-premium-v27 #product_detail_main.xpm20-main > .o_wsale_product_images {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body.xpm-product-premium-v27 #o-carousel-product {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(440px, clamp(480px, 36vw, 590px)) auto !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.xpm-product-premium-v27 #o-carousel-product .o_carousel_product_outer {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-inner,
body.xpm-product-premium-v27 #o-carousel-product .carousel-item,
body.xpm-product-premium-v27 #o-carousel-product .carousel-item > div {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-item {
    padding: clamp(10px, 1.4vw, 18px) !important;
}

body.xpm-product-premium-v27 #o-carousel-product .product_detail_img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

body.xpm-product-premium-v27 #o-carousel-product .o_carousel_product_indicators {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: block !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators {
    position: static !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    gap: clamp(7px, .8vw, 10px) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 2px 2px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #a4a9b6 transparent;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators li,
body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators button,
body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators > * {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: clamp(72px, 7vw, 94px) !important;
    height: clamp(64px, 6vw, 82px) !important;
    min-width: clamp(72px, 7vw, 94px) !important;
    max-width: clamp(72px, 7vw, 94px) !important;
    flex: 0 0 clamp(72px, 7vw, 94px) !important;
    margin: 0 !important;
    padding: 5px !important;
    overflow: hidden !important;
    border: 1px solid var(--xpm20-line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    opacity: 1 !important;
    transform: none !important;
    scroll-snap-align: start;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 0 !important;
    object-fit: contain !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators .active {
    border-color: var(--xpm20-navy) !important;
    box-shadow: 0 0 0 1px var(--xpm20-navy) !important;
}

body.xpm-product-premium-v27 .xpm17-thumbnail-rail,
body.xpm-product-premium-v27 .xpm19-thumbnail-rail,
body.xpm-product-premium-v27 .xpm20-thumbnail-rail {
    display: none !important;
}

/* v20: acceso directo a Historia y características */
body.xpm-product-premium-v27 .xpm20-more-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -2px 0 18px;
    padding: 8px 14px;
    border: 1px solid rgba(191, 138, 0, .28);
    border-radius: 999px;
    background: rgba(191, 138, 0, .08);
    color: var(--xpm20-gold);
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

body.xpm-product-premium-v27 .xpm20-more-info:hover,
body.xpm-product-premium-v27 .xpm20-more-info:focus {
    border-color: var(--xpm20-gold);
    background: var(--xpm20-gold);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

body.xpm-product-premium-v27 .xpm20-more-info i {
    font-size: .72rem;
}

body.xpm-product-premium-v27 #historia-caracteristicas {
    scroll-margin-top: 110px;
}

@media (max-width: 1199.98px) {
    body.xpm-product-premium-v27 #o-carousel-product {
        grid-template-rows: minmax(420px, 48vw) auto !important;
    }
}

@media (max-width: 991.98px) {
    body.xpm-product-premium-v27 #o-carousel-product {
        grid-template-rows: minmax(380px, 66vw) auto !important;
    }
}

@media (max-width: 575.98px) {
    body.xpm-product-premium-v27 #o-carousel-product {
        grid-template-rows: minmax(310px, 88vw) auto !important;
        gap: 10px !important;
    }

    body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators li,
    body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators button,
    body.xpm-product-premium-v27 #o-carousel-product .carousel-indicators > * {
        width: 70px !important;
        height: 62px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        flex-basis: 70px !important;
    }

    body.xpm-product-premium-v27 .xpm20-more-info {
        margin-bottom: 12px;
    }
}


@media (max-width: 575.98px) {
    body.xpm-product-premium-v27 .xpm20-more-info {
        padding: 8px 12px;
        font-size: .8rem;
    }
}

/* ==========================================================
   v22: recomendaciones automáticas e Instagram compacto
   ========================================================== */
body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products.xpm22-native-related-hidden {
    display: none !important;
}

body.xpm-product-premium-v27 #oe_structure_website_sale_recommended_products:not(.xpm22-native-related-hidden) {
    display: block !important;
    width: calc(100% - 48px);
    max-width: 1440px;
    margin: 0 auto 18px;
}

body.xpm-product-premium-v27 .xpm22-native-related-heading {
    width: calc(100% - 48px);
    max-width: 1440px;
    margin: 24px auto 12px;
    padding-top: 22px;
    border-top: 1px solid var(--xpm20-line);
}

body.xpm-product-premium-v27 .xpm20-related-heading,
body.xpm-product-premium-v27 .xpm20-instagram-heading {
    display: none !important;
}

body.xpm-product-premium-v27 .xpm22-auto-related {
    width: calc(100% - 48px);
    max-width: 1440px;
    margin: 24px auto 18px;
    padding-top: 22px;
    border-top: 1px solid var(--xpm20-line);
}

body.xpm-product-premium-v27 .xpm22-section-heading,
body.xpm-product-premium-v27 .xpm22-instagram-copy {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

body.xpm-product-premium-v27 .xpm22-section-heading h2,
body.xpm-product-premium-v27 .xpm22-instagram-copy h2 {
    margin: 0;
    color: var(--xpm20-ink);
    font-size: 1.12rem;
    font-weight: 800;
}

body.xpm-product-premium-v27 .xpm22-section-heading small,
body.xpm-product-premium-v27 .xpm22-instagram-copy small {
    display: block;
    margin-top: 3px;
    color: var(--xpm20-muted);
    font-size: .78rem;
}

body.xpm-product-premium-v27 .xpm22-section-heading a,
body.xpm-product-premium-v27 .xpm22-instagram-copy a {
    color: var(--xpm20-navy);
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

body.xpm-product-premium-v27 .xpm22-related-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

body.xpm-product-premium-v27 .xpm22-related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--xpm20-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(38, 43, 79, .045);
    transition: transform .18s ease, box-shadow .18s ease;
}

body.xpm-product-premium-v27 .xpm22-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(38, 43, 79, .085);
}

body.xpm-product-premium-v27 .xpm22-related-image {
    display: flex;
    height: 165px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(180deg, #fff 0%, #fafbfe 100%);
}

body.xpm-product-premium-v27 .xpm22-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.xpm-product-premium-v27 .xpm22-related-body {
    padding: 12px 14px 14px;
    border-top: 1px solid var(--xpm20-line);
}

body.xpm-product-premium-v27 .xpm22-related-body small {
    display: block;
    margin-bottom: 5px;
    color: var(--xpm20-muted);
    font-size: .7rem;
    line-height: 1.3;
}

body.xpm-product-premium-v27 .xpm22-related-body h3 {
    min-height: 2.7em;
    margin: 0 0 9px;
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.35;
}

body.xpm-product-premium-v27 .xpm22-related-body h3 a {
    color: var(--xpm20-ink);
    text-decoration: none;
}

body.xpm-product-premium-v27 .xpm22-related-body strong {
    color: var(--xpm20-navy);
    font-size: .96rem;
}

body.xpm-product-premium-v27 #oe_structure_website_sale_product_2.xpm22-instagram-original-hidden {
    display: none !important;
}

body.xpm-product-premium-v27 .xpm22-instagram-strip {
    width: calc(100% - 48px);
    max-width: 1120px;
    margin: 18px auto 28px;
    padding: 16px 18px 18px;
    border: 1px solid var(--xpm20-line);
    border-radius: 14px;
    background: #fff;
}

body.xpm-product-premium-v27 .xpm22-instagram-posts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.xpm-product-premium-v27 .xpm22-instagram-posts a {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: var(--xpm20-soft);
}

body.xpm-product-premium-v27 .xpm22-instagram-posts img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

body.xpm-product-premium-v27 .xpm22-instagram-posts a:hover img {
    transform: scale(1.025);
}

@media (max-width: 991.98px) {
    body.xpm-product-premium-v27 .xpm22-auto-related,
    body.xpm-product-premium-v27 .xpm22-instagram-strip {
        width: calc(100% - 30px);
    }

    body.xpm-product-premium-v27 .xpm22-related-rail {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    body.xpm-product-premium-v27 .xpm22-related-card {
        width: 240px;
        min-width: 240px;
        scroll-snap-align: start;
    }

    body.xpm-product-premium-v27 .xpm22-instagram-posts {
        grid-template-columns: repeat(4, 180px);
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }
}

@media (max-width: 575.98px) {
    body.xpm-product-premium-v27 .xpm22-auto-related,
    body.xpm-product-premium-v27 .xpm22-instagram-strip {
        width: calc(100% - 20px);
    }

    body.xpm-product-premium-v27 .xpm22-section-heading,
    body.xpm-product-premium-v27 .xpm22-instagram-copy {
        align-items: start;
    }

    body.xpm-product-premium-v27 .xpm22-related-card {
        width: 215px;
        min-width: 215px;
    }

    body.xpm-product-premium-v27 .xpm22-related-image {
        height: 145px;
    }

    body.xpm-product-premium-v27 .xpm22-instagram-posts {
        grid-template-columns: repeat(4, 145px);
    }
}

/* ==========================================================
   v23 consolidada: carrusel relacionado, Instagram discreto,
   flechas estables y textos contextuales
   ========================================================== */

/* Nunca mostrar subtítulos bajo el título de recomendaciones. */
body.xpm-product-premium-v27 .xpm22-section-heading small,
body.xpm-product-premium-v27 .xpm22-native-related-heading small {
    display: none !important;
}

body.xpm-product-premium-v27 .xpm22-section-heading {
    align-items: center;
}

/* Carrusel compacto: una sola fila, cuatro tarjetas visibles en escritorio. */
body.xpm-product-premium-v27 .xpm23-related-carousel {
    position: relative;
}

body.xpm-product-premium-v27 .xpm22-related-rail {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #a4a9b6 transparent;
}

body.xpm-product-premium-v27 .xpm22-related-rail::-webkit-scrollbar {
    height: 5px;
}

body.xpm-product-premium-v27 .xpm22-related-rail::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #a4a9b6;
}

body.xpm-product-premium-v27 .xpm22-related-card {
    width: calc((100% - 42px) / 4);
    min-width: calc((100% - 42px) / 4);
    flex: 0 0 calc((100% - 42px) / 4);
    scroll-snap-align: start;
}

body.xpm-product-premium-v27 .xpm22-related-image {
    height: 150px;
}

body.xpm-product-premium-v27 .xpm23-related-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-top: -19px;
    padding: 0;
    border: 1px solid var(--xpm20-line);
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    box-shadow: 0 6px 18px rgba(38,43,79,.10);
    cursor: pointer;
}

body.xpm-product-premium-v27 .xpm23-related-prev { left: -18px; }
body.xpm-product-premium-v27 .xpm23-related-next { right: -18px; }

body.xpm-product-premium-v27 .xpm23-related-nav::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--xpm20-navy);
    border-bottom: 2px solid var(--xpm20-navy);
}

body.xpm-product-premium-v27 .xpm23-related-prev::after {
    transform: rotate(135deg) translate(-1px, -1px);
}

body.xpm-product-premium-v27 .xpm23-related-next::after {
    transform: rotate(-45deg) translate(-1px, -1px);
}

/* Flechas de la imagen principal dibujadas con CSS puro. */
body.xpm-product-premium-v27 #o-carousel-product .carousel-control-prev,
body.xpm-product-premium-v27 #o-carousel-product .carousel-control-next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    color: transparent !important;
    text-shadow: none !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-control-prev > *,
body.xpm-product-premium-v27 #o-carousel-product .carousel-control-next > * {
    display: none !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-control-prev::after,
body.xpm-product-premium-v27 #o-carousel-product .carousel-control-next::after {
    content: '' !important;
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    border-right: 2.5px solid var(--xpm20-navy) !important;
    border-bottom: 2.5px solid var(--xpm20-navy) !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-control-prev::after {
    transform: rotate(135deg) translate(-1px, -1px) !important;
}

body.xpm-product-premium-v27 #o-carousel-product .carousel-control-next::after {
    transform: rotate(-45deg) translate(-1px, -1px) !important;
}

/* Instagram pasa a ser un cierre secundario, no una sección protagonista. */
body.xpm-product-premium-v27 .xpm22-instagram-strip {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 18px;
    width: calc(100% - 48px);
    max-width: 900px;
    margin: 14px auto 24px;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: none;
}

body.xpm-product-premium-v27 .xpm22-instagram-copy {
    display: block;
    margin: 0;
}

body.xpm-product-premium-v27 .xpm22-instagram-copy h2 {
    font-size: .98rem;
}

body.xpm-product-premium-v27 .xpm22-instagram-copy small {
    font-size: .72rem;
}

body.xpm-product-premium-v27 .xpm22-instagram-copy a {
    display: inline-flex;
    margin-top: 8px;
    font-size: .75rem;
}

body.xpm-product-premium-v27 .xpm22-instagram-posts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.xpm-product-premium-v27 .xpm22-instagram-posts a {
    border-radius: 8px;
}

@media (max-width: 991.98px) {
    body.xpm-product-premium-v27 .xpm22-related-card {
        width: calc((100% - 12px) / 2);
        min-width: calc((100% - 12px) / 2);
        flex-basis: calc((100% - 12px) / 2);
    }

    body.xpm-product-premium-v27 .xpm23-related-prev { left: -10px; }
    body.xpm-product-premium-v27 .xpm23-related-next { right: -10px; }

    body.xpm-product-premium-v27 .xpm22-instagram-strip {
        width: calc(100% - 30px);
        grid-template-columns: 1fr;
        max-width: 720px;
    }
}

@media (max-width: 575.98px) {
    body.xpm-product-premium-v27 .xpm22-related-card {
        width: 82%;
        min-width: 82%;
        flex-basis: 82%;
    }

    body.xpm-product-premium-v27 .xpm23-related-nav {
        display: none;
    }

    body.xpm-product-premium-v27 .xpm22-instagram-strip {
        width: calc(100% - 20px);
        padding: 10px 12px;
    }

    body.xpm-product-premium-v27 .xpm22-instagram-posts {
        grid-template-columns: repeat(3, 108px);
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

/* v25: franja de Instagram propia, compacta y sin campos sobre website */
body.xpm-product-premium-v27 #oe_structure_website_sale_product_2,
body.xpm-product-premium-v27 .xpm25-instagram-original-hidden {
    display: none !important;
}

body.xpm-product-premium-v27 .xpm25-instagram-strip {
    width: calc(100% - 48px);
    max-width: 1180px;
    margin: 22px auto 36px;
    padding: 16px;
    border: 1px solid var(--xpm20-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(38, 43, 79, .04);
}

body.xpm-product-premium-v27 .xpm25-instagram-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

body.xpm-product-premium-v27 .xpm25-instagram-head h2 {
    margin: 0;
    color: var(--xpm20-ink);
    font-size: 1rem;
    font-weight: 760;
}

body.xpm-product-premium-v27 .xpm25-instagram-head small {
    display: block;
    margin-top: 2px;
    color: var(--xpm20-muted);
    font-size: .78rem;
}

body.xpm-product-premium-v27 .xpm25-instagram-head a {
    flex: 0 0 auto;
    color: var(--xpm20-navy);
    font-size: .82rem;
    font-weight: 750;
    text-decoration: none;
}

body.xpm-product-premium-v27 .xpm25-instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.xpm-product-premium-v27 .xpm25-instagram-grid a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--xpm20-soft);
}

body.xpm-product-premium-v27 .xpm25-instagram-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

body.xpm-product-premium-v27 .xpm25-instagram-grid a:hover img {
    transform: scale(1.025);
}

@media (max-width: 991.98px) {
    body.xpm-product-premium-v27 .xpm25-instagram-strip {
        width: calc(100% - 30px);
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    body.xpm-product-premium-v27 .xpm25-instagram-strip {
        width: calc(100% - 20px);
        margin-bottom: 26px;
        padding: 13px;
    }

    body.xpm-product-premium-v27 .xpm25-instagram-head {
        align-items: flex-start;
    }

    body.xpm-product-premium-v27 .xpm25-instagram-head small {
        display: none;
    }

    body.xpm-product-premium-v27 .xpm25-instagram-grid {
        display: flex;
        gap: 9px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    body.xpm-product-premium-v27 .xpm25-instagram-grid a {
        width: 132px;
        min-width: 132px;
        flex: 0 0 132px;
        scroll-snap-align: start;
    }
}

/* ================================================================
   v27 - BLOQUE NATIVO DE INSTAGRAM, COMPACTO Y AUTOACTUALIZABLE
   ================================================================ */
body.xpm-product-premium-v27 .xpm25-instagram-strip,
body.xpm-product-premium-v27 .xpm22-instagram-strip {
    display: none !important;
}

body.xpm-product-premium-v27 #oe_structure_website_sale_product_2.xpm26-instagram-wrapper {
    display: block !important;
    max-width: 1120px;
    margin: 28px auto 18px !important;
    padding: 0 18px !important;
}

body.xpm-product-premium-v27 .s_instagram_page.xpm26-instagram-compact {
    display: block !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px 18px 18px !important;
    border: 1px solid #e6e9f1;
    border-radius: 18px;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(38, 43, 79, .05);
    overflow: hidden;
}

body.xpm-product-premium-v27 .s_instagram_page.xpm26-instagram-compact .o_instagram_container {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Cabecera del perfil nativo: se conserva, pero pierde protagonismo. */
body.xpm-product-premium-v27 .s_instagram_page.xpm26-instagram-compact .o_instagram_container > :first-child {
    margin: 0 0 12px !important;
    padding: 0 !important;
    min-height: 0 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

body.xpm-product-premium-v27 .s_instagram_page.xpm26-instagram-compact .o_instagram_container > :first-child img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    min-width: 48px !important;
    object-fit: cover !important;
}

body.xpm-product-premium-v27 .s_instagram_page.xpm26-instagram-compact .text-muted,
body.xpm-product-premium-v27 .s_instagram_page.xpm26-instagram-compact small {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

body.xpm-product-premium-v27 .xpm26-instagram-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.xpm-product-premium-v27 .xpm26-instagram-post-visible {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: #f5f6fa !important;
}

body.xpm-product-premium-v27 .xpm26-instagram-post-hidden {
    display: none !important;
}

body.xpm-product-premium-v27 .xpm26-instagram-post-visible img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    transition: transform .2s ease !important;
}

body.xpm-product-premium-v27 .xpm26-instagram-post-visible:hover img {
    transform: scale(1.025);
}

@media (max-width: 767.98px) {
    body.xpm-product-premium-v27 #oe_structure_website_sale_product_2.xpm26-instagram-wrapper {
        margin-top: 20px !important;
        padding: 0 12px !important;
    }

    body.xpm-product-premium-v27 .s_instagram_page.xpm26-instagram-compact {
        padding: 13px 12px 14px !important;
        border-radius: 14px;
    }

    body.xpm-product-premium-v27 .xpm26-instagram-grid {
        display: flex !important;
        gap: 10px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 2px !important;
    }

    body.xpm-product-premium-v27 .xpm26-instagram-grid::-webkit-scrollbar {
        display: none;
    }

    body.xpm-product-premium-v27 .xpm26-instagram-post-visible {
        flex: 0 0 76% !important;
        scroll-snap-align: start;
    }
}
