/* ================================================================
   RESFRI PECAS — Product Page Redesign
   Standalone CSS — enqueued via functions.php
   Matches prototype: prototipo_produto_v3.html
   ================================================================ */

/* --- Design Tokens --- */
:root {
    --rf-teal: #0E8BAD;
    --rf-teal-dark: #0A6F8A;
    --rf-teal-light: #E3F5FA;
    --rf-orange: #C45500;
    --rf-green: #007600;
    --rf-green-dark: #005E00;
    --rf-red: #CC0C39;
    --rf-link: #007185;
    --rf-g50: #FAFAFA;
    --rf-g100: #F5F5F5;
    --rf-g200: #EEEEEE;
    --rf-g300: #DDDDDD;
    --rf-g400: #BDBDBD;
    --rf-g500: #888888;
    --rf-g600: #565959;
    --rf-g700: #333333;
    --rf-g800: #1A1A1A;
    --rf-radius: 8px;
}


/* ================================================================
   1. LAYOUT — Gallery 34% | Summary 66% (Content 64 / Sidebar 36)
   Prototype: 380px | 520px | 280px at 1200px
   ================================================================ */
.woocommerce .mf-single-product.mf-product-layout-3 .woocommerce-product-gallery {
    width: 34% !important;
}
.woocommerce .mf-single-product.mf-product-layout-3 .entry-summary {
    width: 66% !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0 !important;
}
.woocommerce .mf-single-product.mf-product-layout-3 .entry-summary-content {
    width: 64% !important;
    padding-right: 20px !important;
}
.woocommerce .mf-single-product.mf-product-layout-3 .entry-summary-sidebar {
    width: 36% !important;
}

/* Compact spacing — Amazon density */
.mf-product-layout-3 .entry-summary-content > * {
    margin-bottom: 0 !important;
}
.mf-product-layout-3 .entry-summary-sidebar > * {
    margin-bottom: 0 !important;
}
.mf-product-layout-3 .mf-entry-product-header {
    margin-bottom: 4px !important;
}


/* ================================================================
   2. GALLERY — Vertical thumbnails on left via absolute positioning
   Using position:absolute takes thumbs OUT of FlexSlider's layout
   so its inline width calculations can't crush them.
   ================================================================ */
.mf-product-layout-3 .woocommerce-product-gallery {
    position: relative !important;
    padding-left: 62px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

/* Main image area */
.mf-product-layout-3 .woocommerce-product-gallery .flex-viewport,
.mf-product-layout-3 .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    border: 1px solid var(--rf-g300) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #fff !important;
}
.mf-product-layout-3 .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    transition: transform .3s ease !important;
    cursor: crosshair !important;
}
.mf-product-layout-3 .woocommerce-product-gallery:hover .woocommerce-product-gallery__image img {
    transform: scale(1.06) !important;
}

/* Thumbnail strip — ABSOLUTE positioned on the left */
.mf-product-layout-3 .woocommerce-product-gallery .flex-control-thumbs {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 54px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2 !important;
}
.mf-product-layout-3 .flex-control-thumbs li {
    width: 54px !important;
    height: 54px !important;
    border: 1px solid var(--rf-g300) !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    padding: 2px !important;
    background: #fff !important;
    margin: 0 !important;
    transition: border-color .15s !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    list-style: none !important;
    float: none !important;
}
.mf-product-layout-3 .flex-control-thumbs li:hover,
.mf-product-layout-3 .flex-control-thumbs li .flex-active {
    border-color: var(--rf-teal) !important;
    box-shadow: 0 0 0 2px rgba(14,139,173,.2) !important;
}
.mf-product-layout-3 .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 2px !important;
    display: block !important;
}

/* Sale badge */
.mf-single-product span.onsale {
    background: var(--rf-red) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 2px !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1.5 !important;
    z-index: 5 !important;
}

/* "Passe o mouse" */
.mf-product-layout-3 .product-image-ms {
    font-size: 11px !important;
    color: var(--rf-g500) !important;
    text-align: center !important;
    margin-top: 4px !important;
}


/* ================================================================
   3. INFO COLUMN — Title, price, description, attributes, meta
   ================================================================ */

/* Title */
.mf-single-product .entry-summary .product_title {
    font-size: 21px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    color: var(--rf-g800) !important;
    margin-bottom: 2px !important;
}

