/* assets/css/catalogo.css */

.page{ padding-top: 70px; }

/* HERO DA PÁGINA */
.page-hero{
  background: var(--gradient-hero);
  padding: 2.5rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero-card{
  border-radius: 16px;
  padding: 2rem;
  color: var(--white);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.page-title{ margin: .75rem 0; }

.page-subtitle{
  opacity: .9;
  max-width: 75ch;
}

.hero-actions{
  margin-top: 1.25rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* TOOLBAR */
.toolbar{
  margin-top: 1.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title{
  margin: 0;
  font-size: 1.5rem;
}

.section-subtitle{
  margin: .25rem 0 0;
  color: var(--gray-600);
}

/* GRID DE CARDS */
.grid{
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.product-media {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  padding: 1rem;
  border-radius: 12px 12px 0 0; /* arredonda só o topo */
  overflow: hidden;
  flex-shrink: 0; /* não encolhe */
  height: 300px; /* altura fixa para todas as imagens */
}

.product-media img{
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  align-items: center;
}



/* CARD */
.card{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;

  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,102,0,.35);
}

.card-top{ display: grid; gap: .65rem; }

.card-title{
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--gray-900);
}

.card-desc{
  margin: 0;
  color: var(--gray-600);
  line-height: 1.5;
}

.card-bottom{
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

/* CHIP (TAG) */
.chip{
  display: inline-flex;
  width: fit-content;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .75rem;

  color: var(--primary-color);
  background: rgba(255,102,0,.10);
  border: 1px solid rgba(255,102,0,.18);
}

/* BOTÃO PEQUENO */
.btn-small{
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .95rem;
}

/* CTA FINAL */
.catalog-cta{
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;

  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
  border: 1px solid var(--gray-200);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.catalog-cta-text{
  color: var(--gray-800);
  font-weight: 600;
  max-width: 70ch;
}
/* Card principal */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%; /* garante que todos tenham a mesma altura */
}

/* Corpo do card: centraliza tudo */
.product-body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  flex: 1;
  text-align: center; /* centraliza textos */
  
}

/* TAG CHIP: fica à esquerda */
.chip {
  display: inline-flex;
  width: fit-content;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .75rem;
  color: var(--primary-color);
  background: rgba(255,102,0,.10);
  border: 1px solid rgba(255,102,0,.18);
  align-self: flex-start; /* força chip à esquerda */
  margin-bottom: 0.5rem;
}

/* Título e descrição: centralizados */
.product-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--gray-900);
  text-align: center;
}

.product-desc {
  margin: 0 0 1rem 0; /* espaço para os botões */
  color: var(--gray-600);
  line-height: 1.5;
  text-align: center;
}

/* Botões: centralizados na base */
.product-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

/* Container dos marketplaces */
.listMkt {
  display: none;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.listMkt.active {
  display: block;
}


/* Lista horizontal com efeito glass */
.listMkt ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 5px;
  justify-items: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 102, 0, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
/* Logo individual: botão moderno */
.listMkt li {
  width: 100%;
  display: flex;
  justify-content: center;
}
.listMkt a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


/* Cores oficiais por marketplace */
.listMkt a[data-platform="shopee"] { 
  --hover-bg: #ee4d2d;
  --glow: #ff6b35;
}
.listMkt a[data-platform="mercadolivre"] { 
  --hover-bg: #00a650;
  --glow: #00d167;
}
.listMkt a[data-platform="tiktok"] { 
  --hover-bg: #000;
  --glow: #ff0050;
}
.listMkt a[data-platform="shein"] { 
  --hover-bg: #fa2c5f;
  --glow: #ff4d7a;
}

/* Imagem da logo */
.listMkt img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
}

/* Hover: escala + cor oficial + glow */
.listMkt a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 24px rgba(255, 102, 0, 0.18);
}

/* Botão Comprar: mais moderno */
.product-actions .btn-primary {
  width: 100%;
  padding: 14px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  box-shadow: 0 8px 24px rgba(255, 102, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.product-actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.product-actions .btn-primary:hover::before {
  left: 100%;
}

.product-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 102, 0, 0.4);
}

/* Responsivo */
@media (max-width: 520px) {
  .listMkt ul {
    gap: 8px;
    padding: 10px;
  }
  
  .listMkt a {
    width: 44px;
    height: 44px;
  }

}
/* Botão principal */
.btn-primary.btn-small {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  max-width: 160px;
}

/* Hover do card inteiro */
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,102,0,.35);
}

/* RESPONSIVO */
@media (max-width: 1100px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr));
justify-content: center; }
}

@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr;
  grid-template-columns: minmax(0, 360px); /* largura máxima do card no mobile */
    justify-content: center; }
  .hero-actions .btn{ width: 100%; }
  .catalog-cta .btn{ width: 100%; }

}



.avalicao {
  color: rgb(0, 145, 255);
  cursor: pointer;
  padding-bottom: 5px;
}

/* Modal de avaliação Shopee */
.shopee-link {
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--transition);
  margin: 1rem 0;
}

.shopee-link:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.shopee-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shopee-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: 24px;
  max-width: 95vw;
  max-height: 90vh;
  width: 600px;
  position: relative;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
}

.shopee-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.modal-body {
  padding: 0;
  max-height: 70vh;
  overflow: auto;
}

.shopee-screenshot {
  width: 100%;
  height: auto;
  border-radius: 0 0 24px 24px;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.modal-actions {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .modal-content {
    width: 95vw;
    margin: 1rem;
  }
  
  .modal-header,
  .modal-actions {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
