/* REVESTE Home — descoberta editorial premium */
body[data-page="home"] {
  --home-shell: 1400px;
  --home-gold: var(--accent);
  --home-radius: clamp(16px, 2vw, 28px);
  background:
    radial-gradient(circle at 82% 7%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 30rem),
    var(--bg);
}

body[data-page="home"] :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.home-shell { width: min(var(--home-shell), 100%); margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }
.home-main { padding: 0 0 clamp(32px, 5vw, 64px); }
.home-navbar .navbar__inner { max-width: var(--home-shell); }
.home-navbar .navbar__search { max-width: 610px; }
.home-navbar .navbar__search-input {
  height: 44px;
  background: color-mix(in srgb, var(--surface2) 82%, transparent);
  border-color: color-mix(in srgb, var(--border2) 72%, transparent);
}
.home-navbar .home-nav-link { color: var(--text2); font-size: .76rem; transition: color .2s; }
.home-navbar .home-nav-link:hover { color: var(--accent); }
.home-navbar .home-sell-button { color: #100e0a; background: var(--accent); border-radius: 999px; }
.home-mobile-sell { display: none; }

.home-kicker,
.home-overline {
  color: var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.home-kicker { display: flex; align-items: center; gap: 12px; }
.home-kicker::before { content: ""; width: 34px; height: 1px; background: var(--accent); }

.home-hero-premium {
  position: relative;
  min-height: min(760px, calc(100svh - 68px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.home-hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.9%, color-mix(in srgb, var(--border) 55%, transparent) 50%, transparent 50.1%),
    linear-gradient(color-mix(in srgb, var(--border) 30%, transparent) 1px, transparent 1px);
  background-size: 100% 100%, 100% 92px;
  opacity: .34;
}
.home-hero-premium__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  padding-block: clamp(72px, 9vw, 130px);
}
.home-hero-premium__copy { max-width: 650px; min-width: 0; }
.home-hero-premium h1 {
  margin: 22px 0 24px;
  font-size: clamp(4.4rem, 7.4vw, 8rem);
  line-height: .79;
  letter-spacing: -.055em;
}
.home-hero-premium h1 em { color: var(--accent); font-weight: 300; }
.home-hero-premium__lead { max-width: 590px; color: var(--text2); font-size: clamp(.98rem, 1.4vw, 1.12rem); line-height: 1.8; }
.home-hero-premium__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.home-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .035em;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.home-btn:hover { transform: translateY(-2px); }
.home-btn--gold { background: var(--accent); color: #100e0a; }
.home-btn--gold:hover { background: var(--accent-hover); }
.home-btn--outline { border-color: var(--border2); color: var(--text); background: color-mix(in srgb, var(--surface) 54%, transparent); }
.home-btn--outline:hover { border-color: var(--accent); }
.home-btn--light { color: #15120d; background: #f4efe5; }

.home-benefits { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 38px; color: var(--text2); font-size: .76rem; }
.home-benefits li { display: flex; align-items: center; gap: 7px; }
.home-benefits span { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: .62rem; }

.home-hero-products { position: relative; min-height: 530px; isolation: isolate; }
.home-hero-products::after {
  content: "";
  position: absolute;
  inset: 14% 4% 5% 18%;
  z-index: -2;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  filter: blur(70px);
}
.home-hero-products .pcard {
  position: absolute;
  width: clamp(190px, 18vw, 270px);
  box-shadow: 0 34px 70px rgba(0,0,0,.38);
}
.home-hero-products .pcard:nth-child(1) { left: 7%; top: 18%; transform: rotate(-8deg); z-index: 2; }
.home-hero-products .pcard:nth-child(2) { left: 37%; top: 2%; transform: rotate(5deg); z-index: 3; }
.home-hero-products .pcard:nth-child(3) { right: 0; top: 27%; transform: rotate(10deg); z-index: 1; }
.home-hero-products .pcard:hover { transform: rotate(0) translateY(-8px); z-index: 5; }
.home-hero-products .pcard__img { padding-top: 118%; }
.home-hero-products .pcard__body { padding: 12px 14px 14px; }
.home-hero-products .pcard__tags,
.home-hero-products .pcard__local,
.home-hero-products .pcard__loja { display: none; }
.home-hero-products .pcard__nome { min-height: 0; margin-bottom: 7px; -webkit-line-clamp: 1; }
.home-hero-products__fallback {
  position: absolute;
  inset: 8% 4% 4% 16%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid var(--border2);
  border-radius: var(--home-radius);
  color: var(--accent);
  background: linear-gradient(145deg, var(--surface), var(--bg2));
}
.home-hero-products__fallback span { font-family: 'Cormorant Garamond', serif; font-size: 9rem; line-height: .7; opacity: .2; }
.home-hero-products__fallback small { color: var(--text3); letter-spacing: .16em; text-transform: uppercase; }

.home-section { margin-top: clamp(72px, 9vw, 128px); }
.home-section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.home-section__head h2 { margin-top: 7px; font-size: clamp(2rem, 3.5vw, 3.25rem); letter-spacing: -.025em; }
.home-section__tools { display: flex; align-items: center; gap: 8px; }
.home-section__tools .resultado-count { margin: 0 8px 0 0; }
.home-text-link { color: var(--text2); font-size: .8rem; border-bottom: 1px solid var(--border2); padding-bottom: 2px; }
.home-text-link:hover { color: var(--accent); border-color: var(--accent); }

.home-category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.home-category-grid .cat-quick-item {
  position: relative;
  min-width: 0;
  min-height: 180px;
  justify-content: end;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  overflow: hidden;
  color: var(--text);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, transparent 30%, color-mix(in srgb, var(--accent) 12%, var(--surface)) 100%),
    var(--surface);
}
.home-category-grid .cat-quick-item::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -32px;
  top: -34px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 50%;
}
.home-category-grid .cat-quick-item__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border2); background: var(--bg2); }
.home-category-grid .cat-quick-item span:last-child { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; }
.home-category-skeleton { min-height: 180px; border-radius: var(--radius-lg); background: linear-gradient(90deg,var(--surface) 25%,var(--surface2) 50%,var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }

.home-super-offer {
  position: relative;
  min-height: 330px;
  margin-top: clamp(72px, 9vw, 128px);
  padding: clamp(34px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.15fr .55fr .95fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: var(--home-radius);
  background: linear-gradient(110deg, var(--surface2), var(--bg2) 58%, var(--surface));
  color: var(--text);
}
.home-super-offer__pattern { position: absolute; inset: 0; opacity: .18; background-image: repeating-linear-gradient(120deg,transparent 0 22px,var(--accent) 23px 24px); mask-image: linear-gradient(90deg,transparent,#000); pointer-events: none; }
.home-super-offer__copy { position: relative; z-index: 1; }
.home-super-offer h2 { color: var(--text); font-size: clamp(2.6rem, 5vw, 5rem); margin: 6px 0 10px; }
.home-super-offer__copy > p:not(.home-overline) { color: var(--text2); margin-bottom: 24px; }
.home-super-offer__number { position: relative; z-index: 1; color: var(--accent); font-family: 'Cormorant Garamond', serif; font-size: clamp(4rem, 7vw, 7rem); line-height: .8; text-align: center; }
.home-super-offer__items { position: relative; height: 230px; }
.home-super-offer__items .pcard { position: absolute; width: 155px; }
.home-super-offer__items .pcard:nth-child(1) { left: 0; top: 0; transform: rotate(-5deg); z-index: 2; }
.home-super-offer__items .pcard:nth-child(2) { right: 2%; top: 18px; transform: rotate(7deg); }
.home-super-offer__items .pcard__body { display: none; }
.home-super-offer__items .pcard__img { padding-top: 125%; }

.home-product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 265px); gap: 18px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }
.home-product-rail > * { scroll-snap-align: start; }
.home-carousel-btn { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; color: var(--text2); transition: .2s; }
.home-carousel-btn:hover { color: var(--accent); border-color: var(--accent); }

.home-filters { display: flex; align-items: center; gap: 26px; margin-top: clamp(72px, 9vw, 112px); padding-block: 18px; border-block: 1px solid var(--border); }
.home-filters__title { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; }
.home-filters__title span { color: var(--accent); font: .64rem 'DM Mono', monospace; }
.home-filters__title h2 { font: 500 .78rem 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.home-filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.home-filter-chips::-webkit-scrollbar { display: none; }
.home-filter-chip { flex: 0 0 auto; min-height: 38px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text2); font-size: .76rem; transition: .2s; }
.home-filter-chip:hover,.home-filter-chip.active { color: var(--bg); border-color: var(--text); background: var(--text); }
.home-filter-chip--more { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 48%, var(--border)); }

.home-product-discovery__head { margin-bottom: 34px; }
.home-product-shelves { display: grid; gap: clamp(44px, 5vw, 72px); min-width: 0; max-width: 100%; }
.home-product-shelf { min-width: 0; max-width: 100%; }
.home-product-shelf__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.home-product-shelf__head h3 {
  margin-top: 5px;
  color: var(--text);
  font: 500 clamp(1.55rem, 2.4vw, 2.25rem)/1.08 'Cormorant Garamond', serif;
}
.home-product-shelf__count { flex: 0 0 auto; color: var(--text3); font: .7rem 'DM Mono', monospace; }
.home-product-shelf__rail {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.home-product-shelf__viewport {
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
}
.home-product-shelf__viewport::-webkit-scrollbar { height: 5px; }
.home-product-shelf__viewport::-webkit-scrollbar-track { background: transparent; }
.home-product-shelf__viewport::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--border2); }
.home-product-shelf__viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: var(--radius-sm); }
.home-product-shelf__track {
  --home-shelf-card-width: clamp(190px, 16.5vw, 238px);
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: var(--home-shelf-card-width);
  gap: 16px;
  width: max-content;
  min-width: 100%;
}
.home-product-shelf__track > * { min-width: 0; scroll-snap-align: start; }
.home-product-shelf__track .pcard__tags .tag:nth-child(n+3) { display: none; }
.home-product-shelf__track .pcard__local { display: none; }
.home-product-shelf__track .pcard__body { padding: 12px 13px 14px; }
.home-product-shelf__track .pcard__img { padding-top: 112%; }
.home-product-shelf__track .pcard__nome { margin-bottom: 8px; }
.home-product-shelf__control {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  color: var(--text2);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  transition: color .2s, border-color .2s, transform .2s, opacity .2s;
}
.home-product-shelf__control:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.home-product-shelf__control:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.home-product-shelf__control[hidden] { display: none; }
.home-product-shelf__control--prev { grid-column: 1; }
.home-product-shelf__control--next { grid-column: 3; }
.home-product-shelf__status { margin: 8px 54px 0; color: var(--text3); font-size: .75rem; }
.home-product-shelf__status:empty { display: none; }
.home-product-shelf[data-state="ready"] .home-product-shelf__status,
.home-product-shelf[data-state="end"] .home-product-shelf__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-product-shelf[data-state="error"] .home-product-shelf__status { color: var(--danger); }
body[data-page="home"] .pcard { border-radius: var(--radius-lg); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
body[data-page="home"] .pcard:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 18px 44px rgba(0,0,0,.18); }
body[data-page="home"] .pcard__fav { color: #efe9df; background: rgba(12,11,9,.68); border: 1px solid rgba(255,255,255,.15); }

.home-stores-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.home-stores-grid .loja-card { border-radius: var(--radius-lg); overflow: hidden; }
.home-stores-grid .loja-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-stores-grid .loja-card__count { color: var(--text3); font-size: .7rem; }
.home-stores-grid .loja-card__link { margin-top: 8px; color: var(--accent); font-size: .76rem; }

.home-seller-cta {
  display: grid;
  grid-template-columns: minmax(300px,.9fr) minmax(0,1.1fr);
  gap: clamp(36px,7vw,100px);
  align-items: center;
  margin-top: clamp(80px,11vw,150px);
  padding: clamp(28px,5vw,66px);
  border: 1px solid var(--border);
  border-radius: var(--home-radius);
  background: var(--surface);
}
.home-seller-cta__visual { min-height: 360px; display: grid; place-items: center; overflow: hidden; border-radius: calc(var(--home-radius) - 8px); background: radial-gradient(circle at 50% 40%, color-mix(in srgb,var(--accent) 28%,transparent),transparent 50%),linear-gradient(145deg,var(--bg3),var(--bg)); }
.home-seller-cta__visual span { writing-mode: vertical-rl; color: color-mix(in srgb,var(--accent) 24%,transparent); font: 5.8rem/.8 'Cormorant Garamond',serif; letter-spacing: .12em; }
.home-seller-cta h2 { margin: 10px 0 16px; max-width: 650px; font-size: clamp(2.4rem,4.5vw,4.5rem); }
.home-seller-cta__copy > p:not(.home-overline) { color: var(--text2); }
.home-seller-cta ul { display: grid; gap: 8px; margin: 24px 0 28px; color: var(--text2); font-size: .86rem; }
.home-seller-cta li::before { content: "—"; margin-right: 9px; color: var(--accent); }

body[data-page="home"] .home-filter-drawer {
  display: block;
  position: fixed;
  z-index: 1002;
  top: 0;
  right: 0;
  left: auto;
  bottom: 0;
  width: min(390px, 94vw);
  max-height: 100dvh;
  padding: 28px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transform: translateX(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s ease, opacity .2s ease, visibility 0s linear .3s;
}
body[data-page="home"] .home-filter-drawer.drawer-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .3s ease, opacity .2s ease, visibility 0s;
}
body[data-page="home"] .filtros-sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 1001; background: rgba(0,0,0,.62); opacity: 0; pointer-events: none; transition: opacity .25s; }
body[data-page="home"] .filtros-sidebar-overlay.open { opacity: 1; pointer-events: auto; }
body[data-page="home"] .filtros-sidebar-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
body[data-page="home"] .filtros-sidebar-header h3 { margin-top: 4px; }
body[data-page="home"] .filtros-sidebar-close { display: flex; flex: 0 0 auto; }
body[data-page="home"] .filtros-sidebar-close button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 50%; color: var(--text2); background: var(--surface2); cursor: pointer; }
body[data-page="home"] .filtros-sidebar-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
body[data-page="home"] .filtros-sidebar-actions { position: sticky; bottom: 0; display: flex; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); background: var(--surface); }
body[data-page="home"] .filtros-sidebar-actions > * { min-height: 44px; }
body[data-page="home"] .btn-filtros-limpar { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); background: transparent; cursor: pointer; }
body[data-page="home"] .filtros-sidebar-actions .btn-primary { flex: 2; }

