@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
.dtfi-gallery,.dtfi-gallery *{box-sizing:border-box}
.dtfi-gallery{font-family:Poppins,Arial,sans-serif;color:#111;width:100%;max-width:none;background:#fff;padding:16px 0 36px}
.dtfi-gallery-bar{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;margin-bottom:23px}
.dtfi-gallery-tag{display:block;color:#e30613;font-size:10px;letter-spacing:1.5px;font-weight:800;margin-bottom:9px}
.dtfi-gallery h2{color:#111!important;font-family:Poppins,Arial,sans-serif!important;font-size:clamp(26px,3vw,38px);font-weight:800;letter-spacing:-1px;margin:0 0 8px;padding:0;line-height:1.2}
.dtfi-gallery-bar p{color:#666;font-size:13px;margin:0;line-height:1.65}
.dtfi-gallery-search{min-width:min(100%,300px)}
.dtfi-gallery-search label{display:block;font-size:11px;font-weight:700;color:#555;margin:0 0 7px}
.dtfi-gallery-search>div{display:flex;gap:6px}
.dtfi-gallery-search input{border:1px solid #ddd;border-radius:8px;padding:10px 11px;min-width:0;width:100%;font-family:inherit;font-size:12px}
.dtfi-gallery-search button{border:0;border-radius:8px;background:#111;color:#fff;font-weight:700;padding:10px 14px;cursor:pointer}
.dtfi-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.dtfi-gallery-card{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #ededed;border-radius:15px;box-shadow:0 8px 26px rgba(0,0,0,.055);overflow:hidden;transition:box-shadow .2s,transform .2s}
.dtfi-gallery-card:hover{transform:translateY(-3px);box-shadow:0 14px 36px rgba(0,0,0,.11)}
.dtfi-gallery-image-button{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:auto;aspect-ratio:4/5;background:linear-gradient(145deg,#fff,#f4f4f4);padding:15px;cursor:zoom-in;border:0;border-bottom:3px solid #e30613;overflow:hidden}
.dtfi-gallery-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;transition:transform .2s}
.dtfi-gallery-image-button:hover .dtfi-gallery-image{transform:scale(1.04)}
.dtfi-gallery-zoom{position:absolute;bottom:13px;right:13px;background:rgba(17,17,17,.82);color:#fff;padding:7px 10px;border-radius:7px;font-size:10px;font-weight:600}
.dtfi-gallery-noimage{font-size:12px;color:#888}
.dtfi-gallery-body{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1}
.dtfi-gallery-category{font-size:10px;color:#e30613;font-weight:800;text-transform:uppercase;letter-spacing:.8px}
.dtfi-gallery h3{font-family:Poppins,Arial,sans-serif!important;color:#111!important;font-weight:800;font-size:21px;line-height:1.25;padding:0;margin:7px 0 11px}
.dtfi-gallery-facts{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:10px;color:#666;margin:0 0 15px}
.dtfi-gallery-buy{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #eee;padding:13px 0}
.dtfi-gallery-buy label{font-size:12px;font-weight:700;color:#222}
.dtfi-gallery-buy input{width:83px;max-width:45%;padding:8px;border:1px solid #d6d6d6;border-radius:8px;background:#fff;color:#111;font-family:inherit;font-size:13px}
.dtfi-gallery-add{border:0;border-radius:8px;background:#e30613;color:#fff;width:100%;padding:13px 11px;min-height:44px;font-family:Poppins,Arial,sans-serif;font-size:11px;font-weight:800;cursor:pointer}
.dtfi-gallery-add:hover:not(:disabled){background:#b4000d}
.dtfi-gallery-add:disabled{background:#777;cursor:not-allowed}
.dtfi-gallery-status{font-size:11px;line-height:1.5;margin-top:9px;min-height:0;color:#444}
.dtfi-gallery-status:empty{display:none}
.dtfi-gallery-status a{color:#e30613;font-weight:700;text-decoration:underline}
.dtfi-gallery-notice{padding:13px 17px;background:#f5f5f5;border-left:3px solid #e30613;margin:0 0 23px;color:#444;font-size:12px}
.dtfi-gallery-empty{padding:25px 0;color:#666}
.dtfi-gallery-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.9);display:flex;align-items:center;justify-content:center;padding:55px 22px 24px}
.dtfi-gallery-lightbox img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.dtfi-gallery-close{position:absolute;top:12px;right:18px;border:0;background:transparent;color:#fff;font-size:36px;line-height:1;cursor:pointer}
body.dtfi-gallery-modal-open{overflow:hidden}
@media(max-width:980px){.dtfi-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}}
@media(max-width:620px){.dtfi-gallery-grid{grid-template-columns:1fr;gap:18px}.dtfi-gallery-image-button{aspect-ratio:4/5}.dtfi-gallery-body{padding:17px}}
@media(prefers-reduced-motion:reduce){.dtfi-gallery-card,.dtfi-gallery-image{transition:none}}

/* v0.1.1: filtros de orden y estado de la compra */
.dtfi-gallery-search .dtfi-gallery-sort-label{margin-top:11px}
.dtfi-gallery-sort{display:block;width:100%;max-width:100%;border:1px solid #ddd;border-radius:8px;background:#fff;color:#222;padding:10px 11px;font-family:Poppins,Arial,sans-serif;font-size:12px}
.dtfi-gallery-pending{display:block;margin-top:8px;color:#777;font-size:10px;line-height:1.4;text-align:center;font-family:Poppins,Arial,sans-serif}
.dtfi-gallery-add:disabled{opacity:.62;background:#b9b9b9;color:#fff}


/* v0.1.2 - Tarjetas compactas; referencia solo en administración, carrito y pedido. */
.dtfi-gallery .dtfi-gallery-body{padding:14px 18px 15px}
.dtfi-gallery .dtfi-gallery-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.dtfi-gallery .dtfi-gallery-category{font-size:9px;line-height:1.35;letter-spacing:.7px}
.dtfi-gallery .dtfi-gallery-length{font-size:10px;line-height:1.4;color:#666;font-weight:600;white-space:nowrap}
.dtfi-gallery .dtfi-gallery-body h3{font-size:19px;line-height:1.26;margin:7px 0 12px;padding:0}
.dtfi-gallery .dtfi-gallery-buy{padding:10px 0;margin:0 0 2px;gap:8px}
.dtfi-gallery .dtfi-gallery-buy input{padding:7px 8px;width:80px;max-width:45%}
.dtfi-gallery .dtfi-gallery-add{padding:10px 11px;min-height:40px;font-size:10px}
.dtfi-gallery .dtfi-gallery-pending{margin-top:6px;font-size:9px;line-height:1.35}
@media(max-width:620px){.dtfi-gallery .dtfi-gallery-body{padding:14px 16px 16px}}




/* v0.1.9: galería sin paginación. Las imágenes mantienen loading="lazy". */

/* v0.2.0 - Subtle VAT-inclusive 1–5m reference price in each gallery card. */
.dtfi-gallery .dtfi-gallery-price{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:-2px 0 2px;padding:7px 0 3px;border-top:1px solid #f0f0f0}
.dtfi-gallery .dtfi-gallery-price>span{font-size:10px;font-weight:600;line-height:1.3;color:#666}
.dtfi-gallery .dtfi-gallery-price strong{font-size:15px;font-weight:800;color:#111;white-space:nowrap;line-height:1.3}
.dtfi-gallery .dtfi-gallery-price strong small{font-size:11px;font-weight:600;color:#666}
.dtfi-gallery .dtfi-gallery-price-note{font-size:9px;line-height:1.45;color:#777;margin:0 0 4px}
@media(max-width:620px){.dtfi-gallery .dtfi-gallery-price{gap:4px}.dtfi-gallery .dtfi-gallery-price strong{font-size:14px}}
