.pcmad-ficha-producto #main-content #left-area .pcmad-ficha-layout {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(22px, 5vw, 66px);
    row-gap: 30px;
}

.pcmad-ficha-producto .pcmad-ficha-layout::before,
.pcmad-ficha-producto .pcmad-ficha-layout::after {
    display: none;
}

.pcmad-ficha-producto #main-content .pcmad-ficha-layout > :is(.woocommerce-product-gallery, .summary) {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.pcmad-ficha-producto .pcmad-ficha-layout > :not(.woocommerce-product-gallery, .summary) {
    grid-column: 1 / -1;
    min-width: 0;
}

.pcmad-ficha-producto .pcmad-ficha-layout .woocommerce-product-gallery {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
}

.pcmad-ficha-producto .pcmad-ficha-layout .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
    height: clamp(260px, 30vw, 395px);
    padding: 12px;
    object-fit: contain;
}

@media (min-width: 981px) {
    .pcmad-ficha-producto.pcmad-store-shell #main-content > .container {
        width: var(--pcm-content);
        max-width: none;
    }

    .pcmad-ficha-producto #main-content .pcmad-ficha-layout > .clearfix:has(> .woocommerce-product-gallery):has(> .summary) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        column-gap: clamp(22px, 5vw, 66px);
    }

    .pcmad-ficha-producto #main-content .pcmad-ficha-layout > .clearfix:has(> .woocommerce-product-gallery):has(> .summary)::after { content: none; }

    .pcmad-ficha-producto #main-content .pcmad-ficha-layout > .clearfix > :is(.woocommerce-product-gallery, .summary) {
        float: none;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    @supports (grid-template-rows: subgrid) {
        .pcmad-ficha-producto #main-content .pcmad-ficha-layout > .clearfix:has(> .woocommerce-product-gallery):has(> .summary) {
            grid-template-rows: auto auto;
            row-gap: 12px;
        }

        .pcmad-ficha-producto #main-content .pcmad-ficha-layout > .clearfix > .summary {
            display: grid;
            grid-template-rows: subgrid;
            grid-column: 2;
            grid-row: 1 / span 2;
            align-self: stretch;
        }

        .pcmad-ficha-producto #main-content .pcmad-ficha-layout > .clearfix > .woocommerce-product-gallery {
            display: flex;
            flex-direction: column;
            grid-column: 1;
            grid-row: 1;
            align-self: stretch;
            min-height: 240px;
            contain: size;
        }

        .pcmad-ficha-producto .woocommerce-product-gallery > :is(.flex-viewport, .woocommerce-product-gallery__wrapper) {
            flex: 1 1 0;
            min-height: 0;
            height: auto !important;
        }

        .pcmad-ficha-producto .woocommerce-product-gallery :is(.flex-viewport .woocommerce-product-gallery__wrapper, .woocommerce-product-gallery__image, .woocommerce-product-gallery__image > a) {
            height: 100%;
        }

        .pcmad-ficha-producto .woocommerce-product-gallery__image > a { display: block; }

        .pcmad-ficha-producto .pcmad-ficha-layout .woocommerce-product-gallery .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
            height: 100%;
        }
    }
}

@media (max-width: 980px) {
    .pcmad-ficha-producto #main-content .pcmad-ficha-layout > .clearfix:has(> .woocommerce-product-gallery):has(> .summary) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .pcmad-ficha-producto #main-content .pcmad-ficha-layout > .clearfix:has(> .woocommerce-product-gallery):has(> .summary)::after { content: none; }

    .pcmad-ficha-producto #main-content .pcmad-ficha-layout > .clearfix > :is(.woocommerce-product-gallery, .summary) {
        float: none;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .pcmad-ficha-summary-extra { margin-top: 12px; }
}

.pcmad-ficha-dock-visible #pcmad-shop-chat { --pcmad-chat-raise: 78px; }

.pcmad-ficha-producto #main-content .pcmad-ficha-layout .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    justify-content: safe center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 6px 5px;
    overflow-x: auto;
    border-top: 1px solid #eee;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.pcmad-ficha-producto #main-content .pcmad-ficha-layout .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 clamp(42px, 5vw, 58px);
    float: none;
    width: auto !important;
    margin: 0 !important;
}