/* Brand line */
.mf-single-product .entry-summary .mf-entry-product-header .meta {
    font-size: 13px !important;
    color: var(--rf-g600) !important;
}
.mf-single-product .entry-summary .mf-entry-product-header .meta a {
    color: var(--rf-link) !important;
    text-decoration: none !important;
}
.mf-single-product .entry-summary .mf-entry-product-header .meta a:hover {
    color: var(--rf-orange) !important;
    text-decoration: underline !important;
}

/* Rating */
.mf-single-product .entry-summary .woocommerce-product-rating {
    margin-bottom: 6px !important;
}

/* Hide stock from info column header (shown in buybox) */
.mf-product-layout-3 .entry-summary-content .mf-summary-header .mf-summary-meta {
    display: none !important;
}

/* Separator lines between sections */
.mf-product-layout-3 .entry-summary-content .martfury-product-price {
    padding: 8px 0 !important;
    margin-bottom: 0 !important;
    border-top: 1px solid var(--rf-g200) !important;
    border-bottom: 1px solid var(--rf-g200) !important;
}

/* --- PRICE in info column (theme hides it — force show) --- */
.mf-product-layout-3 .entry-summary-content .price {
    display: block !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    color: var(--rf-g800) !important;
    line-height: 1 !important;
}
.mf-product-layout-3 .entry-summary-content .price ins {
    font-size: 26px !important;
    font-weight: 400 !important;
    color: var(--rf-g800) !important;
    text-decoration: none !important;
}
.mf-product-layout-3 .entry-summary-content .price del {
    font-size: 13px !important;
    color: var(--rf-g500) !important;
    font-weight: 400 !important;
    display: block !important;
    margin-top: 2px !important;
}
/* Hide Martfury's native (-XX%) — we show .resfri-discount-badge instead */
.mf-product-layout-3 .price .sale {
    display: none !important;
}
/* Red discount badge */
.resfri-discount-badge {
    display: inline-block !important;
    background: var(--rf-red) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 2px !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}

/* --- PIX in info column — simple text, no pill --- */
.mf-product-layout-3 .entry-summary-content .preco-pix-box {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: none !important;
    border: none !important;
    padding: 4px 0 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    color: var(--rf-g600) !important;
}
.mf-product-layout-3 .entry-summary-content .preco-pix-box .pix-icon {
    color: var(--rf-teal) !important;
}
.mf-product-layout-3 .entry-summary-content .preco-pix-box strong {
    color: var(--rf-green) !important;
    font-weight: 700 !important;
}
.mf-product-layout-3 .entry-summary-content .preco-pix-box .pix-desconto {
    color: var(--rf-g600) !important;
    font-size: 13px !important;
}

/* --- Short description --- */
.mf-single-product .entry-summary .woocommerce-product-details__short-description {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--rf-g600) !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--rf-g200) !important;
}
.mf-single-product .entry-summary .woocommerce-product-details__short-description ul {
    list-style: disc !important;
    padding-left: 18px !important;
    margin: 0 !important;
}
.mf-single-product .entry-summary .woocommerce-product-details__short-description li {
    margin-bottom: 4px !important;
    line-height: 1.45 !important;
}

/* --- Attribute table (Amazon "Sobre este item") --- */
.resfri-attr-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 14px !important;
    margin: 4px 0 !important;
    padding: 0 !important;
}
.resfri-attr-table tr {
    border-bottom: 1px solid var(--rf-g200) !important;
}
.resfri-attr-table tr:last-child {
    border-bottom: none !important;
}
.resfri-attr-table th {
    text-align: left !important;
    padding: 5px 16px 5px 0 !important;
    color: var(--rf-g700) !important;
    font-weight: 700 !important;
    width: 130px !important;
    vertical-align: top !important;
    border-bottom: none !important;
}
.resfri-attr-table td {
    padding: 5px 0 !important;
    color: var(--rf-g600) !important;
    border-bottom: none !important;
}
.resfri-attr-table a {
    color: var(--rf-link) !important;
    text-decoration: none !important;
}
.resfri-attr-table a:hover {
    text-decoration: underline !important;
    color: var(--rf-orange) !important;
}

