/* ==========================================================================
   VITRINE DE PRODUTOS STREETWEAR — TREVO STORE
   Arquivo: styles/trevo-showcase.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CAMADA DA VITRINE (SHOWCASE SHEET)
   -------------------------------------------------------------------------- */
.showcase-sheet {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.98) 0%, rgba(6, 6, 8, 1) 120px, #060608 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 -20px 50px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: clamp(40px, 6vh, 64px) 20px clamp(48px, 8vh, 80px) 20px;
  box-sizing: border-box;
}

.showcase-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   2. CABEÇALHO DA VITRINE
   -------------------------------------------------------------------------- */
.showcase-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vh, 48px);
}

.showcase-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #4ade80;
  text-transform: uppercase;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.showcase-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-clover);
  box-shadow: 0 0 8px var(--accent-clover);
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.showcase-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. GRADE DE CARDS DE PRODUTOS
   -------------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
  margin-bottom: clamp(48px, 6vh, 64px);
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   5. CARD DE PRODUTO INDIVIDUAL
   -------------------------------------------------------------------------- */
.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 
    transform var(--transition-normal), 
    border-color var(--transition-fast), 
    box-shadow var(--transition-fast);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--bg-card-border-hover);
  box-shadow: 
    0 20px 36px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(255, 255, 255, 0.04);
}

/* Mídia do Card */
.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #09090c;
  overflow: hidden;
  cursor: pointer;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.product-card:hover .product-image {
  transform: scale(1.06);
}

/* Overlay sutil na imagem */
.product-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

/* Tags Flutuantes */
.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-silver);
}

.product-quickview-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-fast);
}

.product-card:hover .product-quickview-hint {
  opacity: 1;
  transform: scale(1);
}

.product-quickview-hint svg {
  width: 14px;
  height: 14px;
}

/* Informações do Produto */
.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-clover);
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 8px;
}

.product-spec {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 18px;
}

/* Botão de Consulta Direcionado ao Instagram */
.product-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.product-action-btn:hover {
  background: var(--text-white);
  border-color: var(--text-white);
  color: #000000;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.product-action-btn:active {
  transform: translateY(0);
}

.product-btn-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  transition: transform var(--transition-fast);
}

.product-action-btn:hover .product-btn-icon {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   6. MODAL DE ZOOM / DETALHES (QUICK VIEW LIGHTBOX)
   -------------------------------------------------------------------------- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-lg);
  background: #0e0e13;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-spring);
}

@media (min-width: 640px) {
  .modal-dialog {
    grid-template-columns: 1fr 1fr;
  }
}

.product-modal.is-open .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000000;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-clover);
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent-clover);
  padding-left: 10px;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   7. RODAPÉ DA VITRINE
   -------------------------------------------------------------------------- */
.showcase-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 36px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-white);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 16px auto;
  line-height: 1.5;
}

.footer-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(225, 48, 108, 0.12);
  border: 1px solid rgba(225, 48, 108, 0.35);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  transition: all var(--transition-fast);
}

.footer-instagram-link:hover {
  background: rgba(225, 48, 108, 0.25);
  border-color: rgba(225, 48, 108, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.footer-instagram-link svg {
  width: 16px;
  height: 16px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-copyright {
  font-size: 0.72rem;
  color: var(--text-faint);
}
