/* Product-only layout; keep the catalog, global header and footer intact. */
body.single-product .single-product-wrapper{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:start;gap:clamp(24px,4vw,64px);width:100%;padding-bottom:30px!important}
body.single-product .single-product-wrapper:before,body.single-product .single-product-wrapper:after{display:none!important}
body.single-product .single-product-wrapper>.woocommerce-product-gallery,body.single-product .single-product-wrapper>.summary{width:100%!important;max-width:100%!important;min-width:0;float:none!important;margin:0!important;padding:0!important;flex:none!important}
body.single-product .single-product-wrapper>.summary{display:block!important}
body.single-product .summary>.summary-details{width:100%!important;max-width:none!important;float:none!important;margin:0 0 20px!important;padding:0!important}
body.single-product .summary .single-title-wrapper{margin-bottom:16px!important;padding-bottom:14px!important}
body.single-product .summary h1.product_title{font-size:clamp(24px,2.2vw,36px)!important;line-height:1.18!important;color:#1c2535;overflow-wrap:anywhere;letter-spacing:-.5px!important;margin-bottom:14px!important}
body.single-product .summary .sku{font:500 13px/1.5 Consolas,monospace!important;color:#536071!important;margin:0!important}
body.single-product .woocommerce-product-gallery__wrapper{margin:0!important}
body.single-product .woocommerce-product-gallery__image,body.single-product .woocommerce-product-gallery__image--placeholder{background:#fff;border:1px solid #e0e4ec;border-radius:16px;overflow:hidden}
body.single-product .woocommerce-product-gallery__image a{display:block}
body.single-product .woocommerce-product-gallery__image img:not(.zoomImg),body.single-product .woocommerce-product-gallery__image--placeholder img{width:100%!important;height:clamp(300px,35vw,540px)!important;object-fit:contain!important;padding:20px;display:block;margin:0!important}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img{height:72px!important;object-fit:contain!important;padding:5px}
body.single-product .summary .arj-product-delivery{font-size:14px!important;line-height:1.55!important;padding:15px 18px!important;margin:18px 0!important;border-radius:10px!important;background:#f1f2fa!important;color:#334057!important}
body.single-product .summary .arj-aviso-cotizacion{display:none!important}
body.single-product .summary .arj-photo-note{font-size:13px;line-height:1.5;padding:12px;background:#fff7dd;border-radius:8px}
body.single-product .summary p:has(>.arj-cotizar-pieza){display:none!important}
body.single-product .summary .product_meta:has(a[href*="sin-categorizar"]){display:none!important}
body.single-product .summary .arjq-single{padding:20px;border:1px solid #dde3ed;border-radius:14px;background:#fafbfe;margin:18px 0!important}
body.single-product .summary .arjq-single label{font-size:14px;margin-bottom:14px!important}
body.single-product .summary .arjq-single .arjq-actions{max-width:none!important;gap:10px}
body.single-product .summary .arjq-single .arjq-actions>a,body.single-product .summary .arjq-single .arjq-actions>button{min-height:50px;font-size:14px!important;line-height:1.3!important}
body.single-product .summary .arjq-single p{margin:12px 0 0!important;font-size:12px!important;line-height:1.5;color:#536071}
body.single-product .summary #post-social-share{margin:18px 0!important}
body.single-product .summary .wishlist-title,body.single-product .summary .compare-title{font-size:12px!important}
.arjpd-facts{margin:18px 0;font:14px/1.5 Arial,sans-serif;color:#283347}.arjpd-facts dl{margin:0!important;border-top:1px solid #e3e6ed}.arjpd-facts dl>div{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(0,1.3fr);gap:14px;padding:10px 0;border-bottom:1px solid #e3e6ed}.arjpd-facts dt{font-weight:400;color:#647084}.arjpd-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}.arjpd-facts>p{font:13px/1.55 Arial,sans-serif!important;margin:14px 0!important;color:#4a5570}
/* Repair the original theme's zero-height image boxes, including recently viewed items. */
body.single-product :is(.product-carousel,.history-products) .post-image{height:auto!important;min-height:0!important;padding:12px!important;background:white}
body.single-product :is(.product-carousel,.history-products) .post-image>a{display:block!important;width:100%!important}
body.single-product :is(.product-carousel,.history-products) .image-container{position:relative!important;height:auto!important;aspect-ratio:1/1!important;padding:0!important;width:100%!important;overflow:hidden!important}
body.single-product :is(.product-carousel,.history-products) .image-container img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;transform:none!important}
body.single-product .product-carousel .swiper-wrapper{height:auto!important;align-items:stretch}
body.single-product :is(.product-carousel,.history-products) .post-inner{height:100%!important}
/* Custom suggestions use CSS grid, not a carousel with stale measured heights. */
.arjpd-related{padding:32px 0 20px;border-top:1px solid #e0e5ee;margin:28px 0;width:100%;clear:both;color:#1c2535}.arjpd-related *{box-sizing:border-box}.arjpd-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.arjpd-eyebrow{font:700 10px/1.5 Arial,sans-serif;letter-spacing:1.5px;color:#1d19ac}.arjpd-section-head h2{font-family:'ARJ Magistral',Arial,sans-serif!important;font-size:clamp(24px,3vw,32px)!important;line-height:1.2!important;margin:7px 0 0!important}.arjpd-section-head p{font:13px/1.5 Arial,sans-serif;color:#5a6478;max-width:340px;margin:0!important}
.arjpd-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.arjpd-card{min-width:0;border:1px solid #e1e5ee;border-radius:14px;background:#fff;overflow:hidden;display:flex;flex-direction:column;margin:0!important;box-shadow:0 3px 14px #13204605}.arjpd-card-photo{height:230px;display:flex!important;align-items:center;justify-content:center;background:white;padding:16px!important;border-bottom:1px solid #eef0f5}.arjpd-card-photo img{position:static!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;border:0!important;transform:none!important}.arjpd-card-body{display:flex;flex-direction:column;flex:1;padding:18px;min-width:0}.arjpd-reason{align-self:flex-start;font:600 11px/1.4 Arial,sans-serif;color:#1d19ac;background:#f1f0fc;border-radius:5px;padding:5px 7px;margin-bottom:10px}.arjpd-card h3{font:700 16px/1.4 Arial,sans-serif!important;text-transform:none!important;letter-spacing:0!important;margin:0 0 10px!important;overflow-wrap:anywhere}.arjpd-card h3 a{color:#1d2638!important;text-decoration:none!important}.arjpd-card h3 a:hover{color:#1d19ac!important}.arjpd-sku{font:12px/1.4 Consolas,monospace!important;color:#687286;margin:0 0 14px!important}.arjpd-price{font:600 14px/1.5 Arial,sans-serif;color:#4b5871;margin-top:auto;padding-bottom:14px}.arjpd-no-photo{font:14px Arial,sans-serif;color:#687286;background:#f5f6fa;border-radius:10px;padding:24px}.arjpd-card .arjq-actions{display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important}.arjpd-card .arjq-actions a,.arjpd-card .arjq-actions button{width:100%!important;min-height:44px!important;font-size:13px!important;line-height:1.3!important;white-space:normal!important}.arjpd-card .arjq-actions svg{width:20px!important;height:20px!important;flex:0 0 20px}.arjpd-related a:focus-visible,.arjpd-related button:focus-visible{outline:3px solid #1d19ac;outline-offset:3px}
@media(min-width:1600px){.arjpd-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1023px){body.single-product .single-product-wrapper{gap:26px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}body.single-product .summary .arjq-actions{flex-direction:column}.arjpd-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.arjpd-card-body{padding:12px}.arjpd-card-photo{height:185px}}
@media(max-width:767px){body.single-product .single-product-wrapper{grid-template-columns:minmax(0,1fr);gap:24px}body.single-product .summary h1.product_title{font-size:25px!important}body.single-product .woocommerce-product-gallery__image img:not(.zoomImg),body.single-product .woocommerce-product-gallery__image--placeholder img{height:330px!important;padding:14px}body.single-product .summary .arjq-single{padding:16px}body.single-product .summary .arjq-single .arjq-actions{flex-direction:row}.arjpd-section-head{display:block}.arjpd-section-head p{margin-top:12px!important;max-width:none}.arjpd-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.arjpd-card-photo{height:170px;padding:10px!important}.arjpd-card h3{font-size:14px!important}.arjpd-card .arjq-actions svg{display:none!important}.arjpd-card .arjq-actions a,.arjpd-card .arjq-actions button{padding:10px 5px!important;font-size:12px!important}.arjpd-reason{font-size:10px}.arjpd-facts dl>div{grid-template-columns:1fr 1.4fr}.arjpd-related{margin-top:20px;padding-top:24px}}
@media(max-width:360px){body.single-product .summary .arjq-single .arjq-actions{flex-direction:column}.arjpd-card-photo{height:140px}.arjpd-card-body{padding:9px}}

/* Neutralize inherited theme sizing on definition lists and stacked quote buttons. */
body.single-product .arjpd-facts dl{padding:0!important;border:0!important;background:transparent!important;text-align:left!important}
body.single-product .arjpd-facts dt,body.single-product .arjpd-facts dd{padding:0!important;text-align:left!important;font-size:14px!important;line-height:1.5!important}
body.single-product .arjpd-card .arjq-actions>a,body.single-product .arjpd-card .arjq-actions>button{flex:0 0 auto!important;height:auto!important;min-height:44px!important}
body.single-product .summary .arjq-single .arjq-actions>a,body.single-product .summary .arjq-single .arjq-actions>button{flex:1 1 0!important}
body.single-product .product-layout-single>.container:has(>.product){width:94%!important;max-width:1600px!important}
@media(max-width:1023px) and (min-width:768px){body.single-product .summary .arjq-single .arjq-actions>a,body.single-product .summary .arjq-single .arjq-actions>button{flex:0 0 auto!important}}
@media(max-width:360px){body.single-product .summary .arjq-single .arjq-actions>a,body.single-product .summary .arjq-single .arjq-actions>button{flex:0 0 auto!important}}

body.single-product .history-products.swiper-wrapper{height:auto!important;align-items:stretch}