/* --- Meta (SKU, Category) --- */
.mf-single-product .entry-summary .product_meta {
    font-size: 13px !important;
    color: var(--rf-g500) !important;
    line-height: 1.8 !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--rf-g200) !important;
}
.mf-single-product .entry-summary .product_meta > span {
    display: block !important;
}
.mf-single-product .entry-summary .product_meta a {
    color: var(--rf-link) !important;
    text-decoration: none !important;
}
.mf-single-product .entry-summary .product_meta a:hover {
    text-decoration: underline !important;
}

/* --- Tags --- */
.mf-single-product .entry-summary .tagged_as a {
    display: inline-block !important;
    padding: 2px 8px !important;
    background: var(--rf-g100) !important;
    color: var(--rf-g600) !important;
    border: 1px solid var(--rf-g300) !important;
    border-radius: 3px !important;
    font-size: 12px !important;
    margin: 2px 4px 2px 0 !important;
    text-decoration: none !important;
    transition: all .15s !important;
}
.mf-single-product .entry-summary .tagged_as a:hover {
    border-color: var(--rf-teal) !important;
    color: var(--rf-teal) !important;
    background: var(--rf-teal-light) !important;
}


/* ================================================================
   4. BUYBOX (sidebar) — Card with border, prototype layout
   ================================================================ */
.mf-product-layout-3 .entry-summary-sidebar {
    background: #fff !important;
    border: 1px solid var(--rf-g300) !important;
    border-radius: var(--rf-radius) !important;
    padding: 14px 16px !important;
    position: sticky !important;
    top: 90px !important;
    box-shadow: none !important;
}

/* --- Price in buybox --- */
.mf-product-layout-3 .entry-summary-sidebar .martfury-product-price {
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.mf-product-layout-3 .entry-summary-sidebar .price {
    font-size: 22px !important;
    font-weight: 400 !important;
    color: var(--rf-g800) !important;
    line-height: 1.1 !important;
}
.mf-product-layout-3 .entry-summary-sidebar .price ins {
    font-size: 22px !important;
    font-weight: 400 !important;
    color: var(--rf-g800) !important;
    text-decoration: none !important;
    display: inline !important;
}
.mf-product-layout-3 .entry-summary-sidebar .price del {
    font-size: 12px !important;
    color: var(--rf-g500) !important;
    font-weight: 400 !important;
    display: block !important;
    margin-top: 1px !important;
}
.mf-product-layout-3 .entry-summary-sidebar .resfri-discount-badge {
    display: none !important;
}

/* --- PIX in buybox — text only, no pill --- */
.mf-product-layout-3 .entry-summary-sidebar .preco-pix-box {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 8px !important;
    margin: 4px 0 0 !important;
    border-bottom: 1px solid var(--rf-g200) !important;
    font-size: 13px !important;
    color: var(--rf-g600) !important;
}
.mf-product-layout-3 .entry-summary-sidebar .preco-pix-box .pix-icon {
    color: var(--rf-teal) !important;
}
.mf-product-layout-3 .entry-summary-sidebar .preco-pix-box strong {
    color: var(--rf-green) !important;
    font-size: 13px !important;
}
.mf-product-layout-3 .entry-summary-sidebar .preco-pix-box .pix-desconto {
    color: var(--rf-g600) !important;
}

/* --- Stock in buybox --- */
.resfri-stock-buybox {
    font-size: 16px !important;
    font-weight: 400 !important;
    padding: 6px 0 0 !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}
.resfri-stock-buybox.in-stock {
    color: var(--rf-green) !important;
}
.resfri-stock-buybox.in-stock::before {
    content: '\25CF ' !important;
}
.resfri-stock-buybox.low-stock {
    color: var(--rf-red) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}
.resfri-stock-buybox.out-of-stock {
    color: #DC2626 !important;
}

/* Shipping subtitle under stock */
.resfri-shipping-sub {
    font-size: 13px !important;
    color: var(--rf-g600) !important;
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}
.resfri-shipping-sub strong {
    color: var(--rf-g800) !important;
}


/* ================================================================
   5. FORM + BUTTONS — tight, prototype spacing
   ================================================================ */
body.single-product div.product form.cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Quantity row */
.mf-product-layout-3 form.cart div.quantity {
    border-bottom: none !important;
    padding: 6px 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.mf-product-layout-3 form.cart div.quantity .label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--rf-g700) !important;
}
body.single-product .quantity input.qty {
    border: 1px solid var(--rf-g300) !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* Add-to-cart button — teal, full width, rounded pill */
body.single-product .single_add_to_cart_button.button {
    background: var(--rf-teal) !important;
    border: none !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0 20px !important;
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 20px !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    text-align: center !important;
    width: 100% !important;
    transition: all .15s !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
body.single-product .single_add_to_cart_button.button:hover {
    background: var(--rf-teal-dark) !important;
}
/* Cart icon */
body.single-product .single_add_to_cart_button.button::before {
    content: '' !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin-right: 6px !important;
    flex-shrink: 0 !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") no-repeat center/contain !important;
}

/* WhatsApp button — white with green border, right below cart */
body.single-product .resfri-wha-wrap {
    margin: 6px 0 0 !important;
    flex: none !important;
    width: 100% !important;
}
body.single-product .whatsapp-button.button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #fff !important;
    border: 2px solid #25D366 !important;
    color: #25D366 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 16px !important;
    height: 40px !important;
    line-height: 36px !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    text-transform: none !important;
    transition: background .15s !important;
    margin: 0 !important;
}
body.single-product .whatsapp-button.button:hover {
    background: #E8F8EE !important;
}
body.single-product .whatsapp-button.button svg {
    flex-shrink: 0 !important;
}


/* ================================================================
   6. CALC FRETE — compact box, aligned
   ================================================================ */
body.single-product .resfri-calc-wrap {
    margin: 10px 0 0 !important;
    padding: 10px !important;
    background: var(--rf-g50) !important;
    border: 1px solid var(--rf-g200) !important;
    border-radius: 6px !important;
    flex: none !important;
    width: 100% !important;
}
body.single-product .resfri-calc-wrap label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--rf-g700) !important;
    display: block !important;
    margin-bottom: 6px !important;
}
body.single-product .resfri-calc-wrap .calculo_frete,
body.single-product .resfri-calc-wrap form {
    display: flex !important;
    gap: 6px !important;
    align-items: stretch !important;
}
body.single-product .resfri-calc-wrap input[type="text"],
body.single-product .resfri-calc-wrap input[type="tel"] {
    flex: 1 !important;
    border: 1px solid var(--rf-g300) !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    outline: none !important;
    min-width: 0 !important;
}
body.single-product .resfri-calc-wrap input:focus {
    border-color: var(--rf-teal) !important;
    box-shadow: 0 0 0 2px rgba(14,139,173,.12) !important;
}
body.single-product .resfri-calc-wrap button,
body.single-product .resfri-calc-wrap input[type="submit"] {
    background: var(--rf-g100) !important;
    border: 1px solid var(--rf-g300) !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--rf-g600) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}