.pcmad-ficha-producto #main-content .pcmad-ficha-layout .woocommerce-product-gallery .flex-control-thumbs img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.pcmad-ficha-producto #main-content .pcmad-ficha-layout .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
    border-color: #92c159;
}

.pcmad-ficha-thumb-strip {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    border-top: 1px solid #eee;
}

.pcmad-ficha-producto #main-content .pcmad-ficha-layout .pcmad-ficha-thumb-strip .flex-control-thumbs {
    border-top: 0;
}

.pcmad-ficha-thumb-strip > button {
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #171717;
    font: inherit;
    font-size: 22px;
    cursor: pointer;
}

.pcmad-ficha-thumb-strip > button[hidden] { display: none; }
.pcmad-ficha-thumb-strip > button:disabled { color: #999; cursor: default; }
.pcmad-ficha-thumb-strip > button:not(:disabled):hover { background: #f4f4f4; }
.pcmad-ficha-thumb-strip :is(button, img):focus-visible { outline: 2px solid #92c159; outline-offset: -2px; }

.pcmad-ficha-producto #main-content .pcmad-ficha-layout .summary h1 {
    margin: 0 0 12px;
    padding: 0;
    color: #171717;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.pcmad-ficha-producto #main-content .pcmad-ficha-layout .summary h1.pcmad-ficha-title-long {
    font-size: clamp(24px, 2.45vw, 32px);
}

.pcmad-ficha-producto .pcmad-ficha-layout .summary h1 span {
    display: block;
    margin-top: 4px;
    color: #555;
    font-size: .52em;
    font-weight: 600;
    letter-spacing: normal;
}

.pcmad-ficha-intro {
    margin: 12px 0 14px;
    padding: 0;
    color: #494949;
    line-height: 1.55;
}

.pcmad-ficha-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 16px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.pcmad-ficha-specs div {
    padding: 8px 12px 9px;
    border-bottom: 1px solid #e0e0e0;
}

.pcmad-ficha-specs div:nth-child(odd) { border-right: 1px solid #e0e0e0; }
.pcmad-ficha-specs div:last-child,
.pcmad-ficha-specs div:nth-child(odd):nth-last-child(2) { border-bottom: 0; }
.pcmad-ficha-specs div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.pcmad-ficha-specs dt { color: #555; font-size: 12px; line-height: 1.35; }
.pcmad-ficha-specs dd { margin: 2px 0 0; color: #171717; font-size: 14px; font-weight: 700; line-height: 1.4; }

.pcmad-ficha-buy {
    padding: 13px 16px 15px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #f6f6f6;
}

.pcmad-ficha-price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 16px;
    margin-bottom: 8px;
}

.pcmad-ficha-producto #main-content .pcmad-ficha-layout .pcmad-ficha-buy .price {
    padding: 0;
    color: #171717;
    font-weight: 750;
}

.pcmad-ficha-price-on-request {
    margin: 0;
    padding: 0;
    color: #171717;
    font-size: 20px;
    font-weight: 750;
}

.pcmad-ficha-available {
    margin: 2px 0 8px;
    padding: 0;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.pcmad-ficha-available::before,
.pcmad-ficha-technical h2::before,
.pcmad-ficha-accessories h2::before {
    display: inline-block;
    width: .5em;
    height: .5em;
    margin-inline-end: .5em;
    background: #92c159;
    content: '';
    vertical-align: .12em;
}

.pcmad-ficha-producto #main-content .pcmad-ficha-layout .pcmad-ficha-buy :is(form.cart:not(.variations_form, .grouped_form), .woocommerce-variation-add-to-cart) {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 10px;
}

.pcmad-ficha-producto #main-content .pcmad-ficha-layout .pcmad-ficha-buy form.variations_form {
    margin: 8px 0 0;
}

.pcmad-ficha-producto #main-content .pcmad-ficha-layout .pcmad-ficha-buy .woocommerce-variation-add-to-cart {
    margin-top: 8px;
}

.pcmad-ficha-producto .pcmad-ficha-layout .pcmad-ficha-buy form.cart::before,
.pcmad-ficha-producto .pcmad-ficha-layout .pcmad-ficha-buy form.cart::after {
    content: none;
}

.pcmad-ficha-producto .pcmad-ficha-layout .pcmad-ficha-buy form.cart .quantity { margin: 0; }
.pcmad-ficha-producto .pcmad-ficha-layout .pcmad-ficha-buy form.cart .single_add_to_cart_button { flex: 1; }
.pcmad-ficha-producto .pcmad-ficha-layout .pcmad-ficha-buy .stock { flex-basis: 100%; }
.pcmad-ficha-delivery-note { margin: 2px 0 0; padding: 0; font-size: 13px; font-weight: 650; }

.pcmad-ficha-producto #main-content .pcmad-ficha-delivery {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pcmad-ficha-producto #main-content :is(.pcmad-ficha-delivery a, .pcmad-ficha-finance, .pcmad-ficha-chat, .pcmad-ficha-jump) {
    font-size: 13px;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #aaa;
}

