/* ============================================================
   Gallery menu — image-card layout.
   Shares design tokens, fonts, header, ticket, and modal styles
   with ../css/style.css; this file only adds the image-grid view.
   ============================================================ */

.gallery-menu {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 20px 40px;
}

.gallery-section {
  margin-top: 36px;
}

.gallery-section__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--green);
  margin: 0 0 4px;
  scroll-margin-top: 64px;
}

.gallery-section__rule {
  height: 1px;
  background: var(--rule);
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}

@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 680px) {
  .gallery-grid {
    gap: 28px 20px;
  }
}

.grid-item {
  display: flex;
  flex-direction: column;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px -14px rgba(36, 29, 21, 0.35);
}

.grid-item__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--rule);
}

.grid-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-item__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.grid-item__badge.best-seller-badge {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(2px);
}

.grid-item__control {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
}

.grid-item__add {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: var(--paper-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px -4px rgba(36, 29, 21, 0.5);
  transition: background 0.15s ease, transform 0.1s ease;
}

.grid-item__add:hover {
  background: var(--green-dark);
}

.grid-item__add:active {
  transform: scale(0.92);
}

.grid-item__stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--paper-raised);
  border-radius: 100px;
  padding: 6px 8px;
  box-shadow: 0 6px 14px -4px rgba(36, 29, 21, 0.5);
}

.grid-item__stepper button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: var(--paper-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.grid-item__stepper button:active {
  transform: scale(0.88);
}

.grid-item__stepper-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  min-width: 10px;
  text-align: center;
}

.grid-item__info {
  padding: 10px 12px 14px;
}

.grid-item__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.grid-item__price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 4px 0 0;
}
