/* Lavaca Design Engine 1.2: isolated individual product layout */
body.single-product.woocommerce div.product{display:block!important;width:100%!important;max-width:none!important;float:none!important;min-width:0!important}
body.single-product.woocommerce div.product::before,body.single-product.woocommerce div.product::after{content:"";display:table;clear:both}
body.single-product.woocommerce div.product>.images,body.single-product.woocommerce div.product>.summary,body.single-product.woocommerce div.product>.woocommerce-tabs,body.single-product.woocommerce div.product>.woocommerce-product-gallery{display:none!important}
body.single-product.woocommerce div.product>.lde-layout,body.single-product .woocommerce div.product>.lde-layout,body.single-product .woocommerce .lde-layout{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,calc(var(--lde-left,62%) - var(--lde-gap,32px)*.5)) minmax(0,1fr)!important;gap:var(--lde-gap,32px)!important;align-items:start!important;width:100%!important;max-width:var(--lde-max,1200px)!important;min-width:0!important;clear:both!important;float:none!important;margin:28px auto 34px!important;padding:0!important}
body.single-product .lde-layout *{box-sizing:border-box}
body.single-product .lde-layout>.lde-gallery,body.single-product .lde-layout>.lde-info{display:block!important;float:none!important;position:relative!important;width:100%!important;max-width:none!important;min-width:0!important;clear:none!important;margin:0!important;padding:0!important}
.lde-stage{width:100%;aspect-ratio:var(--lde-ratio,4/3);position:relative;background:#f1f5fb;border-radius:16px;overflow:hidden}
.lde-slide{position:absolute;inset:0;display:none}.lde-slide.is-active{display:block}.lde-slide img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain!important;margin:0!important;float:none!important}
.lde-arrow{position:absolute;z-index:5;top:50%;transform:translateY(-50%);height:42px;width:42px;border-radius:50%;border:0;background:#fff;color:#102f67;font-size:30px;cursor:pointer;box-shadow:0 2px 8px #102f6730}.lde-prev{left:12px}.lde-next{right:12px}.lde-arrow:focus-visible,.lde-thumb:focus-visible{outline:3px solid #f6c827;outline-offset:2px}
.lde-count{position:absolute;right:13px;bottom:13px;background:#102f67e8;color:#fff;border-radius:20px;padding:4px 12px;font-size:12px}
.lde-thumbs{display:flex;gap:12px;width:100%;max-width:100%;overflow-x:auto;padding:14px 1px 4px;scroll-snap-type:x mandatory}.lde-thumb{flex:0 0 88px;width:88px;height:74px;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;cursor:pointer;background:#f3f6fa;scroll-snap-align:start}.lde-thumb.is-active{border-color:#f8c928}.lde-thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important}
.lde-tag{display:inline-block;background:#e8f1fc;color:#133d77;border-radius:24px;padding:7px 13px;font-size:12px;font-weight:700}.lde-title{font-size:30px!important;line-height:1.18!important;font-weight:750!important;margin:14px 0 12px!important;color:#102f67!important;letter-spacing:-.015em}.lde-price{font-size:34px!important;line-height:1.15;font-weight:800!important;color:#102f67!important;margin:18px 0 22px}.lde-price .amount,.lde-price bdi{color:inherit!important}.lde-description{border-top:1px solid #dfe6ef;padding-top:18px}.lde-description h2,.lde-features h2{font-size:23px!important;color:#102f67!important;line-height:1.3;margin:0 0 14px!important}.lde-prose{font-size:16px!important;line-height:1.65!important;color:#30435b}.lde-prose p{margin:0 0 14px!important}.lde-buy{clear:both;padding:14px 0}.lde-buy form.cart{display:block!important;float:none!important}
body.single-product .woocommerce .lde-features,body.single-product .lde-features{clear:both!important;margin:34px auto!important;max-width:var(--lde-max,1200px);width:100%}.lde-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--lde-card-gap,16px)}.lde-feature{background:#f1f5fb;border-radius:13px;min-height:84px;padding:17px;display:flex;flex-direction:column;gap:7px}.lde-feature small{font-size:13px;color:#677995}.lde-feature strong{font-size:17px;color:#102f67;overflow-wrap:anywhere}.lde-disclaimer{clear:both!important;background:#f1f5fb;border-radius:12px;padding:18px;max-width:var(--lde-max,1200px);margin:24px auto 28px!important;font-size:13px;color:#52647f}
/* commerce product variations remain controlled by WooCommerce */
.lde-buy .variations_form,.lde-buy form.cart{width:100%}
@media(max-width:1023px){body.single-product.woocommerce div.product>.lde-layout,body.single-product .woocommerce .lde-layout{display:flex!important;flex-direction:column!important;gap:24px!important}.lde-stage{aspect-ratio:4/3}.lde-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){body.single-product.woocommerce div.product>.lde-layout,body.single-product .woocommerce .lde-layout{margin:18px auto 26px!important;gap:18px!important}.lde-stage{aspect-ratio:4/3;border-radius:12px}.lde-title{font-size:25px!important}.lde-price{font-size:28px!important}.lde-description h2{font-size:21px!important}.lde-thumb{flex-basis:72px;width:72px;height:62px}.lde-feature{padding:12px;min-height:70px}.lde-feature strong{font-size:15px}}

/* v1.3: single-product renderer lives INSIDE div.product, after WooCommerce opens its container. */
body.single-product.woocommerce div.product .lde-layout,
body.single-product .woocommerce div.product .lde-layout,
body.single-product .lde-layout {
  display:grid!important;
  grid-template-columns:minmax(0, calc(var(--lde-left, 62%) - var(--lde-gap, 32px) * .5)) minmax(0,1fr)!important;
  gap:var(--lde-gap,32px)!important;
  align-items:start!important;
  box-sizing:border-box!important;
  width:min(100%,var(--lde-max,1200px))!important;
  max-width:var(--lde-max,1200px)!important;
  margin:24px auto 32px!important;
  float:none!important;
  clear:both!important;
}
body.single-product .lde-layout .lde-gallery,
body.single-product .lde-layout .lde-info {min-width:0!important;width:100%!important;max-width:100%!important;float:none!important;margin:0!important;}
body.single-product .lde-layout .lde-stage {aspect-ratio:var(--lde-ratio,4/3)!important;max-height:570px!important;}
body.single-product .lde-layout .lde-slide img {width:100%!important;height:100%!important;object-fit:contain!important;}
body.single-product.woocommerce div.product>.summary, body.single-product.woocommerce div.product>.images {display:none!important;}
@media(max-width:1023px) {
 body.single-product.woocommerce div.product .lde-layout,
 body.single-product .woocommerce div.product .lde-layout,
 body.single-product .lde-layout {display:flex!important;flex-direction:column!important;gap:22px!important;}
 body.single-product .lde-layout .lde-stage {max-height:570px!important;}
}
@media(max-width:540px) {body.single-product .lde-layout .lde-stage{max-height:440px!important;}}

/* 1.4 - bottom panels: preserve approved top layout */
body.single-product .lde-lower{clear:both;display:grid;grid-template-columns:minmax(0,65fr) minmax(0,35fr);gap:32px;width:100%;max-width:var(--lde-max,1200px);margin:28px auto 0;align-items:start}
body.single-product .lde-lower .lde-features{margin:0!important;max-width:none!important;min-width:0}
body.single-product .lde-lower h2{font-size:21px!important;font-weight:750;color:#102f67;margin:0 0 18px!important}
body.single-product .lde-lower .lde-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.single-product .lde-lower .lde-feature{display:flex;flex-direction:row;align-items:center;min-width:0;gap:10px;padding:14px 12px;min-height:70px;background:#f2f6fc;border-radius:12px}
body.single-product .lde-feature-icon{color:#1358ab;font-size:23px;flex:0 0 23px;line-height:1}
body.single-product .lde-feature-text{display:flex;flex-direction:column;min-width:0;gap:4px}.lde-feature-text small{font-size:12px!important}.lde-feature-text strong{font-size:14px!important}
body.single-product .lde-conditions{min-width:0;border-left:1px solid #dfe6ef;padding-left:24px}
body.single-product .lde-conditions ul{padding:0!important;margin:0!important;list-style:none!important;display:grid;gap:13px}
body.single-product .lde-conditions li{display:flex;gap:10px;align-items:flex-start;font-size:15px;color:#1d304a;line-height:1.5}
body.single-product .lde-check{background:#289f56;color:white;width:18px;height:18px;border-radius:100%;line-height:18px;text-align:center;flex:0 0 18px;font-size:12px;margin-top:2px}
@media(max-width:1023px){body.single-product .lde-lower{grid-template-columns:1fr;gap:24px}body.single-product .lde-conditions{border-left:0;border-top:1px solid #dfe6ef;padding:20px 0 0}}
@media(max-width:700px){body.single-product .lde-lower .lde-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 1.4.2 - canonical product sheet: lower grid exactly aligned to upper gallery */
body.single-product .lde-lower{grid-template-columns:minmax(0,calc(var(--lde-left,62%) - var(--lde-gap,32px)*.5)) minmax(0,1fr)!important;gap:var(--lde-gap,32px)!important;width:min(100%,var(--lde-max,1200px))!important;max-width:var(--lde-max,1200px)!important;box-sizing:border-box!important}
body.single-product .lde-lower .lde-features,body.single-product .lde-lower .lde-grid{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
body.single-product .lde-lower .lde-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
body.single-product .lde-lower .lde-feature{min-width:0!important;overflow:hidden;box-sizing:border-box!important;padding:13px 10px!important;gap:10px!important;min-height:74px;border-radius:13px}
body.single-product .lde-feature-icon{display:grid;place-items:center;width:30px;min-width:30px;flex:0 0 30px;color:#0968c4}
body.single-product .lde-feature-icon svg{width:29px;height:29px;display:block}
body.single-product .lde-feature-text{min-width:0!important;overflow-wrap:anywhere}
body.single-product .lde-feature-text small{font-size:11px!important;letter-spacing:.01em}
body.single-product .lde-feature-text strong{font-size:13px!important;line-height:1.35!important;overflow-wrap:anywhere}
body.single-product .lde-info-card{background:#f1f6ff;border-radius:14px;padding:15px 16px;display:flex;align-items:flex-start;gap:13px;margin-top:13px;color:#263c60;font-size:13px;line-height:1.55}
body.single-product .lde-info-card-icon{width:30px;flex:0 0 30px;color:#086dc8}
body.single-product .lde-info-card-icon svg{width:29px;height:29px;display:block}
body.single-product .lde-conditions{border-left:1px solid #dfe6ef;padding-left:24px;min-width:0}
body.single-product .lde-conditions h2{font-size:21px!important}
@media(max-width:1023px){body.single-product .lde-lower{grid-template-columns:minmax(0,1fr)!important;gap:22px!important}body.single-product .lde-conditions{border-left:0;padding:20px 0 0;border-top:1px solid #dfe6ef}}
@media(max-width:700px){body.single-product .lde-lower .lde-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lde-feature-icon svg{width:25px;height:25px}}

/* v1.4.4 vehicle-only features */
body.single-product .lde-description-extra{margin:10px 0 0}body.single-product .lde-description-extra summary{cursor:pointer;color:#07366b;font-weight:750;margin-bottom:10px}body.single-product .lde-description-extra>div{padding-top:8px}
body.single-product .lde-contact{margin-top:18px;padding:18px;border:1px solid #dbe6f5;border-radius:12px;background:#f6f9ff;color:#183958}body.single-product .lde-contact h3{color:#07366b;font-size:19px!important;margin:0 0 10px!important}body.single-product .lde-contact-details>summary{cursor:pointer;background:#ffc928;color:#07366b;font-weight:800;text-align:center;border-radius:8px;padding:13px}body.single-product .lde-contact form{display:grid;gap:12px;padding-top:16px}body.single-product .lde-contact form label{display:grid;gap:5px;font-size:13px;font-weight:700}body.single-product .lde-contact input:not([type=checkbox]),body.single-product .lde-contact textarea{width:100%;max-width:100%;border:1px solid #aebfd2;border-radius:7px;padding:10px;background:white}body.single-product .lde-contact .lde-consent{display:flex;align-items:flex-start;gap:8px;font-weight:500}body.single-product .lde-contact-disclosure{font-size:12px;line-height:1.5}body.single-product .lde-contact-submit{background:#07366b;border:0;color:#fff;border-radius:8px;font-weight:800;padding:13px;cursor:pointer}body.single-product .lde-hp{position:absolute;left:-9999px;opacity:0;pointer-events:none}

body.single-product .lde-layout .lde-contact-unavailable{width:100%;padding:13px;background:#ffc928;color:#07366b;border:0;border-radius:8px;font-weight:800;opacity:.7;cursor:not-allowed}
/* 1.4.7 - Arte classified only. Do not alter Vehicles, Real Estate or shop categories. */
body.single-product.lde-arte-classified .woocommerce div.product form.cart,
body.single-product.lde-arte-classified .woocommerce div.product .single_add_to_cart_button,
body.single-product.lde-arte-classified .woocommerce div.product .quantity,
body.single-product.lde-arte-classified .woocommerce div.product .buy-now,
body.single-product.lde-arte-classified .woocommerce div.product .wc-stripe-payment-request-wrapper,
body.single-product.lde-arte-classified .woocommerce div.product .wompi-payment-button,
body.single-product.lde-arte-classified .woocommerce div.product .joinchat__button,
body.single-product.lde-arte-classified .woocommerce div.product a[href*="wa.me"],
body.single-product.lde-arte-classified .woocommerce div.product a[href*="api.whatsapp.com"],
body.single-product.lde-arte-classified .woocommerce div.product .woocommerce-product-gallery,
body.single-product.lde-arte-classified .woocommerce div.product > .images,
body.single-product.lde-arte-classified .woocommerce div.product > .summary,
body.single-product.lde-arte-classified .woocommerce div.product .woocommerce-tabs {display:none!important;}
body.single-product.lde-arte-classified .lde-layout .lde-contact{display:block!important;}

/* 1.4.9 definitivo: gallery + features are one structural column.
   Independent from description height; applies only to classified cards. */
body.single-product .lde-layout .lde-gallery .lde-features-under-gallery{width:100%!important;max-width:100%!important;margin:24px 0 0!important;clear:none!important;padding:0!important;}
body.single-product .lde-layout .lde-gallery .lde-features-under-gallery h2{font-size:21px!important;font-weight:750!important;color:#102f67!important;margin:0 0 14px!important;}
body.single-product .lde-layout .lde-gallery .lde-features-under-gallery .lde-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;}
body.single-product .lde-layout .lde-gallery .lde-features-under-gallery .lde-feature{display:flex!important;flex-direction:row!important;align-items:center!important;min-width:0!important;gap:10px!important;padding:13px 12px!important;min-height:72px!important;background:#f2f6fc!important;border-radius:12px!important;}
body.single-product .lde-layout .lde-info .lde-conditions-in-info{margin:24px 0 0!important;border-left:0!important;border-top:1px solid #dfe6ef!important;padding:20px 0 0!important;width:100%!important;}
body.single-product .lde-layout .lde-info .lde-conditions-in-info h2{font-size:21px!important;color:#102f67!important;margin:0 0 14px!important;}
@media(max-width:540px){body.single-product .lde-layout .lde-gallery .lde-features-under-gallery .lde-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}body.single-product .lde-layout .lde-gallery .lde-features-under-gallery .lde-feature{padding:10px 8px!important;}}
