/* ============================================================
   FÁBRICA IMAGENS — prints.css
============================================================ */

/* --- BARRA DE GARANTIAS --- */
.trust-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trust-bar__inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 180px;
}

.trust-item__icon {
  font-size: 20px;
  background: var(--gradient-iris);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  line-height: 1;
}

.trust-item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.trust-item span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}


/* --- GALERIA DE PRINTS --- */
.prints-page {
  padding: 0;
}

/* Grid full-width sem container — encosta nas bordas */
.prints-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 420px;
  gap: 3px;
}

/* Card base */
.print-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}

/* Card alto: ocupa 2 linhas */
.print-item--tall { grid-row: span 2; }

/* Card largo: ocupa 2 colunas */
.print-item--wide { grid-column: span 2; }

/* Foto */
.print-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.5s ease;
  filter: grayscale(15%);
}

.print-item:hover .print-item__img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

/* Placeholder quando não há foto */
.print-item__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--border);
  pointer-events: none;
  z-index: 0;
}

/* Badges topo-esquerdo */
.print-item__badges {
  position: absolute;
  top: 16px; left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 10px;
  line-height: 1;
}

.badge--edition { background: var(--gradient-iris); color: #fff; }
.badge--avail   { background: rgba(13,13,13,0.82); color: var(--text-muted); border: 1px solid var(--border); }
.badge--new     { background: var(--accent); color: #fff; }
.badge--sold    { background: rgba(13,13,13,0.82); color: var(--text-muted); border: 1px solid var(--border); }

/* Overlay: sobe do fundo no hover */
.print-item__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  background: linear-gradient(to top,
    rgba(13,13,13,0.96) 0%,
    rgba(13,13,13,0.7)  60%,
    transparent         100%
  );
  padding: 40px 24px 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.print-item:hover .print-item__overlay {
  transform: translateY(0);
}

/* Em mobile o overlay fica sempre visível */
@media (hover: none) {
  .print-item__overlay { transform: translateY(0); }
}

.print-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.print-item__cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.print-item__edition {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.print-item__title {
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
}

.print-item__price {
  font-size: 12px;
  color: rgba(240,237,232,0.6);
  margin-bottom: 12px;
}

.print-item__price strong {
  color: var(--text);
  font-weight: 700;
}

.print-item__hint {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}


/* --- MODAL DE DETALHES --- */
.print-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.print-modal {
  position: fixed;
  inset: 0;
  z-index: 301;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.print-modal.open,
.print-modal.open ~ .print-modal__backdrop {
  opacity: 1;
  pointer-events: all;
}

.print-modal__box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.35s ease;
}

.print-modal.open .print-modal__box {
  transform: translateY(0);
}

/* Botão fechar */
.print-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 40px; height: 40px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.print-modal__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Lado esquerdo — imagem */
.print-modal__left {
  position: relative;
  background: var(--bg-card);
  aspect-ratio: unset;
  min-height: 400px;
}

.print-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.print-modal__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--border);
}

/* Lado direito — detalhes */
.print-modal__right {
  padding: 48px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.print-modal__right .label { margin-bottom: 8px; }

.print-modal__title {
  font-size: 28px;
  font-weight: 200;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.print-modal__desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Edição */
.print-modal__edition {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 24px;
}

.print-modal__edition-num {
  font-size: 32px;
  font-weight: 100;
  color: var(--accent);
  line-height: 1;
}

.print-modal__edition-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Tamanhos e preços */
.print-modal__sizes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}

.size-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.size-option:hover,
.size-option.selected {
  border-color: var(--accent);
  background: rgba(184, 40, 120, 0.06);
}

.size-option__label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.03em;
}

.size-option__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.size-option.selected .size-option__label,
.size-option.selected .size-option__price {
  color: var(--accent);
}

/* Especificações técnicas */
.print-modal__specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.spec-item {
  display: flex;
  gap: 16px;
  font-size: 12px;
  line-height: 1.5;
}

.spec-item__label {
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 80px;
  flex-shrink: 0;
}

.spec-item__value {
  color: var(--text-soft);
}

/* CTA */
.print-modal__cta {
  text-align: center;
  margin-bottom: 12px;
}

.print-modal__note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}


/* --- RESPONSIVO --- */
@media (max-width: 900px) {
  .prints-grid-full {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 320px;
  }
  .print-item--tall  { grid-row: span 1; }
  .print-item--wide  { grid-column: span 2; }

  .print-modal__box  { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .print-modal__left { min-height: 260px; }
  .print-modal__right { padding: 28px 24px; }
}

@media (max-width: 600px) {
  .prints-grid-full  { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .print-item--wide  { grid-column: span 1; }
  .trust-bar__inner  { gap: 20px; }
  .trust-item        { min-width: 140px; }
  .print-modal       { padding: 0; }
  .print-modal__box  { max-height: 100vh; border: none; }
}
