/* ==========================================================================
   Curadoria de Produtos (Loja) Specific Styles
   ========================================================================== */

/* Hero Section */
.hero-loja {
  background: radial-gradient(circle at 80% 50%, rgba(200, 169, 107, 0.08) 0%, rgba(15, 23, 42, 0) 60%), #0F172A;
  color: var(--branco);
  padding: 140px 0 100px;
  text-align: left;
}

.hero-loja-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
}

.hero-loja-text {
  display: flex;
  flex-direction: column;
}

.hero-loja h1 {
  color: var(--branco);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-loja .subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--dourado-discreto);
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.4;
}

.hero-loja .description {
  font-size: 1.05rem;
  color: #94A3B8;
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 400;
  max-width: 600px;
}

.hero-loja-actions {
  display: flex;
  gap: 16px;
}

.hero-loja-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.hero-loja-image {
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4)) drop-shadow(0 4px 10px rgba(200, 169, 107, 0.05));
  transition: transform 0.5s ease;
}

.hero-loja-image:hover {
  transform: scale(1.02);
}

/* Why TH Store Section */
.why-section {
  padding: 80px 0;
  background-color: var(--branco);
  border-bottom: 1px solid #E2E8F0;
  text-align: center;
}

.why-section h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--azul-profundo);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.why-desc {
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
  color: var(--cinza-texto);
  line-height: 1.8;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.why-card {
  background-color: var(--cinza-claro);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 169, 107, 0.3);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.02);
}

.why-card-icon {
  color: var(--dourado-discreto);
  font-size: 1.25rem;
  margin-top: 2px;
}

.why-card-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--azul-profundo);
  margin-bottom: 8px;
  line-height: 1.4;
}

.why-card-content p {
  font-size: 0.9rem;
  color: var(--cinza-texto);
  line-height: 1.5;
  margin: 0;
}

/* Categories Section */
.categories-container {
  max-width: 1200px;
  margin: -40px auto 40px;
  padding: 0 20px;
  position: relative;
  z-index: 20;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.category-card {
  background-color: var(--branco);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.category-card i {
  font-size: 1.4rem;
  color: var(--azul-profundo);
  transition: color 0.3s ease, transform 0.3s ease;
}

.category-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cinza-texto);
  transition: color 0.3s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 169, 107, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.category-card:hover i {
  color: var(--dourado-discreto);
  transform: scale(1.1);
}

.category-card.active {
  background-color: var(--branco);
  border-color: var(--dourado-discreto);
  box-shadow: 0 4px 20px rgba(200, 169, 107, 0.15);
}

.category-card.active i {
  color: var(--dourado-discreto);
}

.category-card.active span {
  color: var(--azul-profundo);
  font-weight: 700;
}

/* Filter Controls Panel */
.filter-controls-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  background-color: var(--branco);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  gap: 20px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cinza-texto);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab:hover {
  color: var(--azul-profundo);
  background-color: var(--cinza-claro);
}

.filter-tab.active {
  background-color: var(--azul-profundo);
  color: var(--branco);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
}

.search-box i {
  position: absolute;
  left: 12px;
  color: var(--cinza-texto);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--azul-profundo);
  outline: none;
  transition: all 0.3s ease;
  background-color: #F8FAFC;
}

.search-box input:focus {
  border-color: var(--dourado-discreto);
  background-color: var(--branco);
  box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.15);
}

/* Responsive Controls */
@media (max-width: 768px) {
  .filter-controls-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  
  .filter-tabs {
    justify-content: center;
  }
  
  .search-box {
    max-width: 100%;
  }
}

/* Products Section */
.products-section {
  padding: 80px 0;
  background-color: var(--cinza-claro);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

/* Product Card */
.product-card {
  background-color: var(--branco);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.product-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 169, 107, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #F8FAFC;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(15, 23, 42, 0.9);
  color: var(--branco);
  font-size: 0.65rem;
  font-weight: 750;
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(200, 169, 107, 0.3);
  z-index: 10;
}

.product-badge.used {
  background-color: rgba(200, 169, 107, 0.95);
  color: #0F172A;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.product-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--azul-profundo);
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.product-rating i {
  color: var(--dourado-discreto);
  font-size: 0.85rem;
}

.product-opinion {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--azul-profundo);
  line-height: 1.6;
  margin-bottom: 28px;
  flex-grow: 1;
}

.btn-store {
  width: 100%;
  background-color: var(--azul-profundo);
  color: var(--branco);
  border: 1px solid var(--azul-profundo);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-store:hover {
  background-color: var(--dourado-discreto);
  border-color: var(--dourado-discreto);
  color: var(--branco);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 169, 107, 0.2);
}

.btn-store i {
  font-size: 1rem;
}

/* Animations */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-loja-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-loja {
    text-align: center;
    padding: 120px 0 80px;
  }
  
  .hero-loja .description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-loja-actions {
    justify-content: center;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 600px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
