/* Витрина Molochko — сетка работ и плавающая кнопка */
.vitrina-fab-wrap {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 9000;
  animation: vitrina-float 3s ease-in-out infinite;
}

.vitrina-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9f68, #ffb88a);
  color: #3a2418;
  font: 800 15px/1 Manrope, system-ui, sans-serif;
  text-decoration: none;
  border: 0;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .55),
    0 12px 32px rgba(255, 159, 104, .45);
}

.vitrina-fab:hover {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .65),
    0 16px 36px rgba(255, 159, 104, .55);
}

.vitrina-fab-cow {
  width: 30px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.vitrina-fab-publish {
  bottom: 86px;
  background: linear-gradient(135deg, #fff, #fff8ef);
  border-color: #f0d9c4;
  box-shadow: 0 12px 28px rgba(58, 36, 24, .18);
  animation: vitrina-float 3.2s ease-in-out infinite;
  cursor: pointer;
  font-family: inherit;
}

.vitrina-fab-publish:disabled {
  opacity: .65;
  cursor: wait;
}

.vitrina-fab-publish.done {
  background: linear-gradient(135deg, #e8f8ef, #fff);
  border-color: #b8e6c8;
}

@keyframes vitrina-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 680px) {
  .vitrina-fab-label { display: none; }
  .vitrina-fab { padding: 14px 16px; }
  .vitrina-fab-publish { bottom: 78px; }
}

.vitrina-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.vitrina-tabs button {
  border: 1px solid #f0d9c4;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font: 700 14px Manrope, sans-serif;
  color: #6b5344;
  cursor: pointer;
}

.vitrina-tabs button.active {
  background: #fff3e6;
  border-color: #ff9f68;
  color: #3a2418;
}

.vitrina-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.vitrina-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(58, 36, 24, .08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(58, 36, 24, .06);
}

.vitrina-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff8ef;
}

.vitrina-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 14px;
}

.vitrina-card__title {
  font: 700 14px/1.3 Manrope, sans-serif;
  margin: 0 0 8px;
  color: #3a2418;
}

.vitrina-card__prompt {
  font: 500 13px/1.45 Manrope, sans-serif;
  color: #8e6d58;
  margin: 0 0 10px;
  min-height: calc(3 * 1.45 * 13px);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vitrina-card__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: auto;
}

.btn-like,
.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  border-radius: 999px;
  padding: 8px 14px;
  font: 700 14px Manrope, sans-serif;
  cursor: pointer;
  color: #3a2418;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-like {
  background: #fff8ef;
  border: 1px solid #f0d9c4;
}

.btn-share {
  background: rgba(255, 255, 255, .72);
  border: 1px solid #f0d9c4;
}

.btn-like [data-likes] {
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}

.like-icon-wrap {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.like-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

.like-icon--off {
  color: #b39b8a;
}

.like-icon--on {
  color: #e85d6a;
  display: none;
}

.btn-like.liked .like-icon--off {
  display: none;
}

.btn-like.liked .like-icon--on {
  display: flex;
}

.btn-like.liked {
  background: #ffe8ec;
  border-color: #ffb3c1;
}

.gallery-admin-del {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.vitrina-card .gallery-admin-del {
  top: 8px;
  right: 8px;
}

.vitrina-empty {
  text-align: center;
  padding: 48px 20px;
  color: #8e6d58;
}

.showcase-shell { min-height: 100vh; }
.showcase-main { max-width: 720px; margin: 0 auto; }
.showcase-main h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin: 8px 0 20px; }

.showcase-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(58, 36, 24, .08);
  padding: 16px;
  box-shadow: 0 12px 32px rgba(58, 36, 24, .08);
}

.showcase-img-wrap {
  position: relative;
  margin-bottom: 20px;
}

.showcase-img-wrap img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.showcase-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 14px;
  padding-top: 2px;
}

.showcase-actions-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.showcase-actions-row::-webkit-scrollbar {
  display: none;
}

.showcase-actions .btn-share,
.showcase-actions .btn-like {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
  padding: 8px 12px;
  min-height: 40px;
  text-decoration: none;
}

.showcase-actions .btn-share {
  background: rgba(255, 159, 104, .14);
  border: 1px solid rgba(255, 159, 104, .38);
  color: #3a2418;
}

.showcase-actions .btn-share:hover {
  background: rgba(255, 159, 104, .24);
  border-color: rgba(255, 159, 104, .55);
}

.showcase-size {
  flex: 0 0 auto;
  align-self: center;
  font-size: 13px;
  font-weight: 700;
  color: #8e6d58;
  white-space: nowrap;
  padding: 0 2px 0 4px;
  line-height: 1.2;
}

.showcase-actions .btn-vitrina:not(.done) {
  background: rgba(255, 214, 223, .5);
  border-color: rgba(240, 180, 196, .85);
}

.showcase-actions .btn-vitrina:not(.done):hover {
  background: rgba(255, 214, 223, .72);
}

.showcase-actions .btn-vitrina.done {
  background: linear-gradient(135deg, #e8f8ef, #fff);
  color: #2f7a4f;
  border-color: #b8e6c8;
  cursor: default;
}

.showcase-shell .showcase-main {
  padding-bottom: 28px;
}

@media (max-width: 640px) {
  .showcase-actions {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 8px;
  }

  .showcase-actions-row {
    flex: 1 1 100%;
    width: 100%;
  }

  .showcase-actions .btn-vitrina {
    flex: 0 0 auto;
    margin-left: 0;
  }
}

.showcase-prompt {
  font: 500 15px/1.55 Manrope, sans-serif;
  color: #6b5344;
  margin: 0;
  padding: 12px 14px;
  background: #fff8ef;
  border-radius: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.showcase-back { margin-top: 24px; }
.showcase-back a { color: #8e6d58; font-weight: 700; }

.vitrina-toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%) translateY(120%);
  z-index: 9100;
  background: #3a2418;
  color: #fff;
  padding: 12px 20px;
  border-radius: 14px;
  font: 600 14px Manrope, sans-serif;
  transition: transform .35s ease;
  pointer-events: none;
}

.vitrina-toast.show { transform: translateX(-50%) translateY(0); }
