/* =========================================================
   Zlatnictví Zlatíčko - výběr tvaru destičky (popis produktu)
   Přidat na konec /user/documents/upload/khoder.css
   ========================================================= */

.zz-shapes {
  --zz-s-accent: #b8912a;          /* zlatá */
  --zz-s-accent-soft: #f6efdc;     /* jemná zlatá */
  --zz-s-border: #e8e4da;
  --zz-s-text: #2a2a2a;
  --zz-s-muted: #5a5a5a;
  --zz-s-bg: #ffffff;
  --zz-s-radius: 10px;

  max-width: 860px;
  margin: 40px auto;
  padding: 0 4px 12px;
  color: var(--zz-s-text);
  font-size: 16px;
  line-height: 1.6;
}

.zz-shapes__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 12px;
  color: var(--zz-s-text);
  padding-bottom: 14px;
  position: relative;
}

.zz-shapes__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--zz-s-accent);
  margin: 12px auto 0;
}

.zz-shapes__lead {
  text-align: center;
  color: var(--zz-s-muted);
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 15.5px;
}

/* Mřížka dlaždic --------------------------------------- */
.zz-shapes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zz-shapes__item {
  margin: 0;
  padding: 0;
}

.zz-shapes__item::marker {
  content: "";
}

.zz-shapes__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 14px 12px 16px;
  background: var(--zz-s-bg);
  border: 1px solid var(--zz-s-border);
  border-radius: var(--zz-s-radius);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.zz-shapes__link:hover,
.zz-shapes__link:focus-visible {
  border-color: var(--zz-s-accent);
  box-shadow: 0 2px 12px rgba(184, 145, 42, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.zz-shapes__img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: var(--zz-s-bg);
  margin-bottom: 12px;
}

.zz-shapes__name {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: var(--zz-s-text);
}

.zz-shapes__meta {
  display: block;
  font-size: 13.5px;
  color: var(--zz-s-muted);
  margin-top: 2px;
}

.zz-shapes__price {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--zz-s-accent);
}

/* Odkaz na celou kategorii ------------------------------ */
.zz-shapes__all {
  text-align: center;
  margin: 24px 0 0;
  font-size: 15.5px;
  line-height: 1.5;
}

.zz-shapes__all a {
  color: var(--zz-s-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.zz-shapes__all a:hover {
  text-decoration: none;
}

/* Mobil ------------------------------------------------- */
@media (max-width: 700px) {
  .zz-shapes {
    margin: 32px auto;
  }

  .zz-shapes__title {
    font-size: 23px;
  }

  .zz-shapes__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .zz-shapes__img {
    max-width: 120px;
    margin-bottom: 10px;
  }

  .zz-shapes__name {
    font-size: 15px;
  }
}
