/* =============================================
   COLCHÃO EMMA — Collection Page
   ============================================= */

/* ─── NAV ACTIVE ─── */
.nav-active { color: var(--orange) !important; }
.nav-active::after { width: 100% !important; }

/* ─── PAGE BODY ─── */
.col-page {
  background: #f5f2ee;
  min-height: 100vh;
  padding: 48px 0 96px;
}

.col-header {
  margin-bottom: 36px;
}
.col-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.col-sub {
  font-size: 0.95rem;
  color: #888;
}

/* ─── GRID ─── */
.col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── PRODUCT CARD ─── */
.pc {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.pc:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  transform: translateY(-4px);
}

/* ─── IMAGE AREA ─── */
.pc-img-wrap {
  position: relative;
  display: block;
  text-decoration: none;
}
.pc-img {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Photo style */
.pc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.pc:hover .pc-photo {
  transform: scale(1.04);
}

/* Mattress illustration */
.pc-layers {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.pc-mattress-img {
  width: 82%;
  border-radius: 10px 10px 6px 6px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.25),
    0 4px 16px rgba(0,0,0,0.15);
  transform: perspective(600px) rotateX(4deg);
}

/* --- DIAMOND COOLING layers --- */
.pml { width: 100%; }
.pml-1 { height: 16px; background: linear-gradient(90deg, #e8f4f8, #c8e8f4); border-bottom: 1px solid rgba(255,255,255,0.4); }
.pml-2 { height: 22px; background: linear-gradient(90deg, #4a90b8, #2a6a9a); }
.pml-3 { height: 20px; background: linear-gradient(90deg, #6aaa78, #4a8a58); }
.pml-4 { height: 60px; background: linear-gradient(90deg, #2a2a2a, #1a1a1a); }

/* --- HYBRID layers --- */
.pml-h1 { height: 14px; background: linear-gradient(90deg, #e8e8e8, #d0d0d0); }
.pml-h2 { height: 18px; background: linear-gradient(90deg, #5a8ab0, #3a6a90); }
.pml-h3 { height: 14px; background: linear-gradient(90deg, #d0d0d0, #b8b8b8); }
.pml-h4 { height: 44px; background: repeating-linear-gradient(90deg, #888 0px, #888 2px, #555 2px, #555 16px); opacity: 0.7; }
.pml-h5 { height: 28px; background: linear-gradient(90deg, #222, #111); }

/* --- ORIGINAL layers --- */
.pml-o1 { height: 18px; background: linear-gradient(90deg, #f0ece8, #d8d4d0); }
.pml-o2 { height: 22px; background: linear-gradient(90deg, #c89a6a, #a87a4a); }
.pml-o3 { height: 18px; background: linear-gradient(90deg, #88c0a0, #68a080); }
.pml-o4 { height: 50px; background: linear-gradient(90deg, #1a1a1a, #111); }

/* --- ONE LIGHT layers --- */
.pml-l1 { height: 16px; background: linear-gradient(90deg, #e8e8e8, #d4d4d4); }
.pml-l2 { height: 20px; background: linear-gradient(90deg, #90c0a8, #70a088); }
.pml-l3 { height: 46px; background: linear-gradient(90deg, #222, #111); }

/* --- ONE PLUS+ layers --- */
.pml-p1 { height: 16px; background: linear-gradient(90deg, #e8e4e0, #d0ccc8); }
.pml-p2 { height: 20px; background: linear-gradient(90deg, #e8b090, #c89070); }
.pml-p3 { height: 18px; background: linear-gradient(90deg, #90bac8, #70a0b0); }
.pml-p4 { height: 54px; background: linear-gradient(90deg, #1e1e1e, #111); }

/* --- DUO COMFORT layers --- */
.pml-d1 { height: 18px; background: linear-gradient(90deg, #e0dcd8, #ccc8c4); }
.pml-d2 { height: 24px; background: linear-gradient(90deg, #c8e0f0, #a8c8e0); }
.pml-d3 { height: 20px; background: linear-gradient(90deg, #f0c8a0, #d0a880); }
.pml-d4 { height: 46px; background: linear-gradient(90deg, #1a1a1a, #111); }

/* ─── BADGES ─── */
.pc-badge-discount {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #c0311a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  z-index: 3;
}
.pc-badge-label {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.92);
  color: #333;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  z-index: 3;
  white-space: nowrap;
}

/* ─── CARD BODY ─── */
.pc-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pc-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.3;
}
.pc-desc {
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ─── PRICE BLOCK ─── */
.pc-price-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 18px;
  flex: 1;
}
.pc-from {
  font-size: 0.75rem;
  color: #999;
}
.pc-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #c0311a;
  line-height: 1.2;
}
.pc-original {
  font-size: 0.78rem;
  color: #bbb;
  text-decoration: line-through;
}
.pc-pix {
  font-size: 0.75rem;
  color: #999;
}

/* ─── BUTTON ─── */
.pc-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #f5a623;
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.pc-btn:hover {
  background: #e8901f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

/* ─── TRUST BAR ─── */
.col-trust {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 18px 32px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.col-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}
.col-trust-item svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: #444;
}
.col-trust-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
}
.col-trust-sep {
  width: 1px;
  height: 30px;
  background: #e0e0e0;
  flex-shrink: 0;
}

/* ─── PROMO BANNERS ─── */
.col-promo {
  margin-top: 64px;
}
.col-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.col-promo-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  height: 320px;
  text-decoration: none;
}
.col-promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.col-promo-card:hover img { transform: scale(1.04); }
.col-promo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  pointer-events: none;
}
.col-promo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  color: #fff;
  padding: 24px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.col-promo-text { flex: 1; }
.col-promo-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.82;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.col-promo-overlay h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.col-promo-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-left: 16px;
  margin-bottom: 2px;
  transition: background 0.2s, border-color 0.2s;
}
.col-promo-card:hover .col-promo-arrow {
  background: rgba(255,255,255,0.18);
  border-color: #fff;
}

/* ─── REVIEWS CAROUSEL ─── */
.rev-section {
  padding: 64px 0 0;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.rev-viewport {
  position: relative;
  overflow: hidden;
}
.rev-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.rev-track::-webkit-scrollbar { display: none; }
.rev-card {
  background: #f9f7f4;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  flex: 0 0 calc(25% - 12px);
  scroll-snap-align: start;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .rev-card {
    flex: 0 0 calc(85% - 8px);
  }
}

/* ─── CAMAS GRID ─── */
.camas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .col-grid { grid-template-columns: repeat(2, 1fr); }
  .camas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .col-trust { flex-wrap: wrap; gap: 16px; padding: 16px 20px; }
  .col-trust-sep { display: none; }
  .col-promo-grid { grid-template-columns: 1fr; }
  .col-promo-card { height: 260px; }
}
@media (max-width: 600px) {
  .col-grid { grid-template-columns: 1fr; }
  .camas-grid { grid-template-columns: 1fr; }
  .pc-img { height: 220px; }
  .hamburger { display: flex; }
  .nav-left, .nav-right > a { display: none; }
}
