/* Matelco · Ficha de producto */
body.single-product{background:#F5F3F2;overflow-x:clip}
body.single-product main#main.site-main{max-width:1320px!important;width:100%;margin:0 auto;padding:0 40px}
body.single-product .woocommerce-breadcrumb{margin:0!important;padding:26px 0 22px!important;font:500 13px Poppins,sans-serif!important;color:#7a7273!important}
body.single-product .woocommerce-breadcrumb a{color:#393435!important;text-decoration:none}
body.single-product .woocommerce-breadcrumb a:hover{color:#9D2942!important}

/* Estructura */
body.single-product div.product{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:32px 40px;align-items:start;margin:0!important}
body.single-product div.product>*{float:none!important;width:auto!important;margin:0!important;min-width:0}
body.single-product div.product .woocommerce-tabs,body.single-product div.product section.related,body.single-product div.product section.upsells{grid-column:1/-1}

/* Galería */
body.single-product .woocommerce-product-gallery{background:#fff;border:1px solid #E3DEDC;padding:32px;position:relative}
body.single-product .woocommerce-product-gallery__image img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#fff}
body.single-product .woocommerce-product-gallery__trigger{top:16px!important;right:16px!important;background:#fff!important;border:1px solid #E3DEDC;border-radius:0!important}
body.single-product .flex-control-thumbs{display:flex!important;gap:10px;margin-top:16px!important}
body.single-product .flex-control-thumbs li{width:72px!important;border:1px solid #E3DEDC;padding:4px;background:#fff}
body.single-product .flex-control-thumbs img.flex-active{outline:2px solid #9D2942}

/* Resumen */
body.single-product .summary{background:#fff;border:1px solid #E3DEDC;border-top:3px solid #9D2942;padding:36px 40px!important;display:flex;flex-direction:column;gap:0}
body.single-product .mfp-kicker{align-self:flex-start;font:600 11px Montserrat,sans-serif;letter-spacing:1.6px;text-transform:uppercase;color:#9D2942!important;text-decoration:none;margin-bottom:12px;display:inline-flex;align-items:center;gap:10px}
body.single-product .mfp-kicker::before{content:"";width:8px;height:8px;background:#9D2942}
body.single-product .product_title{font:700 34px/1.18 Montserrat,sans-serif!important;color:#393435!important;margin:0 0 14px!important}
body.single-product .summary p.price:empty,body.single-product .summary p.price:not(:has(*)){display:none}
body.single-product .woocommerce-product-details__short-description{font:500 15px/1.6 Poppins,sans-serif;color:#5a5354;margin-bottom:16px}
body.single-product .woocommerce-product-details__short-description p{margin:0}
body.single-product .product_meta{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid #EFEBEA;font:500 12px Poppins,sans-serif;color:#7a7273}
body.single-product .product_meta>span{background:#F5F3F2;padding:6px 10px}
body.single-product .product_meta a{color:#393435;text-decoration:none;font-weight:600}
body.single-product .product_meta a:hover{color:#9D2942}

/* Datos técnicos (bloque de Codex) */
body.single-product .mt-specs{margin:0 0 24px}
body.single-product .mt-specs h2{font:600 11px Montserrat,sans-serif!important;letter-spacing:1.6px;text-transform:uppercase;color:#393435!important;margin:0 0 12px!important}
body.single-product .mt-specs dl{display:grid;grid-template-columns:minmax(120px,40%) 1fr;margin:0;border-top:1px solid #EFEBEA}
body.single-product .mt-specs dt,body.single-product .mt-specs dd{margin:0;padding:11px 0;border-bottom:1px solid #EFEBEA;font:400 14px/1.45 Poppins,sans-serif}
body.single-product .mt-specs dt{color:#7a7273;padding-right:14px}
body.single-product .mt-specs dt strong{font-weight:500}
body.single-product .mt-specs dd{color:#393435;font-weight:600}
body.single-product .mt-specs dd ul{list-style:none;margin:0;padding:0}

/* Acciones */
body.single-product .mt-contact{display:flex!important;align-items:center;justify-content:center;gap:10px;background:#9D2942!important;color:#fff!important;border:1px solid #9D2942;border-radius:0!important;padding:16px 20px!important;font:600 12px Montserrat,sans-serif!important;letter-spacing:1.4px;text-transform:uppercase;text-decoration:none!important;transition:background .2s}
body.single-product .mt-contact::after{content:"→"}
body.single-product .mt-contact:hover{background:#2A2526!important;border-color:#2A2526}
body.single-product .mfp-actions{display:flex;gap:10px;margin-top:10px}
body.single-product .mfp-actions .mcmp-toggle{flex:1;justify-content:center;border-color:#393435}
body.single-product .mfp-actions .mcmp-toggle.is-on{border-color:#9D2942}
body.single-product .mfp-trust{list-style:none;margin:24px 0 0;padding:20px 0 0;border-top:1px solid #EFEBEA;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.single-product .mfp-trust li{display:flex;flex-direction:column;gap:3px;padding-left:12px;border-left:2px solid #9D2942}
body.single-product .mfp-trust strong{font:700 13px/1.3 Montserrat,sans-serif;color:#393435}
body.single-product .mfp-trust span{font:400 12px/1.4 Poppins,sans-serif;color:#7a7273}

/* Pestañas */
body.single-product .woocommerce-tabs{background:#fff;border:1px solid #E3DEDC;padding:0 40px 32px}
body.single-product .woocommerce-tabs:has(ul.tabs>li:only-child):not(:has(.wc-tab>:not(h2))){display:none}
body.single-product .woocommerce-tabs ul.tabs{display:flex;gap:28px;margin:0 0 24px!important;padding:0!important;border-bottom:1px solid #E3DEDC}
body.single-product .woocommerce-tabs ul.tabs::before,body.single-product .woocommerce-tabs ul.tabs::after,body.single-product .woocommerce-tabs ul.tabs li::before,body.single-product .woocommerce-tabs ul.tabs li::after{display:none!important}
body.single-product .woocommerce-tabs ul.tabs li{background:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important}
body.single-product .woocommerce-tabs ul.tabs li a{display:block;padding:20px 0 16px!important;font:600 12px Montserrat,sans-serif!important;letter-spacing:1.4px;text-transform:uppercase;color:#7a7273!important;border-bottom:3px solid transparent;margin-bottom:-1px}
body.single-product .woocommerce-tabs ul.tabs li.active a{color:#393435!important;border-bottom-color:#9D2942}
body.single-product .woocommerce-tabs .panel{font:400 15px/1.75 Poppins,sans-serif;color:#393435;margin:0!important}
body.single-product .woocommerce-tabs .panel>h2:first-child{display:none}
body.single-product .woocommerce-tabs table.shop_attributes{border:0;border-top:1px solid #EFEBEA}
body.single-product .woocommerce-tabs table.shop_attributes th,body.single-product .woocommerce-tabs table.shop_attributes td{border:0;border-bottom:1px solid #EFEBEA;background:none!important;padding:11px 0;font:400 14px Poppins,sans-serif}
body.single-product .woocommerce-tabs table.shop_attributes th{color:#7a7273;width:40%}
body.single-product .woocommerce-tabs table.shop_attributes td{font-weight:600}

/* Relacionados */
body.single-product section.related{padding:24px 0 8px}
body.single-product section.related>h2{font:700 26px/1.2 Montserrat,sans-serif!important;color:#393435!important;margin:0 0 20px!important;display:flex;align-items:center;gap:14px}
body.single-product section.related>h2::before{content:"";width:10px;height:10px;background:#9D2942}
body.single-product section.related ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0!important}
body.single-product section.related ul.products::before,body.single-product section.related ul.products::after{display:none!important}
body.single-product section.related ul.products li.product{width:auto!important;margin:0!important;float:none!important;background:#fff;border:1px solid #E3DEDC;padding:18px 18px 20px;display:flex;flex-direction:column;transition:border-color .25s}
body.single-product section.related ul.products li.product:hover{border-color:#9D2942}
body.single-product section.related ul.products li.product img{aspect-ratio:1/1;object-fit:contain;background:#F5F3F2;padding:14px;margin:0 0 14px!important;width:100%}
body.single-product section.related .woocommerce-loop-product__title{font:700 15px/1.3 Montserrat,sans-serif!important;color:#393435!important;padding:0!important;margin:0 0 10px!important}
body.single-product section.related ul.products li.product .button{margin-top:auto!important;align-self:flex-start;background:transparent!important;color:#9D2942!important;border:1px solid #9D2942!important;border-radius:0!important;font:600 11px Montserrat,sans-serif!important;letter-spacing:1.4px;text-transform:uppercase;padding:10px 14px!important}
body.single-product section.related ul.products li.product .button:hover{background:#9D2942!important;color:#fff!important}

/* Franja final */
body.single-product .mfp-cta{margin:48px calc(50% - 50vw) 0;background:#9D2942;color:#fff}
body.single-product .mfp-cta-in{max-width:1320px;margin:0 auto;padding:56px 40px;display:flex;justify-content:space-between;align-items:center;gap:40px}
body.single-product .mfp-cta-kicker{font:600 11px Montserrat,sans-serif;letter-spacing:1.6px;text-transform:uppercase;color:rgba(255,255,255,.75)}
body.single-product .mfp-cta h2{font:700 30px/1.2 Montserrat,sans-serif!important;color:#fff!important;margin:8px 0 10px!important}
body.single-product .mfp-cta p{font:400 15px/1.6 Poppins,sans-serif;color:rgba(255,255,255,.85);margin:0;max-width:560px}
body.single-product .mfp-cta-side{display:flex;flex-direction:column;align-items:flex-start;gap:14px;flex:none}
body.single-product .mfp-cta-phone{font:700 30px Montserrat,sans-serif;color:#fff!important;text-decoration:none}
body.single-product .mfp-cta-btn{background:#fff;color:#393435!important;text-decoration:none;padding:14px 20px;font:600 12px Montserrat,sans-serif;letter-spacing:1.4px;text-transform:uppercase}
body.single-product .mfp-cta-btn:hover{background:#2A2526;color:#fff!important}


/* Orden del resumen y anulación de esquinas/degradados previos */
html body.single-product .summary{border-radius:0!important;background:#fff!important;box-shadow:none!important}
html body.single-product .woocommerce-product-gallery,html body.single-product .woocommerce-tabs,html body.single-product section.related ul.products li.product{border-radius:0!important;box-shadow:none!important}
html body.single-product main#main.site-main{padding-bottom:0!important}
html body.single-product .summary>*{order:6}
html body.single-product .summary>.mfp-kicker{order:1}
html body.single-product .summary>.product_title{order:2}
html body.single-product .summary>.price{order:3}
html body.single-product .summary>.woocommerce-product-details__short-description{order:4}
html body.single-product .summary>.product_meta{order:5}
html body.single-product .summary>.mt-specs{order:6}
html body.single-product .summary>.mt-contact{order:7}
html body.single-product .summary>.mfp-actions{order:8}
html body.single-product .summary>.mfp-trust{order:9}

@media(max-width:1024px){
body.single-product main#main.site-main{padding:0 24px}
body.single-product div.product{grid-template-columns:1fr;gap:20px}
body.single-product section.related ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
body.single-product .mfp-cta-in{flex-direction:column;align-items:flex-start;padding:44px 24px}
}
@media(max-width:767px){
body.single-product main#main.site-main{padding:0 16px}
body.single-product .woocommerce-product-gallery{padding:16px}
body.single-product .summary{padding:24px 20px!important}
body.single-product .product_title{font-size:26px!important}
body.single-product .mfp-trust{grid-template-columns:1fr}
body.single-product .woocommerce-tabs{padding:0 20px 24px}
body.single-product section.related ul.products{gap:12px}
body.single-product section.related ul.products li.product{padding:12px}
body.single-product .mfp-cta h2{font-size:24px!important}
body.single-product .mfp-cta-phone{font-size:24px}
}

/* ===== v1.2: ficha reorganizada ===== */
html body.single-product .product_meta .posted_in,html body.single-product .matelco-product-category,html body.single-product .matelco-availability,html body.single-product .summary .mt-specs,html body.single-product .summary .mt-pdf,html body.single-product .mfp-trust,html body.single-product .woocommerce-tabs{display:none!important}
html body.single-product .flex-control-thumbs{display:none!important}
html body.single-product .summary>.mfp-stock{order:6}
html body.single-product .summary>.mt-contact{order:7}
html body.single-product .summary>.mfp-actions{order:8}
html body.single-product .product_meta{border-bottom:0;margin-bottom:18px;padding-bottom:0}
html body.single-product .mfp-stock{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;margin:0 0 14px;background:#F5F3F2;border-left:3px solid #9a9192}
html body.single-product .mfp-stock strong{display:block;font:700 14px/1.3 Montserrat,sans-serif;color:#393435}
html body.single-product .mfp-stock span:not(.mfp-stock-dot){display:block;font:400 13px/1.45 Poppins,sans-serif;color:#5a5354;margin-top:2px}
html body.single-product .mfp-stock-dot{flex:none;width:10px;height:10px;border-radius:50%;background:#9a9192;margin-top:4px}
html body.single-product .mfp-stock.is-available{border-left-color:#2E7D4F;background:#EFF6F1}
html body.single-product .mfp-stock.is-available .mfp-stock-dot{background:#2E7D4F;box-shadow:0 0 0 4px rgba(46,125,79,.15)}
html body.single-product .mfp-stock.is-consult{border-left-color:#C48A1A;background:#FBF5EA}
html body.single-product .mfp-stock.is-consult .mfp-stock-dot{background:#C48A1A}
html body.single-product .mfp-stock.is-unavailable{border-left-color:#9D2942;background:#F7EDEF}
html body.single-product .mfp-stock.is-unavailable .mfp-stock-dot{background:#9D2942}

html body.single-product .mfp-detail{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;align-items:start}
html body.single-product .mfp-tabs{background:#fff;border:1px solid #E3DEDC;min-width:0}
html body.single-product .mfp-tablist{display:flex;gap:28px;padding:0 32px;border-bottom:1px solid #E3DEDC;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
html body.single-product .mfp-tablist button{flex:none;background:none!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;margin-bottom:-1px;padding:20px 0 16px!important;font:600 12px Montserrat,sans-serif!important;letter-spacing:1.4px;text-transform:uppercase;color:#7a7273!important;cursor:pointer;box-shadow:none!important}
html body.single-product .mfp-tablist button[aria-selected="true"]{color:#393435!important;border-bottom-color:#9D2942!important}
html body.single-product .mfp-tablist button:hover{color:#393435!important}
html body.single-product .mfp-tablist button:focus-visible{outline:2px solid #9D2942;outline-offset:-2px}
html body.single-product .mfp-panel{padding:24px 32px 32px}
html body.single-product .mfp-panel[hidden]{display:none}
html body.single-product .mfp-specs{width:100%;border-collapse:collapse;margin:0;border:0}
html body.single-product .mfp-specs th,html body.single-product .mfp-specs td{border:0;border-bottom:1px solid #EFEBEA;padding:12px 0;text-align:left;vertical-align:top;background:none!important;font:400 14px/1.5 Poppins,sans-serif}
html body.single-product .mfp-specs th{width:40%;color:#7a7273;font-weight:500;padding-right:16px}
html body.single-product .mfp-specs td{color:#393435;font-weight:600}
html body.single-product .mfp-specs tr:nth-child(odd) th,html body.single-product .mfp-specs tr:nth-child(odd) td{background:#FCFBFB!important}
html body.single-product .mfp-specs th:first-child{padding-left:12px}
html body.single-product .mfp-text{font:400 15px/1.75 Poppins,sans-serif;color:#393435}
html body.single-product .mfp-text h2,html body.single-product .mfp-text h3{font-family:Montserrat,sans-serif;color:#393435;font-size:20px;margin:18px 0 10px}
html body.single-product .mfp-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
html body.single-product .mfp-gallery a{display:grid;place-items:center;aspect-ratio:1/1;background:#F5F3F2;border:1px solid #E3DEDC;padding:12px;transition:border-color .2s}
html body.single-product .mfp-gallery a:hover{border-color:#9D2942}
html body.single-product .mfp-gallery img{max-width:100%;max-height:100%;object-fit:contain;margin:0!important}
html body.single-product .mfp-empty{margin:0;color:#7a7273;font:400 14px/1.6 Poppins,sans-serif}
html body.single-product .mfp-docs{background:#fff;border:1px solid #E3DEDC;border-top:3px solid #9D2942;padding:24px}
html body.single-product .mfp-docs h2{font:700 16px Montserrat,sans-serif!important;color:#393435!important;margin:0 0 16px!important;display:flex;align-items:center;gap:10px}
html body.single-product .mfp-docs h2::before{content:"";width:8px;height:8px;background:#9D2942}
html body.single-product .mfp-docs ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
html body.single-product .mfp-docs li a{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #E3DEDC;text-decoration:none;color:#393435;transition:border-color .2s,background .2s}
html body.single-product .mfp-docs li a:hover{border-color:#9D2942;background:#FCF8F9}
html body.single-product .mfp-doc-ico{flex:none;width:42px;height:42px;display:grid;place-items:center;background:#9D2942;color:#fff;font:700 10px Montserrat,sans-serif;letter-spacing:.8px}
html body.single-product .mfp-doc-txt{flex:1;min-width:0}
html body.single-product .mfp-doc-txt strong{display:block;font:600 13px/1.35 Montserrat,sans-serif}
html body.single-product .mfp-doc-txt small{display:block;font:400 12px Poppins,sans-serif;color:#7a7273;margin-top:2px}
html body.single-product .mfp-doc-dl{flex:none;font-size:18px;color:#9D2942}
html body.single-product .mfp-docs p{font:400 13px/1.6 Poppins,sans-serif;color:#5a5354;margin:0 0 14px}
html body.single-product .mfp-docs-req{display:inline-block;font:600 11px Montserrat,sans-serif;letter-spacing:1.3px;text-transform:uppercase;color:#9D2942;text-decoration:none}
@media(max-width:1024px){html body.single-product .mfp-detail{grid-template-columns:1fr;gap:20px}}
@media(max-width:767px){html body.single-product .mfp-tablist{padding:0 16px;gap:20px}html body.single-product .mfp-panel{padding:18px 16px 22px}html body.single-product .mfp-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
