/* =====================================================
   PRODUTOS — Caixa Kennel
   Arquivo: /assets/css/produtos.css

   NOTA: Nav, breadcrumb e botão-voltar vêm de
   /assets/css/shared-ui.css (incluído no HTML).

   IDs usados pelo JS (NUNCA renomear):
   #productsGrid, #productModal, #productModalBody
   ===================================================== */

/* ─────────────────────────────────────────────
   Reset local
───────────────────────────────────────────── */
.produtos-page img { margin-bottom: 0; }
.produtos-page main { display: block; }
.produtos-page a { -webkit-tap-highlight-color: transparent; }

/* =====================================================
   HERO (Produtos)
===================================================== */
.produtos-hero-section {
  background: #000;
  padding: clamp(28px, 6vw, 70px) var(--spacing-md) clamp(20px, 4vw, 44px);
  text-align: center;
}

.produtos-hero-section h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin: 0 0 var(--spacing-md);
}

.produtos-hero-section h1 .font-protest {
  font-family: var(--font-impact);
  color: var(--color-primary);
}

/* ===================================
   PRODUTOS HERO DESC — moderno e discreto
   =================================== */

.produtos-hero-desc{
  max-width: 68ch;
  margin: 14px auto 0;
  padding: 14px 18px;

  font-size: clamp(.95rem, 1.6vw, 1.08rem);
  line-height: 1.85;
  letter-spacing: .01em;

  color: rgba(255,255,255,.78);      /* assume hero escuro */
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
}

/* Barra vermelha animada */
.produtos-hero-desc::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:3px;
  height:100%;
  background:var(--color-primary);
  transform:scaleY(0);
  transform-origin:top;
  animation:barraGrow 900ms cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes barraGrow{
  to{
    transform:scaleY(1);
  }
}

.produtos-hero-desc strong{
  color: #fff;
  font-weight: 800;
}

@media (max-width: 768px){
  .produtos-hero-desc{
    max-width: 92vw;
    margin-top: 12px;
    padding: 12px 14px;
    line-height: 1.75;
  }
}

@media (prefers-reduced-motion: reduce){
  .produtos-hero-desc{ transition: none !important; }
}

/* ========================================
   PRODUTOS HERO DECORATION - BARRA DEGRADÊ
   ======================================== */

.produtos-hero-decoration {
  height: 50px;
  background: linear-gradient(to bottom, #000 0%, #fff 100%);
}

/* =====================================================
   Banners
===================================================== */
.banner-topo {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 10px;
}

.banner-topo picture {
  width: 100%;
  max-width: 1200px;
}

.banner-topo img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* =====================================================
   Wrap principal
===================================================== */
.produtos-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

/* =====================================================
   SEO Intro
===================================================== */
.seo-intro-wrap {
  max-width: 1200px;
  margin: 0px auto 0;
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,.06);
}

.seo-intro-wrap .produtos-wrap {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-left: 3px solid var(--color-primary);
  padding-left: clamp(16px, 4vw, 44px);
}

.seo-intro-wrap p { color: var(--color-text-secondary); line-height: 1.85; }
.seo-intro-wrap p + p { margin-top: var(--spacing-sm); }
.seo-intro-wrap strong { color: var(--color-text); }
.seo-intro-wrap a { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.seo-intro-wrap a:hover { text-decoration: underline; }

/* =====================================================
   Header da seção
===================================================== */
.produtos-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.produtos-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.produtos-section-title small {
  display: block;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.produtos-count {
  font-size: .9rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 0;
  background: #fff;
}

/* =====================================================
   Grid de Produtos
===================================================== */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
}

/* =====================================================
   Modal: Galeria
===================================================== */
.produtos-modal .product-modal-content {
  gap: var(--spacing-lg);
}

.produtos-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.produtos-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  overflow: hidden;
}

.produtos-gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  filter: 0;
}

.produtos-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.produtos-thumb {
  border: 2px solid rgba(0,0,0,.08);
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 8px;
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.produtos-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.produtos-thumb:hover { transform: translateY(-1px); }

.produtos-thumb[aria-current="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(196,0,0,.12);
}

/* =====================================================
   CTA section
===================================================== */
.produtos-cta-section {
  background: #000;
  color: #fff;
  padding: var(--spacing-2xl) var(--spacing-md);
  text-align: center;
  margin-top: var(--spacing-2xl);
}

.produtos-cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  font-weight: 900;
  margin-bottom: var(--spacing-sm);
}

.produtos-cta-section p {
  color: rgba(255,255,255,.75);
  margin: 0 auto var(--spacing-lg);
  max-width: 620px;
  line-height: 1.7;
}

.cta-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.produtos-cta-section .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  min-height: 52px;
  border-radius: 0;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  background: var(--color-primary);
  color: #fff;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.produtos-cta-section .btn-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.produtos-cta-section .btn-cta:active { transform: translateY(0); }

/* =====================================================
   RESPONSIVO
===================================================== */
@media (max-width: 1024px) {
  .produtos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

@media (max-width: 768px) {
  .produtos-wrap { padding: var(--spacing-lg) var(--spacing-md); }
  .seo-intro-wrap .produtos-wrap { border-left-width: 3px; }

  .produtos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .produtos-thumbs { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
  .produtos-grid { grid-template-columns: 1fr; }
  .hero-pill { width: 100%; justify-content: center; }
}

/* acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .produtos-thumb { transition: none !important; }
}