.home-footer { padding: 70px 0 26px; background: var(--surface2); border-top-color: var(--border2); color: var(--text2); }
.home-footer__grid { display: grid; grid-template-columns: 1.7fr repeat(4,1fr); gap: 38px; }
.home-footer__brand p { max-width: 300px; margin-top: 14px; font-size: .82rem; }
.home-footer h3 { margin-bottom: 14px; color: var(--text); font: 600 .7rem 'Inter',sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.home-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.home-footer__links { display: contents; }
.home-footer h3 button { all: inherit; color: inherit; cursor: default; }
.home-footer h3 button span { display: none; }
.home-footer nav a { font-size: .78rem; overflow-wrap: anywhere; }
.home-footer nav a:hover { color: var(--accent); }
.home-footer__bottom { display: flex; justify-content: space-between; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border2); font: .68rem 'DM Mono',monospace; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 1100px) {
  .home-navbar .home-nav-link { display: none; }
  .home-hero-premium__grid { grid-template-columns: minmax(0,1fr) minmax(360px,.85fr); gap: 35px; }
  .home-hero-products { min-height: 470px; }
  .home-category-grid { grid-template-columns: repeat(5,minmax(150px,1fr)); overflow-x: auto; padding-bottom: 10px; }
  .home-super-offer { grid-template-columns: 1fr .45fr; }
  .home-super-offer__items { display: none; }
  .home-footer__grid { grid-template-columns: 1.5fr repeat(2,1fr); }
}

