/* 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 img{
  aspect-ratio: auto;
  height: 160px; /* teste 140–180px */
}



/* 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;
}

/* 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;
  }
}
