body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

/* Блок под фото: пока файла нет, видна подпись; когда файл положен в img/, фото закрывает блок */
.photo { position: relative; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Галерея товара */
.g-thumb { position: relative; overflow: hidden; }
.g-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-prev:hover, .g-next:hover { background: #FBCA02 !important; }
.g-stage:focus-visible, .g-thumb:focus-visible { outline: 3px solid #FBCA02; outline-offset: 2px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 12px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 26px; border: 0; background: rgba(254,254,254,0.92); color: #000; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: #FBCA02; }