@media (max-width: 1023px) {
  .home-hero-premium { min-height: auto; }
  .home-hero-premium__grid { grid-template-columns: 1fr; }
  .home-hero-premium__copy { max-width: 700px; }
  .home-hero-products { width: min(680px,100%); min-height: 470px; margin-inline: auto; }
  .home-super-offer { grid-template-columns: 1fr auto; }
  .home-stores-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-seller-cta { grid-template-columns: .75fr 1.25fr; }
  .home-product-shelf__rail { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-product-shelf__control { display: none; }
  .home-product-shelf__viewport { grid-column: 1; }
  .home-product-shelf__track { --home-shelf-card-width: min(35vw, 250px); gap: 14px; }
  .home-product-shelf__status { margin-inline: 2px; }
}

@media (max-width: 599px) {
  body[data-page="home"] .home-filter-drawer {
    inset: auto 0 0;
    width: 100%;
    max-height: min(84dvh, 760px);
    overflow-y: auto;
    padding: 20px 18px calc(12px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    transform: translateY(105%);
    overscroll-behavior: contain;
  }
  body[data-page="home"] .home-filter-drawer.drawer-open { transform: translateY(0); }
  body[data-page="home"] .filtros-sidebar-actions {
    position: sticky;
    bottom: 0;
    margin: 18px 0 0;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] *,body[data-page="home"] *::before,body[data-page="home"] *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.home-community .global-store-feed{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 10px;scrollbar-width:thin}.home-community .global-post{flex:0 0 min(380px,85vw);scroll-snap-align:start}.home-community #global-feed-more{display:inline-flex;margin-top:12px}
