.velora-home-catalog-showcase {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.velora-home-catalog-showcase--draft-hidden {
  opacity: 0.55;
}

.velora-home-catalog-showcase__draft-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  border-radius: 4px;
}

.velora-home-catalog-showcase__title {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}

body.velora-design-active .velora-home-catalog-showcase__title {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

body.velora-design-active .velora-home-catalog-showcase__title.velora-design-editable,
body.velora-design-active .velora-home-catalog-showcase__title.velora-design-editable.velora-design-editing {
  display: block;
  text-align: center;
}

.velora-home-catalog-showcase__grid {
  display: grid;
  grid-template-columns: repeat(var(--velora-catalog-cols-desktop, 3), minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.velora-home-catalog-showcase__grid.is-visible {
  opacity: 1;
  transform: none;
}

body.velora-design-active .velora-home-catalog-showcase__grid {
  opacity: 1;
  transform: none;
}

body.velora-design-active .velora-home-catalog-showcase__grid {
  grid-template-columns: repeat(var(--velora-catalog-cols, var(--velora-catalog-cols-desktop, 3)), minmax(0, 1fr));
}

body.velora-design-active.velora-design-preview-tablet .velora-home-catalog-showcase__grid,
body.velora-design-active.velora-design-preview-mobile .velora-home-catalog-showcase__grid {
  grid-template-columns: repeat(var(--velora-catalog-cols, var(--velora-catalog-cols-mobile, 1)), minmax(0, 1fr));
}

@media (max-width: 899px) {
  body:not(.velora-design-active) .velora-home-catalog-showcase__grid {
    grid-template-columns: repeat(var(--velora-catalog-cols-mobile, 1), minmax(0, 1fr));
  }
}

.velora-home-catalog-showcase__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1rem, 2.4vw, 1.35rem);
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border-radius: 0;
  overflow: visible;
  color: var(--velora-text, #18181b);
  font: inherit;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.velora-home-catalog-showcase__card:focus-visible {
  outline: 2px solid var(--color-button-bg, var(--velora-accent, #2563eb));
  outline-offset: 4px;
  border-radius: min(1.25rem, 1rem);
}

.velora-home-catalog-showcase__card-media {
  display: block;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: min(1.25rem, 1.25rem);
  background: #f2f2f2;
}

.velora-home-catalog-showcase__card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.velora-home-catalog-showcase__card-img--empty {
  min-height: 100%;
  background: linear-gradient(145deg, #f4f4f5 0%, #e4e4e7 100%);
}

@media (hover: hover) {
  .velora-home-catalog-showcase__card:hover .velora-home-catalog-showcase__card-img:not(.velora-home-catalog-showcase__card-img--empty) {
    transform: scale(1.03);
  }
}

.velora-home-catalog-showcase__card-body {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 0.65rem;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.velora-home-catalog-showcase__card-title {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--velora-catalog-card-title-color, var(--velora-text, #18181b));
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.velora-home-catalog-showcase__card-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--velora-catalog-card-desc-color, rgba(24, 24, 27, 0.68));
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  align-self: start;
}

.velora-home-catalog-showcase__card-more {
  align-self: start;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(
    --velora-catalog-read-more-color,
    var(--color-button-bg, var(--velora-accent, #2563eb))
  );
  background: transparent;
  border-radius: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

.velora-home-catalog-showcase__card-arrow {
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .velora-home-catalog-showcase__card:hover .velora-home-catalog-showcase__card-arrow {
    transform: translateX(3px);
  }
}

/* Modal */
.velora-catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  .velora-catalog-modal {
    align-items: center;
    padding: 1.5rem;
  }
}

.velora-catalog-modal[hidden] {
  display: none !important;
}

.velora-catalog-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(6, 8, 14, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.velora-catalog-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: scale(0.98) translateY(8px);
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  .velora-catalog-modal__panel {
    border-radius: 16px;
  }
}

.velora-catalog-modal.is-open .velora-catalog-modal__panel {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.velora-catalog-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.velora-catalog-modal__hero {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0f0f12;
  overflow: hidden;
}

.velora-catalog-modal__hero-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.velora-catalog-modal__hero-layer.is-active {
  opacity: 1;
  z-index: 1;
}

.velora-catalog-modal__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.velora-catalog-modal__thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.velora-catalog-modal__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  background: #f0f0f0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.velora-catalog-modal__thumb.is-active {
  border-color: var(--velora-accent, #2563eb);
  transform: scale(1.03);
}

.velora-catalog-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.velora-catalog-modal__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1.15rem 1.25rem 1.5rem;
}

.velora-catalog-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.velora-catalog-modal__desc {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  white-space: pre-wrap;
}

.velora-catalog-modal__cta {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  text-decoration: none;
}