.pcmad-ficha-producto #main-content :is(.pcmad-ficha-delivery a, .pcmad-ficha-finance, .pcmad-ficha-chat, .pcmad-ficha-jump):hover {
    text-decoration-color: #92c159;
}

.pcmad-ficha-finance { display: inline-block; }
.pcmad-ficha-support { margin: 9px 0 0; padding: 0; }
.pcmad-ficha-producto .pcmad-ficha-support .pcmad-ficha-chat { display: inline-flex; gap: 5px; }
.pcmad-ficha-jump { display: inline-block; margin-top: 5px; }

.pcmad-ficha-technical {
    padding: 20px 0 0;
    border-top: 1px solid #dedede;
    scroll-margin-top: 120px;
}

.pcmad-ficha-producto .pcmad-ficha-layout :is(.pcmad-ficha-technical, .pcmad-ficha-accessories) h2 {
    padding: 0;
    margin: 0 0 13px;
    color: #171717;
    font-size: clamp(21px, 2.5vw, 29px);
    font-weight: 750;
    letter-spacing: -.025em;
}

.pcmad-ficha-uses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pcmad-ficha-uses > div {
    padding: 13px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f6f6f6;
}

.pcmad-ficha-uses > div:only-child { grid-column: 1 / -1; }

.pcmad-ficha-overview {
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid #dedede;
    border-radius: 8px;
}
.pcmad-ficha-overview summary { color: #171717; font-weight: 650; cursor: pointer; }
.pcmad-ficha-overview .woocommerce-product-details__short-description { margin-top: 8px; }
.pcmad-ficha-overview :is(img, iframe) { max-width: 100%; }

.pcmad-ficha-producto #main-content :is(.pcmad-ficha-uses, .pcmad-ficha-accessories) h3 {
    margin: 0 0 4px;
    padding: 0;
    color: #171717;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.32;
}

.pcmad-ficha-producto #main-content :is(.pcmad-ficha-uses, .pcmad-ficha-accessories) p {
    margin: 0;
    padding: 0;
    color: #505050;
    font-size: 14px;
    line-height: 1.54;
}

.pcmad-ficha-technical .product_meta { margin-top: 9px; font-size: 12px; }
.pcmad-ficha-producto #main-content .pcmad-ficha-layout > :is(.woocommerce-tabs, .related) { margin: 0; padding-top: 0; }

.pcmad-ficha-producto #tab-description :where(h2, h3, h4, h5, h6):not(:first-child) {
    margin-block-start: clamp(20px, 2.5vw, 34px);
}

.pcmad-ficha-producto #tab-description :is(figure, p):has(> :is(img, picture, a:has(> img)):only-child) {
    margin-block: clamp(20px, 3vw, 34px);
    padding-block: 0;
}

.pcmad-ficha-producto #tab-description img {
    max-width: 100%;
    height: auto !important;
}

.pcmad-ficha-producto #tab-description img:not(.alignleft, .alignright, .emoji, .wp-smiley, .size-thumbnail) {
    max-width: min(100%, 560px) !important;
}

.pcmad-ficha-producto #tab-description :is(p, figure):has(> :is(img, picture, a:has(> img)):only-child) img:not(.alignleft, .alignright, .emoji, .wp-smiley) {
    display: block;
    margin-inline: auto;
}

.pcmad-ficha-producto #main-content .pcmad-ficha-accessories ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pcmad-ficha-accessories li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dedede;
    border-radius: 8px;
}

