/* PlaySpotStore V6 — mobile GTA section + tappable full-resolution stock gallery.
   Kept separate from existing styles to preserve desktop design and V5 menu/grid. */
#produse-noi .p3-photo-grid figure[role="button"] {
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  outline-offset: 4px;
}
#produse-noi .p3-photo-grid figure[role="button"]:focus-visible {
  outline: 3px solid #71ffd0 !important;
}
#produse-noi .p3-photo-grid figure[role="button"]::after {
  content: '⛶';
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(165,255,226,.55);
  border-radius: 9px;
  background: rgba(2,18,25,.81);
  color: #baffdf;
  font: 700 21px/1 Arial,sans-serif;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  pointer-events: none;
}
#produse-noi .p3-photo-grid figure[role="button"]:hover img {
  filter: brightness(1.06);
}
/* Lightbox uses native <dialog> for focus containment and Escape support. */
dialog.p6-lightbox {
  position: fixed !important;
  inset: 0 !important;
  box-sizing: border-box !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: max(11px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(2,10,18,.98) !important;
  color: #edfff7 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  z-index: 21000 !important;
}
dialog.p6-lightbox[open] {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
}
dialog.p6-lightbox::backdrop {background:rgba(0,4,10,.91)}
.p6-lightbox .p6-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  width: 100%;
}
.p6-lightbox .p6-title {
  color: #ebfff6 !important;
  flex: 1;
  min-width: 0;
  margin: 0;
  font: 750 clamp(14px, 2.6vw, 20px)/1.35 Inter, Arial, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p6-lightbox .p6-counter {color:#8bf9c7 !important;font:600 13px Inter,Arial,sans-serif;white-space:nowrap}
.p6-lightbox .p6-control {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid rgba(111,255,201,.46) !important;
  border-radius: 11px !important;
  background: rgba(21,52,58,.94) !important;
  color: #d8fff2 !important;
  font: 700 15px Inter,Arial,sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0,0,0,.24);
}
.p6-lightbox .p6-control:hover,
.p6-lightbox .p6-control:focus-visible {background:#226253!important;outline:2px solid #72f7bb;outline-offset:2px}
.p6-lightbox .p6-close {font-size:27px;line-height:1}
.p6-lightbox .p6-stage {position:relative;display:flex;flex:1 1 auto;min-height:0;align-items:stretch;justify-content:center;overflow:hidden}
.p6-lightbox .p6-viewer {display:flex;flex:1;min-height:0;min-width:0;justify-content:center;align-items:center;overflow:hidden;touch-action:pinch-zoom}
.p6-lightbox .p6-image {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:8px;
  box-shadow:0 8px 34px rgba(0,0,0,.48);
  cursor:zoom-in;
}
.p6-lightbox.zoomed .p6-viewer {display:block;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;-webkit-overflow-scrolling:touch}
.p6-lightbox.zoomed .p6-image {
  width:max(100%,min(1500px,270vw)) !important;
  max-width:none !important;
  max-height:none !important;
  height:auto !important;
  margin:0 auto;
  cursor:zoom-out;
}
.p6-lightbox .p6-arrow {position:absolute;top:50%;transform:translateY(-50%);z-index:2;font-size:28px!important;opacity:.92}
.p6-lightbox .p6-prev {left:6px}
.p6-lightbox .p6-next {right:6px}
.p6-lightbox .p6-footer {display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;flex:0 0 auto;min-height:43px}
.p6-lightbox .p6-open-original{font:650 13px Inter,Arial,sans-serif;color:#a4ffdc!important;text-decoration:underline;text-underline-offset:3px;padding:10px}
.p6-lightbox .p6-open-original:hover{color:#fff!important}
@media (max-width:650px) {
  dialog.p6-lightbox[open] {gap:8px!important}
  .p6-lightbox .p6-toolbar {min-height:42px}
  .p6-lightbox .p6-arrow {top:auto;bottom:6px;transform:none;min-width:38px;min-height:38px;padding:4px 8px}
  .p6-lightbox .p6-viewer {padding-bottom:45px}
  .p6-lightbox.zoomed .p6-viewer {padding-bottom:0}
  .p6-lightbox .p6-footer {gap:3px}
  .p6-lightbox .p6-control.p6-zoom {font-size:13px}
}
/* Compact GTA 6 treatment is phone/tablet-only. Desktop remains unchanged. */
@media (max-width:900px) {
  #gta6.p3-launch {
    scroll-margin-top:calc(var(--header-height,72px) + 18px) !important;
    padding:32px 18px 38px !important;
  }
  #gta6 .p3-inner {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-areas:
      'badge'
      'title'
      'art'
      'copy'
      'actions' !important;
    align-items:start !important;
    gap:15px !important;
    width:100% !important;
    max-width:620px !important;
    margin-inline:auto !important;
  }
  #gta6 .p3-copy {display:contents !important}
  #gta6 .p3-copy > .p3-label {grid-area:badge;justify-self:start;max-width:100%;font-size:11px!important;padding:7px 12px!important;margin:0!important}
  #gta6 .p3-copy > h2 {grid-area:title;font-size:clamp(29px,7.7vw,40px)!important;line-height:1.14!important;margin:0!important;letter-spacing:-.05em!important}
  #gta6 > .p3-inner > .p3-art {
    grid-area:art;
    display:block;
    justify-self:center;
    width:100% !important;
    max-width:620px !important;
    height:auto !important;
    aspect-ratio:1000 / 550;
    object-fit:contain !important;
    object-position:center;
    margin:0 !important;
    border-radius:13px !important;
  }
  #gta6 .p3-copy > p {grid-area:copy;font-size:clamp(14px,3.75vw,16px)!important;line-height:1.56!important;max-width:none!important;margin:0!important}
  #gta6 .p3-actions {
    grid-area:actions;
    display:grid !important;
    width:100%;
    grid-template-columns:minmax(0,1.5fr) minmax(0,.83fr);
    gap:10px !important;
    margin:2px 0 0 !important;
    align-items:stretch;
  }
  #gta6 .p3-actions .p3-btn {
    box-sizing:border-box !important;
    min-width:0 !important;
    width:100% !important;
    min-height:51px !important;
    padding:10px 9px !important;
    font-size:clamp(12px,3.3vw,14px) !important;
    line-height:1.3 !important;
    text-align:center !important;
    white-space:normal !important;
    margin:0 !important;
  }
}
@media (max-width:355px) {
  #gta6 .p3-actions {grid-template-columns:1fr!important}
  #gta6 .p3-actions .p3-btn {min-height:45px!important}
  #gta6 .p3-copy > h2 {font-size:28px!important}
}
@media (prefers-reduced-motion:reduce) {
  #produse-noi .p3-photo-grid figure,
  .p6-lightbox .p6-control {transition:none!important;animation:none!important}
}
