/* Página inicial da Loja 24K — vitrine de loja (categorias, produtos, campanhas, marcas). */

.h24 {
  padding-bottom: clamp(32px, 5vw, 64px);
}

.h24-sec {
  margin-top: clamp(36px, 5vw, 64px);
}

.h24-sec--band {
  padding-block: clamp(32px, 4vw, 52px);
  background: linear-gradient(180deg, var(--gold-soft), #fbf7ec);
  border-block: 1px solid var(--border);
}

.h24-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.h24-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.1;
  color: var(--fg);
}

.h24-head__link {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-deep);
  text-decoration: none;
  white-space: nowrap;
}

.h24-head__link:hover {
  text-decoration: underline;
}

/* ---------- Categorias com foto ---------- */
.h24-cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.h24-cat {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.h24-cat:hover {
  transform: translateY(-3px);
  border-color: var(--gold-display);
  box-shadow: var(--shadow-card);
}

.h24-cat__img {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gold-soft);
}

.h24-cat__img {
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  background: radial-gradient(circle at 30% 25%, #fff 0%, var(--gold-soft) 55%, #efe2bd 100%);
}

.h24-cat__img svg {
  width: 46%;
  height: 46%;
  transition: transform 0.35s ease;
}

.h24-cat:hover .h24-cat__img svg {
  transform: scale(1.08) rotate(-4deg);
}

.h24-cat__name {
  padding: 12px 14px 2px;
  font-weight: 800;
  font-size: 0.98rem;
}

.h24-cat__sub {
  padding: 0 14px 14px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

/* ---------- Grade de produtos ---------- */
.h24-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.h24-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.h24-card:hover {
  border-color: var(--gold-display);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.h24-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
}

.h24-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
}

.h24-card.is-out .h24-card__img img {
  opacity: 0.45;
}

.h24-card__tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.h24-tag {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.h24-tag--off {
  background: var(--gold-dark);
}

.h24-tag--out {
  background: #8a8174;
}

.h24-card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
}

.h24-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
  border-top: 1px solid var(--bg-2);
}

.h24-card__brand {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.h24-card__name {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--fg);
  text-decoration: none;
}

.h24-card__name:hover {
  color: var(--gold-deep);
}

.h24-card__rating {
  font-size: 0.8rem;
  color: var(--gold-dark);
}

.h24-card__rating small {
  color: var(--muted);
}

.h24-card__price {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 4px;
}

.h24-card__price s {
  font-size: 0.8rem;
  color: var(--faint);
}

.h24-card__price b {
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg);
}

.h24-card__price small {
  font-size: 0.75rem;
  color: var(--muted);
}

.h24-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--gold-deep);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.h24-card__btn:hover {
  background: #967022;
}

.h24-card__btn.is-disabled {
  background: var(--bg-2);
  color: var(--muted);
  cursor: not-allowed;
}

.h24-card form {
  margin: 0;
}

/* ---------- Campanhas (2 banners) ---------- */
.h24-promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.h24-promo {
  position: relative;
  display: block;
  min-height: clamp(220px, 26vw, 340px);
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  background: var(--ink);
}

.h24-promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.h24-promo:hover img {
  transform: scale(1.04);
}

.h24-promo__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 12, 10, 0.72) 0%, rgba(13, 12, 10, 0.25) 60%, rgba(13, 12, 10, 0) 100%);
}

.h24-promo__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  min-height: inherit;
  max-width: 70%;
  padding: clamp(20px, 3vw, 34px);
}

.h24-promo__kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.h24-promo__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
}

.h24-promo__btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

/* ---------- Marcas ---------- */
.h24-brands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.h24-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(180px, 20vw, 260px);
  overflow: hidden;
  border-radius: 22px;
  text-decoration: none;
  background: var(--gold-soft);
}

.h24-brand__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.h24-brand:hover .h24-brand__bg {
  transform: scale(1.04);
  opacity: 0.7;
}

.h24-brand__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 800;
}

.h24-brand--banner {
  min-height: 0;
  aspect-ratio: 1023 / 336;
  background: #fff;
  border: 1px solid var(--border);
}

.h24-brand__banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.h24-brand--banner:hover .h24-brand__banner {
  transform: scale(1.03);
}

.h24-brand__card img {
  max-width: 150px;
  max-height: 70px;
  object-fit: contain;
}

/* ---------- Loja ainda sem produtos ---------- */
.h24-empty {
  padding: clamp(28px, 4vw, 48px);
  border: 1px dashed var(--border);
  border-radius: 22px;
  text-align: center;
  background: var(--surface);
}

.h24-empty h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
}

.h24-empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Benefícios e bloco de destaque mais próximos do resto da página */
.landing-home .landing-section--trust,
.landing-home .landing-section--care {
  margin-top: clamp(36px, 5vw, 64px);
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .h24-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 640px) {
  /* Vitrines viram carrossel de arrastar */
  .h24-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-inline: calc(-1 * clamp(20px, 2.5vw, 32px));
    padding: 2px clamp(20px, 2.5vw, 32px) 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .h24-grid::-webkit-scrollbar {
    display: none;
  }

  .h24-grid > .h24-card {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }

  .h24-hide-sm {
    display: none;
  }

  .h24-card__tags {
    right: 44px;
  }

  .h24-card__tags .h24-tag + .h24-tag {
    display: none;
  }

  /* Banner principal: foto em cima, texto embaixo */
  .landing-home .landing-banners,
  .landing-home .landing-banners__inner {
    min-height: 0;
  }

  .landing-home .landing-banners__slide {
    display: flex;
    flex-direction: column;
  }

  .landing-home .landing-banners__slide:not(.is-active) {
    display: none;
  }

  .landing-home .landing-banners__media {
    position: relative;
    inset: auto;
    height: 220px;
  }

  .landing-home .landing-banners__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    object-position: center;
  }

  .landing-home .landing-banners__slide.is-active {
    position: relative;
  }

  .landing-home .landing-banners__veil {
    display: none;
  }

  .landing-home .landing-banners__inner {
    padding-block: 18px 40px;
  }

  .h24-cats {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .h24-cats li {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }

  .h24-cat__sub {
    display: none;
  }

  .h24-promos,
  .h24-brands {
    grid-template-columns: 1fr;
  }

  .h24-promo__copy {
    max-width: 85%;
  }

  .h24-card__body {
    padding: 10px 10px 12px;
  }

  .h24-card__price b {
    font-size: 1.1rem;
  }

  .h24-card__btn {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .h24-head {
    align-items: center;
  }

  .h24-head__link {
    font-size: 0.78rem;
  }
}
