/* Selva Crackers product photo gallery — isolated visual layer */
.product-image-shell{
  aspect-ratio:1/1!important;
  height:auto!important;
  min-height:220px;
  background:#fff!important;
  cursor:zoom-in;
  position:relative;
  isolation:isolate;
}
.product-image{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:12px!important;
  transform:none!important;
}
.product-tile:hover .product-image{transform:none!important}
.product-image-shell:focus-visible{
  outline:3px solid #d4a72c;
  outline-offset:3px;
}
.product-image-badge{
  z-index:4;
  pointer-events:none;
}
.product-image-badge.pg-placeholder-badge{
  background:rgba(73,63,58,.82)!important;
  color:#fff!important;
}
.pg-card-arrow{
  position:absolute;
  z-index:5;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.5);
  border-radius:999px;
  display:grid;
  place-items:center;
  padding:0;
  background:rgba(56,5,8,.84);
  color:#fff;
  font-size:1.15rem;
  line-height:1;
  box-shadow:0 8px 20px rgba(33,9,9,.22);
  cursor:pointer;
}
.pg-card-arrow:hover{background:#52080d}
.pg-card-prev{left:8px}
.pg-card-next{right:8px}
.pg-card-counter{
  position:absolute;
  z-index:5;
  top:9px;
  right:9px;
  min-width:44px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(33,28,27,.76);
  color:#fff;
  font-size:.74rem;
  font-weight:800;
  text-align:center;
  pointer-events:none;
}
.pg-lightbox{
  position:fixed;
  inset:0;
  z-index:100000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(14,10,10,.94);
  backdrop-filter:blur(8px);
}
.pg-lightbox.open{display:flex}
body.pg-lightbox-open{overflow:hidden}
.pg-lightbox-dialog{
  width:min(1180px,96vw);
  max-height:96vh;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  position:relative;
  border:1px solid rgba(255,226,154,.22);
  border-radius:20px;
  overflow:hidden;
  background:#171111;
  box-shadow:0 30px 90px rgba(0,0,0,.55);
}
.pg-lightbox-stage{
  min-height:min(74vh,780px);
  display:grid;
  place-items:center;
  position:relative;
  padding:20px 76px;
  background:#0e0b0b;
}
.pg-lightbox-image{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:74vh;
  object-fit:contain;
  object-position:center;
}
.pg-lightbox-close{
  position:absolute;
  z-index:8;
  top:12px;
  right:12px;
  width:44px;
  height:44px;
  border:0;
  border-radius:999px;
  background:rgba(82,8,13,.95);
  color:#fff;
  font-size:1.75rem;
  line-height:1;
  cursor:pointer;
}
.pg-lightbox-arrow{
  position:absolute;
  z-index:7;
  top:50%;
  transform:translateY(-50%);
  width:50px;
  height:50px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(82,8,13,.88);
  color:#fff;
  font-size:1.6rem;
  cursor:pointer;
}
.pg-lightbox-arrow:hover,.pg-lightbox-close:hover{background:#7a1117}
.pg-lightbox-prev{left:14px}
.pg-lightbox-next{right:14px}
.pg-lightbox-meta{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 20px;
  background:#24191a;
  color:#fff;
}
.pg-lightbox-meta strong{display:block;font-size:1.05rem;line-height:1.3}
.pg-lightbox-meta small{display:block;margin-top:3px;color:#d9c8c4;font-size:.82rem}
.pg-lightbox-counter{
  flex:0 0 auto;
  padding:7px 11px;
  border-radius:999px;
  background:#fff1c9;
  color:#52080d;
  font-size:.82rem;
  font-weight:900;
}
@media(max-width:700px){
  .product-image-shell{min-height:180px}
  .product-image{padding:8px!important}
  .pg-card-arrow{width:34px;height:34px;font-size:1rem}
  .pg-lightbox{padding:8px}
  .pg-lightbox-dialog{width:100%;max-height:98vh;border-radius:14px}
  .pg-lightbox-stage{min-height:66vh;padding:14px 50px}
  .pg-lightbox-image{max-height:70vh}
  .pg-lightbox-arrow{width:40px;height:40px;font-size:1.25rem}
  .pg-lightbox-prev{left:6px}
  .pg-lightbox-next{right:6px}
  .pg-lightbox-close{top:8px;right:8px;width:40px;height:40px}
  .pg-lightbox-meta{padding:12px 14px;min-height:66px}
}
