.product-card__image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.product-gallery {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  text-align: left;
}

.product-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.gallery-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.gallery-hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-lightbox.is-open {
  display: flex;
}

.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(6px);
}

.product-lightbox__dialog {
  position: relative;
  z-index: 2;
  width: min(980px, 96vw);
  max-height: 92vh;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.product-lightbox__image {
  width: 100%;
  height: min(72vh, 680px);
  object-fit: contain;
  display: block;
  background: #f8fafc;
}

.product-lightbox__close,
.product-lightbox__arrow {
  position: absolute;
  z-index: 4;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.product-lightbox__close {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 30px;
}

.product-lightbox__arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 38px;
  transform: translateY(-50%);
}

.product-lightbox__arrow--prev {
  left: 16px;
}

.product-lightbox__arrow--next {
  right: 16px;
}

.product-lightbox__close:hover,
.product-lightbox__arrow:hover {
  background: rgba(15, 23, 42, 0.98);
}

.product-lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: #111827;
}

.product-lightbox__count {
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 800;
  font-size: 13px;
}

body.lightbox-open {
  overflow: hidden;
}

.category-card-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.category-card-button:hover,
.category-card-button.active {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.category-card-button.active {
  background: #fff7f3;
}

.product-specs {
  margin: 8px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
  overflow: hidden;
}

.product-specs summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.product-specs ul {
  margin: 0;
  padding: 0 14px 12px 28px;
}

.product-specs li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0;
}

.admin-note {
  display: none;
}

@media (max-width: 640px) {
  .product-lightbox {
    padding: 10px;
  }

  .product-lightbox__dialog {
    width: 100%;
    border-radius: 18px;
  }

  .product-lightbox__image {
    height: 68vh;
  }

  .product-lightbox__arrow {
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

  .gallery-hint {
    display: none;
  }
}
