/* ===== PRODUTO PAGE ===== */

.produto-page .header {
  position: fixed;
  top: 0; left: 0; right: 0;
}
/* header transparente no topo (herda do styles.css),
   branco ao scrollar (classe .scrolled adicionada pelo JS) */

/* ===== HERO ===== */
.prod-hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: #080f1a;
}

/* Mosaico de tecidos como fundo — múltiplos tecidos lado a lado, muito desfocados */
.prod-hero__bg-img {
  position: absolute;
  inset: -5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  z-index: 0;
  filter: blur(18px) saturate(0.3) brightness(0.45);
  transform: scale(1.12);
}
.prod-hero__bg-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay de cor sobre o mosaico */
.prod-hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(27,111,168,0.55) 0%, transparent 60%),
    linear-gradient(160deg, rgba(8,15,26,0.88) 0%, rgba(13,40,72,0.75) 50%, rgba(8,15,26,0.92) 100%);
  z-index: 1;
}

/* Fade suave somente na borda inferior — sem área cinza */
.prod-hero__bg-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(to top, #f7f8fa, transparent);
  z-index: 2;
}

/* Linha decorativa horizontal */
.prod-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,132,196,0.4), transparent);
  z-index: 3;
}

.breadcrumb {
  position: relative; z-index: 4;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.45);
  margin-bottom: 48px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: .3s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 10px; }
.breadcrumb span { color: rgba(255,255,255,0.9); font-weight: 600; }

.prod-hero__content {
  position: relative; z-index: 4;
  max-width: 680px;
}

.prod-hero__badge {
  width: 64px; height: 64px;
  background: rgba(37,132,196,0.18);
  border: 1px solid rgba(37,132,196,0.35);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #2584C4;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.prod-hero__content h1 {
  font-size: clamp(2.6rem,5vw,4rem);
  font-weight: 900; color: #fff;
  line-height: 1.05; margin-bottom: 18px;
  letter-spacing: -1px;
}
.prod-hero__content h1 span {
  background: linear-gradient(90deg, #2584C4, #5BAEE8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prod-hero__content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.85; margin-bottom: 44px;
  max-width: 500px;
}

/* Stats — pills individuais em vez de bloco */
.prod-hero__stats {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.prod-hero__stat {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 10px 20px;
  backdrop-filter: blur(8px);
  transition: .3s;
}
.prod-hero__stat:hover {
  background: rgba(37,132,196,0.18);
  border-color: rgba(37,132,196,0.4);
}
.prod-hero__stat strong {
  font-size: 1.1rem; font-weight: 800; color: #fff;
}
.prod-hero__stat span {
  font-size: 12px; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 1px;
}

/* ===== GRID DE TECIDOS ===== */
.fabric-section { padding: 80px 0 100px; background: #f7f8fa; }

.fabric-section .section-intro {
  text-align: center;
  margin-bottom: 56px;
}
.fabric-section .section-intro h2 {
  font-size: 2rem; font-weight: 800;
  color: #1A2332; margin-bottom: 8px;
}
.fabric-section .section-intro p {
  color: #6B7A8D; font-size: 1rem;
}

.fabric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* ===== ANIMAÇÃO DE SCROLL NOS CARDS ===== */
.fabric-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s cubic-bezier(.4,0,.2,1),
              border-color .35s,
              opacity .6s ease,
              translate .6s ease;
  /* Estado inicial para a animação de entrada */
  opacity: 0;
  translate: 0 32px;
}
.fabric-card.visible {
  opacity: 1;
  translate: 0 0;
}
.fabric-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 48px rgba(27,111,168,0.16);
  border-color: #2584C4;
}

.fabric-card__img-wrap {
  position: relative; aspect-ratio: 1;
  overflow: hidden; background: #f0f0f0;
}
.fabric-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .35s ease;
  display: block;
}
.fabric-card:hover .fabric-card__img-wrap img {
  transform: scale(1.07);
  filter: brightness(0.48) blur(1.5px);
}

.fabric-card__hover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; opacity: 0; transition: .35s ease; z-index: 2;
}
.fabric-card:hover .fabric-card__hover { opacity: 1; }
.fabric-card__hover-icon {
  width: 52px; height: 52px;
  border: 2px solid rgba(255,255,255,0.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  transform: scale(0.7); transition: .35s ease;
}
.fabric-card:hover .fabric-card__hover-icon { transform: scale(1); }
.fabric-card__hover span {
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  transform: translateY(8px); transition: .35s ease 0.05s; opacity: 0;
}
.fabric-card:hover .fabric-card__hover span { transform: translateY(0); opacity: 1; }

.fabric-card__info { padding: 14px 16px; }
.fabric-card__code {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: #1B6FA8; text-transform: uppercase; display: block; margin-bottom: 4px;
}
.fabric-card__name {
  font-size: 1rem; font-weight: 700; color: #1A2332;
  margin-bottom: 4px; line-height: 1.2;
}
.fabric-card__comp { font-size: 11px; color: #8E9AAB; font-weight: 500; }

/* ===== MODAL ===== */
.fabric-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: all .35s ease;
}
.fabric-modal.open { opacity: 1; visibility: visible; }
.fabric-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,20,40,0.78);
  backdrop-filter: blur(6px);
}
.fabric-modal__box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 24px;
  width: 100%; max-width: 960px;
  max-height: 92vh; overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