.pcmad-ficha-accessories li:hover { border-color: #92c159; }

.pcmad-ficha-accessories .pcmad-ficha-accessory-info {
    display: grid;
    grid-template-columns: clamp(61px, 7vw, 96px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.pcmad-ficha-producto #main-content #left-area .pcmad-ficha-accessory-buy {
    display: inline-flex;
    align-self: flex-end;
    align-items: center;
    min-height: 44px;
    margin-top: auto;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #252525;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.pcmad-ficha-producto #main-content #left-area .pcmad-ficha-accessory-buy:hover { background: #383838; }
.pcmad-ficha-accessory-buy::after { display: none !important; }
.pcmad-ficha-accessories .added_to_cart { align-self: flex-end; font-size: 13px; }

@media (min-width: 981px) {
    .pcmad-ficha-producto #main-content .pcmad-ficha-accessories ul:has(> li:nth-child(3)) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pcmad-ficha-accessories img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pcmad-ficha-accessory-price { display: block; margin-top: 4px; color: #171717; font-weight: 750; }
.pcmad-ficha-accessory-link { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.pcmad-ficha-dock { display: none; }

@media (max-width: 679px) {
    .pcmad-ficha-producto #main-content .woocommerce-breadcrumb { overflow-wrap: anywhere; }
    .pcmad-ficha-producto #main-content #left-area .pcmad-ficha-layout { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
    .pcmad-ficha-producto .pcmad-ficha-layout .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
        height: clamp(150px, 44vw, 224px);
        padding: 6px;
    }
    .pcmad-ficha-specs div { padding-inline: 8px; }
    .pcmad-ficha-buy { padding-inline: 12px; }
    .pcmad-ficha-producto .pcmad-ficha-layout .pcmad-ficha-buy table.variations select {
        scroll-margin-block: 76px 65px;
    }
    .pcmad-ficha-technical { scroll-margin-top: 76px; }
    .pcmad-ficha-uses, .pcmad-ficha-producto #main-content .pcmad-ficha-accessories ul {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .pcmad-ficha-dock-visible { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
    .pcmad-ficha-dock:not([hidden]) {
        position: fixed;
        z-index: 92;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px clamp(16px, 5vw, 24px) calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid #dedede;
        background: #fff;
        color: #171717;
    }
    .pcmad-ficha-dock-cost { display: grid; min-width: 0; gap: 2px; line-height: 1.25; }
    .pcmad-ficha-dock-price { min-width: 0; font-size: clamp(15px, 4.6vw, 22px); font-weight: 750; }
    .pcmad-ficha-dock .pcmad-ficha-finance { color: #444; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
    .pcmad-ficha-dock-price del { font-size: .65em; font-weight: 500; }
    .pcmad-ficha-dock-price ins { text-decoration: none; }
    .pcmad-ficha-dock button {
        min-height: 44px;
        flex-shrink: 0;
        padding: 8px 13px;
        border: 1px solid transparent;
        border-radius: 6px;
        background: #252525;
        color: #fff;
        font: inherit;
        font-weight: 750;
        cursor: pointer;
    }
    .pcmad-ficha-dock button:focus-visible { outline: 2px solid #171717; outline-offset: 2px; }
}

.pcmad-quote-box .pcmad-quote-price {
    margin: 0;
    padding: 0;
    color: #171717;
    font-size: clamp(21px, 2.5vw, 27px);
    font-weight: 750;
    line-height: 1.2;
}
.pcmad-quote-box :is(.pcmad-quote-copy, .pcmad-quote-choice-note, .pcmad-quote-finance) { margin: 10px 0 0; padding: 0; }
.pcmad-quote-box .pcmad-quote-choice-note { color: #555; font-size: 14px; }
.pcmad-quote-box table.variations { margin: 6px 0 0; }
.pcmad-ficha-producto #main-content .pcmad-quote-box .pcmad-quote-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #92c159;
    color: #171717;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    transition: background-color 140ms ease, color 140ms ease;
}
.pcmad-ficha-producto #main-content .pcmad-quote-box .pcmad-quote-action:is(:hover, :focus-visible) {
    background: #171717;
    color: #fff !important;
}
.pcmad-quote-box .pcmad-quote-action { width: 100%; }