body.single-product .resfri-calc-wrap button:hover,
body.single-product .resfri-calc-wrap input[type="submit"]:hover {
    background: var(--rf-g200) !important;
}


/* ================================================================
   7. TRUST BADGES — 2x2 grid, compact
   ================================================================ */
body.single-product .resfri-trust-wrap {
    margin: 10px 0 0 !important;
    padding: 10px 0 0 !important;
    border-top: 1px solid var(--rf-g200) !important;
    flex: none !important;
    width: 100% !important;
}
.resfri-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}
.resfri-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    padding: 5px;
}
.resfri-trust-icon {
    width: 14px;
    height: 14px;
    color: var(--rf-teal);
    flex-shrink: 0;
    margin-top: 1px;
}
.resfri-trust-item div {
    font-size: 10.5px;
    line-height: 1.3;
    color: var(--rf-g600);
}
.resfri-trust-item strong {
    display: block;
    color: var(--rf-g700);
    font-size: 11px;
    font-weight: 700;
}


/* ================================================================
   9. STOCK — hide from left column, shown in buybox via PHP
   ================================================================ */
.mf-single-product .entry-summary .stock {
    font-size: 13px !important;
    font-weight: 600 !important;
}
.mf-single-product .entry-summary .stock.in-stock {
    color: var(--rf-green) !important;
}
.rf-ship-info {
    display: none !important;
}


/* ================================================================
   10. BREADCRUMBS
   ================================================================ */