.fabric-modal.open .fabric-modal__box { transform: scale(1) translateY(0); }
.fabric-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: #f3f5f7; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #6B7A8D; z-index: 10; transition: .2s;
}
.fabric-modal__close:hover { background: #e2e8f0; color: #1A2332; }
.fabric-modal__inner { display: grid; grid-template-columns: 1fr 1fr; }

/* Coluna imagem */
.fabric-modal__img-col {
  background: #f0f2f5;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.fabric-modal__zoom-wrap {
  position: relative; flex: 1; overflow: hidden;
  cursor: crosshair; user-select: none; min-height: 320px;
}
.fabric-modal__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block; pointer-events: none;
}
.fabric-modal__zoom-lens {
  position: absolute;
  width: 110px; height: 110px;
  border: 2px solid #2584C4; border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity .15s;
  background: rgba(37,132,196,0.06);
  box-shadow: 0 0 0 1px rgba(37,132,196,0.2), 0 4px 12px rgba(0,0,0,0.15);
  transform: translate(-50%, -50%);
}
.fabric-modal__zoom-result {
  width: 100%; height: 200px;
  border-top: 1px solid #e2e8f0;
  background: #0a1628 no-repeat; display: none;
}
.fabric-modal__zoom-result.active { display: block; }
.fabric-modal__zoom-hint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(10,20,40,0.65); color: #fff; font-size: 11px;
  padding: 5px 12px; border-radius: 20px; white-space: nowrap;
  pointer-events: none; backdrop-filter: blur(4px);
}

/* Mobile: imagem com pinch zoom nativo */
.fabric-modal__mobile-img-wrap {
  display: none; width: 100%;
  border-radius: 20px 20px 0 0; overflow: hidden;
}
.fabric-modal__mobile-img-wrap img {
  width: 100%; display: block;
  touch-action: pinch-zoom;
}

/* Coluna info */
.fabric-modal__info-col {
  padding: 40px 36px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.fabric-modal__code {
  font-size: 12px; font-weight: 800; letter-spacing: 3px;
  color: #1B6FA8; text-transform: uppercase; margin-bottom: 8px;
}
.fabric-modal__name {
  font-size: 2rem; font-weight: 900; color: #1A2332;
  line-height: 1.1; margin-bottom: 8px;
}
.fabric-modal__comp { font-size: 14px; color: #6B7A8D; margin-bottom: 24px; font-weight: 500; }
.fabric-modal__specs h4, .fabric-modal__care h4 {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; color: #8E9AAB; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.fabric-modal__specs h4 i, .fabric-modal__care h4 i { color: #1B6FA8; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.spec-item { background: #f7f8fa; border-radius: 10px; padding: 12px 14px; }
.spec-label {
  display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: 1px; color: #8E9AAB; font-weight: 700; margin-bottom: 4px;
}
.spec-val { font-size: 0.95rem; font-weight: 700; color: #1A2332; }
.care-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.care-item { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; color: #6B7A8D; line-height: 1.5; }
.care-item strong { display: block; font-size: 11px; font-weight: 700; color: #1A2332; margin-bottom: 1px; }
.care-icon {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.care-icon.wash  { background: #EBF5FF; color: #1B6FA8; }
.care-icon.bleach{ background: #FFF0F0; color: #E84040; }
.care-icon.dry   { background: #FFFBEB; color: #D97706; }
.care-icon.iron  { background: #F0FDF4; color: #16A34A; }
.care-icon.clean { background: #F5F3FF; color: #7C3AED; }
.fabric-modal__buy {
  width: 100%; justify-content: center;
  font-size: 15px; padding: 16px; margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px) {
  .fabric-grid { grid-template-columns: repeat(3,1fr); }
  .fabric-modal { padding: 0; align-items: flex-end; }
  .fabric-modal__box { border-radius: 20px 20px 0 0; max-height: 95vh; max-width: 100%; }
  .fabric-modal__inner { grid-template-columns: 1fr; }
  .fabric-modal__img-col { display: none; }
  .fabric-modal__mobile-img-wrap { display: block; }
  .fabric-modal__info-col { padding: 24px 20px; }
  .prod-hero__stats { gap: 8px; }
}
@media(max-width:600px) {
  .fabric-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .prod-hero { padding: 110px 0 70px; }
}
