/* =========================================================
   Kindlewood — home.css
   Estilos exclusivos da homepage.
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 16px;
}

.hero-media {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bark);
  box-shadow: 0 30px 60px -30px rgba(59, 42, 32, .6);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 30em;
  margin-bottom: 32px;
}

/* ---------- Vantagens ---------- */
.perks {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.perks .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 20px;
}

.perk strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.perk p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Loja (produto em destaque) ---------- */
.shop {
  padding: 80px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
}

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
}

.featured-media {
  display: block;
  border-radius: 20px;
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.featured-body {
  padding-right: 24px;
}

.featured-body .badge {
  display: inline-block;
  background: #F3E2D3;
  color: var(--ember-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.featured-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.featured-body h3 a {
  text-decoration: none;
}

.featured-body p {
  color: var(--muted);
}

.featured-price {
  margin: 18px 0 14px;
  font-size: 20px;
  color: var(--bark) !important;
  font-weight: 600;
}

.featured-points {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 26px;
  font-size: 15px;
}

.featured-points li::before {
  content: "✓";
  color: var(--ember);
  font-weight: 600;
  margin-right: 10px;
}

/* ---------- Mais produtos (grade do shop.js) ---------- */
.home-more {
  margin-top: 56px;
}

.home-more-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.home-more-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 30px);
}

.home-more-head a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ember-dark);
  white-space: nowrap;
}

/* Linha em roda, igual ao "You may also like" (js/shop.js) */
.home-more .rail {
  position: relative;
}

.home-more .rail-view {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  overflow-y: visible;
}

.home-more .rail-incoming {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.home-more .product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.home-more .product-card .carousel-arrow {
  display: none;
}

.home-more .rail-arrow {
  top: var(--rail-mid, 35%);
}

.home-more .rail-arrow.prev {
  left: -20px;
}

.home-more .rail-arrow.next {
  right: -20px;
}

.home-more .rail-static .rail-arrow {
  display: none;
}

@media (max-width: 820px) {
  .home-more .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-more .rail-arrow {
    width: 36px;
    height: 36px;
  }

  .home-more .rail-arrow.prev {
    left: -10px;
  }

  .home-more .rail-arrow.next {
    right: -10px;
  }
}

.brand-note {
  color: var(--muted);
  max-width: 40em;
  margin: 56px auto 0;
  text-align: center;
}

@media (max-width: 820px) {
  .shop {
    padding: 56px 0;
  }

  .featured {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }

  .featured-body {
    padding: 0 8px 12px;
  }
   
  .home-more .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ---------- Categorias (home) ---------- */
.home-cats {
  margin-top: 64px;
}

.home-cats h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 20px;
}

.cat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-tile {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  color: #fff;
  text-decoration: none;
  background: var(--bark);
}

.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.cat-tile:hover img {
  transform: scale(1.04);
}

.cat-tile span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 18px;
  background: linear-gradient(to top, rgba(30, 20, 14, .82), rgba(30, 20, 14, 0));
  font-size: 14px;
  line-height: 1.4;
}

.cat-tile strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 2px;
}

@media (max-width: 820px) {
  .cat-tiles {
    grid-template-columns: 1fr;
  }

  .cat-tile {
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
  .hero {
    padding: 48px 0;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-media {
    aspect-ratio: 16 / 11;
  }

  .perks .wrap {
    grid-template-columns: 1fr 1fr;
  }
}