/* V5.1 — controlled refinements. Square geometry, no global button reset. */
:root{--trap-accent-green:#a5c64a}
/* Gallery: same 44px square hit areas; paths centered independently of line height */
.gallery-toolbar #gallery-close,.gallery-stage .gallery-arrow{appearance:none!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 46px!important;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;max-width:46px!important;max-height:46px!important;border:1px solid #d8d6d0!important;border-radius:0!important;background:#fff!important;padding:0!important;margin:0!important;line-height:1!important;position:relative;cursor:pointer;vertical-align:middle}
.gallery-toolbar #gallery-close>span,.gallery-stage .gallery-arrow>span{display:flex!important;align-items:center!important;justify-content:center!important;width:100%;height:100%;margin:0!important;padding:0!important;line-height:0!important}
.gallery-toolbar #gallery-close svg,.gallery-stage .gallery-arrow svg{display:block!important;position:static!important;transform:none!important;flex:0 0 20px;width:20px!important;height:20px!important;stroke-width:1.8;margin:0!important;padding:0!important;vertical-align:middle}
.gallery-stage{grid-template-columns:46px minmax(0,1fr) 46px;gap:12px}
.gallery-stage #gallery-full-image{min-width:0;max-width:100%;max-height:100%;object-fit:contain}
.gallery-toolbar{gap:16px}.gallery-toolbar span#gallery-counter{margin-left:auto}
.gallery-thumbs .lightbox-thumb{border-radius:0!important}
/* Image display and badges */
.product-visual .item-badge,.detail-main-image .item-badge{display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#111;font-weight:800;font-size:12px;letter-spacing:0;padding:8px 10px;line-height:1.1;text-transform:uppercase;border:0;max-width:calc(100% - 24px);white-space:nowrap}
.product-visual .item-badge.badge-sale,.detail-main-image .item-badge.badge-sale{background:#a6cc55;color:#101710}
.product-visual .item-badge.badge-hit,.detail-main-image .item-badge.badge-hit{background:#111;color:#fff}
.product-visual .item-badge.badge-limited,.detail-main-image .item-badge.badge-limited{background:#e8e2ce;color:#111}
.product-visual .outofstock-badge,.detail-main-image .outofstock-badge{display:inline-flex;align-items:center;justify-content:center;border:0;background:rgba(17,17,17,.9);color:#fff;font-size:12px;line-height:1.2;padding:9px 12px;text-transform:uppercase;letter-spacing:.02em;border-radius:0}
/* Main button labels remain optically centered, no arrows in CTAs */
.success-page>.btn,.success-page a.btn,.checkout-submit{display:flex;align-items:center;justify-content:center;text-align:center;gap:0}
/* Tiny viewports: fixed gallery width and position, no overflow */
@media(max-width:740px){.gallery-stage{grid-template-columns:42px minmax(0,1fr) 42px;gap:3px;padding:9px 4px}.gallery-stage .gallery-arrow{flex-basis:40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:44px!important;min-height:44px!important;max-height:44px!important}.gallery-toolbar #gallery-close{flex-basis:42px!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important}.gallery-toolbar{gap:7px}.gallery-toolbar b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.product-visual>img{transition:none!important}}
/* Prevent intrinsic tall portrait images from pushing into thumbnail rail. */
.gallery-stage{min-height:0;overflow:hidden;grid-template-rows:minmax(0,1fr)}
.gallery-stage #gallery-full-image{display:block;height:100%!important;max-height:100%!important;width:100%!important;max-width:100%!important;min-height:0!important;min-width:0!important;object-fit:contain!important;align-self:stretch;justify-self:center}
.gallery-dialog{overflow:hidden}.gallery-thumbs{position:relative;z-index:2}
