/* V21: fondo general configurable + ficha modal de productos, aislado de POS/admin. */
body:not(.admin-page).has-web-background{
  background-color:#fff !important;
  background-image:linear-gradient(rgba(255,255,255,var(--web-bg-shade,.35)),rgba(255,255,255,var(--web-bg-shade,.35))),var(--web-bg-image) !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  background-attachment:fixed !important;
}
/* Mantener encima de la foto las superficies propias de slider, tarjetas y footer. */
body:not(.admin-page).has-web-background .menu-section,
body:not(.admin-page).has-web-background .promos,
body:not(.admin-page).has-web-background .locations,
body:not(.admin-page).has-web-background .about-section,
body:not(.admin-page).has-web-background .contact-section,
body:not(.admin-page).has-web-background .delivery-workflow,
body:not(.admin-page).has-web-background .hero,
body:not(.admin-page).has-web-background .store-page{
  background-color:transparent !important;
  background-image:none !important;
}
body:not(.admin-page).has-web-background .menu-sidebar{background-color:rgba(255,255,255,.94) !important}
body:not(.admin-page) .menu-sidebar::before{background-image:none !important;opacity:0 !important}
body:not(.admin-page).has-web-background .menu-group-title,
body:not(.admin-page).has-web-background .section-heading h2,
body:not(.admin-page).has-web-background .menu-intro{ text-shadow:0 1px 14px #fff; }
body:not(.admin-page) .v21-product-opener{cursor:zoom-in}
body:not(.admin-page) .v21-product-opener:focus-visible{outline:3px solid #0e8a46;outline-offset:3px}
body:not(.admin-page) .v21-product-opener [data-add]{cursor:pointer}
body.v21-product-open{overflow:hidden}
.v21-detail-overlay{
 position:fixed;inset:0;background:rgba(8,23,15,.76);z-index:380;
 display:flex;align-items:center;justify-content:center;padding:20px;
 overflow-y:auto;
}
.v21-detail-dialog{
 position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
 max-width:920px;width:100%;max-height:calc(100dvh - 40px);overflow-y:auto;
 background:#fff;color:#1f3025;border-radius:22px;
 box-shadow:0 26px 110px #0006;
}
.v21-detail-gallery{padding:21px;background:#f7faf7;min-width:0;display:flex;flex-direction:column;gap:12px}
.v21-main-image{height:clamp(280px,43vw,480px);border-radius:15px;overflow:hidden;background:#e7f0e9;position:relative}
.v21-main-image>img{width:100%;height:100%;object-fit:contain}
.v21-detail-close{position:absolute;right:16px;top:16px;z-index:3;border:0;background:#fff;color:#233b2c;border-radius:50%;font-size:30px;width:44px;height:44px;box-shadow:0 3px 18px #0002}
.v21-photo-counter{position:absolute;bottom:13px;right:14px;padding:5px 10px;background:#fffE;border-radius:9px;font-size:11px;font-weight:800}
.product-detail-arrow{position:absolute;top:50%;transform:translateY(-50%);border:0;border-radius:50%;background:#fffE;color:#19452c;font-size:26px;height:41px;width:41px;display:grid;place-items:center}
.v21-prev{left:12px}.v21-next{right:12px}
.v21-thumbnails{display:flex;gap:9px;overflow-x:auto}
.v21-thumbnails button{width:75px;height:67px;flex:none;border:2px solid transparent;background:#fff;border-radius:11px;padding:3px;overflow:hidden}
.v21-thumbnails button.active,.v21-thumbnails button:hover{border-color:#13974c}
.v21-thumbnails img{width:100%;height:100%;object-fit:cover;border-radius:6px}
.v21-detail-content{padding:clamp(25px,4vw,48px);display:flex;flex-direction:column;align-items:start;justify-content:center;min-width:0}
.v21-detail-category{font-size:11px;color:#108c47;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.v21-detail-content h2{font-size:clamp(25px,3vw,36px);letter-spacing:-.045em;line-height:1.15;margin:12px 0 17px;font-weight:900}
.v21-detail-content p{font-size:14px;color:#64766a;line-height:1.75;margin:0 0 23px;white-space:pre-line;overflow-wrap:anywhere}
.v21-detail-price{margin-bottom:22px}.v21-detail-price .price{font-size:27px;color:#087c3d}
.v21-detail-add{background:#078b44;border:0;color:white;border-radius:12px;padding:15px 22px;font-size:13px;font-weight:900;min-height:49px;width:100%}
.v21-detail-add:hover{background:#056633}
.v21-photo-counter,.v21-detail-close,.v21-detail-add,.product-detail-arrow,.v21-thumbnails button{touch-action:manipulation}
.v21-detail-overlay button:focus-visible{outline:3px solid #ff9f4f;outline-offset:2px}
.v21-gallery-editor .v21-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.v21-photo-slot{padding:13px;border:1px solid #e5ebe6;border-radius:12px;background:#fafcfa;min-width:0}
.v21-photo-slot>strong{display:block;font-size:12px;margin:0 0 10px;color:#23432f}
.v21-photo-slot .img-field{min-width:0}
.v21-remove-image,.v21-clear-background{display:inline-block;border:1px solid #e4ddd9;background:white;border-radius:8px;color:#934f34;padding:9px 12px;font-size:11px;font-weight:750;margin:10px 0 0}
@media(max-width:750px){
 .v21-detail-overlay{padding:9px;align-items:center}
 .v21-detail-dialog{grid-template-columns:1fr;max-width:510px;max-height:calc(100dvh - 18px);border-radius:16px}
 .v21-detail-gallery{padding:12px;gap:8px}
 .v21-main-image{height:clamp(210px,35dvh,360px)}
 .v21-detail-content{padding:20px}
 .v21-detail-content h2{font-size:23px;margin:8px 0}
 .v21-detail-content p{font-size:12px;margin-bottom:13px}
 .v21-detail-price{margin-bottom:12px}
 .v21-thumbnails button{width:60px;height:52px}
 .v21-gallery-editor .v21-gallery-grid{grid-template-columns:1fr}
}