.mf-single-product .woocommerce-breadcrumb {
    font-size: 12px !important;
    color: var(--rf-g500) !important;
}
.mf-single-product .woocommerce-breadcrumb a {
    color: var(--rf-link) !important;
    text-decoration: none !important;
}
.mf-single-product .woocommerce-breadcrumb a:hover {
    color: var(--rf-orange) !important;
    text-decoration: underline !important;
}


/* ================================================================
   11. HORIZONTAL TABS (forced via filter — no longer accordion)
   ================================================================ */
.woocommerce-tabs {
    border-top: 1px solid var(--rf-g200) !important;
    margin-top: 0 !important;
}
.woocommerce-tabs ul.tabs {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 2px solid var(--rf-g200) !important;
    gap: 0 !important;
    background: none !important;
}
.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after {
    display: none !important;
}
.woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    border-radius: 0 !important;
    float: none !important;
}
.woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--rf-g500) !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
    transition: all .15s !important;
    background: none !important;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--rf-teal) !important;
    border-bottom-color: var(--rf-teal) !important;
}
.woocommerce-tabs .woocommerce-Tabs-panel,
.woocommerce-tabs .panel {
    padding: 16px 0 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: var(--rf-g600) !important;
}
.woocommerce-tabs .woocommerce-Tabs-panel h2,
.woocommerce-tabs .panel h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--rf-g800) !important;
    margin-bottom: 8px !important;
}


/* ================================================================
   12. STICKY BAR (Martfury native)
   ================================================================ */
#sticky-product-info-wapper {
    background: #fff !important;
    border-top: 1px solid var(--rf-g200) !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,.05) !important;
}
#sticky-product-info-wapper .sc-product-cart .price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--rf-orange) !important;
}
#sticky-product-info-wapper .sc-product-cart .button {
    background: var(--rf-teal) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}
#sticky-product-info-wapper .sc-product-cart .button:hover {
    background: var(--rf-teal-dark) !important;
}


/* ================================================================
   13. ANIMATIONS
   ================================================================ */
.mf-single-product .mf-product-detail {
    animation: rfFade .25s ease;
}
@keyframes rfFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ================================================================
   14. RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .woocommerce .mf-single-product.mf-product-layout-3 .woocommerce-product-gallery {
        width: 38% !important;
    }
    .woocommerce .mf-single-product.mf-product-layout-3 .entry-summary {
        width: 62% !important;
    }
    .woocommerce .mf-single-product.mf-product-layout-3 .entry-summary-content {
        width: 100% !important;
        padding-right: 0 !important;
    }
    .woocommerce .mf-single-product.mf-product-layout-3 .entry-summary-sidebar {
        width: 100% !important;
        position: static !important;
        margin-top: 16px !important;
    }
}

@media (max-width: 768px) {
    /* Force vertical stacking */
    .mf-single-product .mf-product-detail {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }
    .woocommerce .mf-single-product.mf-product-layout-3 .woocommerce-product-gallery,
    .woocommerce .mf-single-product.mf-product-layout-3 .entry-summary {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }
    .mf-product-layout-3 .entry-summary {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }
    .woocommerce .mf-single-product.mf-product-layout-3 .entry-summary-content,
    .woocommerce .mf-single-product.mf-product-layout-3 .entry-summary-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding-right: 0 !important;
    }
    /* Gallery: remove left padding, thumbs go horizontal below */
    .mf-product-layout-3 .woocommerce-product-gallery {
        padding-left: 0 !important;
    }
    .mf-product-layout-3 .woocommerce-product-gallery .flex-control-thumbs {
        position: static !important;
        flex-direction: row !important;
        width: 100% !important;
        margin: 8px 0 0 0 !important;
        overflow-x: auto !important;
        max-height: none !important;
    }
    .mf-product-layout-3 .flex-control-thumbs li {
        width: 48px !important;
        height: 48px !important;
    }
    /* Buybox full width, no sticky */
    .mf-product-layout-3 .entry-summary-sidebar {
        position: static !important;
        margin-top: 16px !important;
    }
    /* Trust badges still 2 col on mobile */
    .resfri-trust-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    /* Tabs scrollable */
    .woocommerce-tabs ul.tabs {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
    }
    .woocommerce-tabs ul.tabs li a {
        padding: 10px 14px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    .resfri-trust-grid {
        grid-template-columns: 1fr !important;
    }
}
