:root {
  --paper: #f4efe5;
  --paper-light: #fbf8f1;
  --paper-deep: #e8dfd0;
  --ink: #302c25;
  --muted: #6d665b;
  --forest: #202a1d;
  --moss: #46513d;
  --olive: #737960;
  --gold: #a98d59;
  --gold-light: #cbb27f;
  --line: rgba(60, 53, 42, .17);
  --shadow: 0 22px 52px rgba(47, 42, 34, .1);
  --wrap: min(1380px, 92vw);
  --bottom-safe: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(71, 62, 47, .045) .65px, transparent .65px);
  background-size: 5px 5px;
  font: 15px/1.65 Montserrat, sans-serif;
}
body.sheet-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: "Cormorant Garamond", serif; font-weight: 600; line-height: .98; text-wrap: balance; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 12px 16px;
  color: #fff;
  background: var(--forest);
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.luxury-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(79, 69, 54, .12);
  background: rgba(244, 239, 229, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: var(--wrap);
  min-height: 86px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.brand { min-width: max-content; display: inline-flex; align-items: center; gap: 13px; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.brand span { display: block; }
.brand strong {
  display: block;
  font: 600 1.6rem/.95 "Cormorant Garamond", serif;
  letter-spacing: .025em;
}
.brand small {
  display: block;
  margin-top: 7px;
  color: var(--olive);
  font-size: .47rem;
  letter-spacing: .19em;
  line-height: 1;
  text-transform: uppercase;
}
.header-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); }
.header-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .25s ease, border-color .25s ease;
}
.header-nav a:hover, .header-nav a.is-current { color: var(--moss); border-color: var(--gold); }
.header-nav .nav-contact {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(48, 44, 37, .55);
}
.header-nav .nav-contact:hover { color: #fff; border-color: var(--forest); background: var(--forest); }

.editorial-hero {
  position: relative;
  min-height: clamp(420px, 38vw, 560px);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fbf8f1;
  background-image:
    linear-gradient(90deg, rgba(18, 25, 15, .89) 0%, rgba(26, 34, 22, .72) 42%, rgba(25, 32, 22, .22) 74%, rgba(23, 29, 20, .34) 100%),
    url('/assets/recomendacoes/hero-curadoria-karina.webp');
  background-position: center;
  background-size: cover;
}
.editorial-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.18));
  pointer-events: none;
}
.hero-inner { width: var(--wrap); margin: auto; padding: clamp(62px, 6vw, 92px) 8%; }
.eyebrow {
  display: block;
  color: var(--gold-light);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.editorial-hero h1 {
  max-width: 12ch;
  margin-top: 16px;
  color: #fffdf7;
  font-size: clamp(3.35rem, 4.6vw, 5.2rem);
  letter-spacing: -.018em;
}
.editorial-hero p {
  max-width: 66ch;
  margin-top: 24px;
  color: rgba(255, 253, 247, .86);
  font-size: .79rem;
  line-height: 1.8;
}

.category-ribbon {
  position: relative;
  z-index: 5;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 241, .97);
  box-shadow: 0 12px 30px rgba(53, 47, 39, .06);
  scrollbar-width: thin;
}
.ribbon-inner {
  width: var(--wrap);
  min-width: 980px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.filter-button {
  min-height: 84px;
  display: grid;
  grid-template-columns: 34px minmax(0, auto) auto;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}
.filter-button:first-child { border-left: 1px solid var(--line); }
.filter-button svg { width: 30px; height: 30px; color: var(--gold); }
.filter-button span {
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
}
.filter-button b {
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--olive);
  background: rgba(105, 112, 91, .09);
  font-size: .52rem;
  text-align: center;
}
.filter-button:hover, .filter-button.is-active { color: var(--forest); background: rgba(169, 141, 89, .08); }
.filter-button.is-active { box-shadow: inset 0 -2px var(--gold); }

.trust-intro {
  width: min(1180px, 88vw);
  margin: auto;
  padding: clamp(72px, 8vw, 116px) 0 clamp(58px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  column-gap: clamp(70px, 10vw, 150px);
  row-gap: 46px;
  align-items: center;
}
.trust-intro .eyebrow { color: var(--gold); }
.trust-heading h2 {
  max-width: 14ch;
  margin-top: 14px;
  color: var(--forest);
  font-size: clamp(3rem, 5vw, 5.15rem);
}
.trust-copy { position: relative; min-height: 180px; display: flex; align-items: flex-start; }
.trust-copy p { max-width: 48ch; color: var(--muted); font-size: .77rem; line-height: 1.85; }
.botanical-mark {
  position: absolute;
  right: 2%;
  bottom: -16px;
  width: 88px;
  height: 88px;
  color: var(--gold);
  opacity: .78;
}
.search-box { grid-column: 1 / -1; max-width: 720px; display: block; }
.search-box > span:first-child {
  display: block;
  margin-bottom: 10px;
  color: var(--olive);
  font-size: .57rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.search-control {
  min-height: 58px;
  display: grid;
  grid-template-columns: 25px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 18px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: 0 12px 30px rgba(53, 47, 39, .045);
}
.search-control > svg { width: 22px; height: 22px; color: var(--olive); }
.search-control input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-control input::placeholder { color: #8a8276; }
.search-control button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.search-control button svg { width: 18px; height: 18px; }

.store-layout {
  width: var(--wrap);
  margin: auto;
  padding: 60px 0 120px;
  border-top: 1px solid var(--line);
}
.catalog-panel { min-width: 0; }
.catalog-toolbar { min-height: 74px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.catalog-toolbar .eyebrow { margin-bottom: 9px; color: var(--gold); }
.active-label { display: block; color: var(--forest); font: 600 clamp(2.2rem, 4vw, 3.8rem)/.98 "Cormorant Garamond", serif; }
#result-count { margin-top: 8px; color: var(--muted); font-size: .7rem; }
.reset-button {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  color: var(--moss);
  background: transparent;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
}
.partner-note {
  max-width: 68ch;
  margin: 20px 0 34px;
  padding-left: 15px;
  border-left: 1px solid var(--gold);
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.65;
}
.partner-note strong { color: var(--moss); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: 0 0 0 transparent;
  transition: transform .28s ease, box-shadow .28s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media {
  position: relative;
  aspect-ratio: 1 / .9;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}
.product-media img { width: 100%; height: 100%; padding: 15px; object-fit: contain; transition: transform .38s ease; }
.product-card:hover .product-media img { transform: scale(1.025); }
.partner-pill {
  position: absolute;
  right: 11px;
  bottom: 11px;
  max-width: calc(100% - 22px);
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid rgba(64, 55, 42, .11);
  color: var(--moss);
  background: rgba(251, 248, 241, .95);
  font-size: .48rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.product-copy { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.product-category { margin-bottom: 9px; color: var(--gold); font-size: .5rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.product-card h2 { color: var(--ink); font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.04; }
.product-description {
  display: -webkit-box;
  margin-top: 11px;
  overflow: hidden;
  color: var(--muted);
  font-size: .71rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.product-link {
  min-height: 46px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--forest);
  color: #fff;
  background: var(--forest);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}
.product-link:hover { color: var(--forest); background: transparent; }
.product-link svg { width: 15px; height: 15px; }

.loading-skeleton { min-height: 390px; border: 1px solid var(--line); background: var(--paper-light); }
.loading-skeleton span { display: block; background: linear-gradient(90deg, rgba(105,112,91,.08), rgba(255,255,255,.5), rgba(105,112,91,.08)); background-size: 220% 100%; animation: shimmer 1.4s infinite; }
.loading-skeleton span:first-child { aspect-ratio: 1/.9; border-bottom: 1px solid var(--line); }
.loading-skeleton span:nth-child(2) { width: 72%; height: 21px; margin: 24px 20px 0; }
.loading-skeleton span:nth-child(3) { width: 86%; height: 12px; margin: 14px 20px 0; }
.loading-skeleton span:nth-child(4) { width: 64%; height: 12px; margin: 8px 20px; }
@keyframes shimmer { to { background-position: -220% 0; } }
.status-panel { min-height: 360px; padding: 70px 24px; border: 1px solid var(--line); background: var(--paper-light); text-align: center; }
.status-mark { width: 48px; height: 48px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--moss); font: 600 1.4rem "Cormorant Garamond", serif; }
.status-panel h2 { color: var(--moss); font-size: 2.2rem; }
.status-panel p { margin-top: 10px; color: var(--muted); }
.status-panel button { min-height: 44px; margin-top: 22px; padding: 0 20px; border: 1px solid var(--moss); color: white; background: var(--moss); cursor: pointer; }

.mobile-filter-nav, .filter-sheet { display: none; }

@media (max-width: 1180px) {
  .header-nav { gap: 20px; }
  .header-nav a { font-size: .52rem; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  body { padding-bottom: calc(76px + var(--bottom-safe)); }
  .header-inner { min-height: 74px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 1.28rem; }
  .brand small { font-size: .41rem; }
  .header-nav a:not(.nav-contact) { display: none; }
  .header-nav .nav-contact { min-height: 40px; padding: 0 15px; }
  .hero-inner { padding-left: 5%; }
  .trust-intro { grid-template-columns: 1fr; row-gap: 30px; }
  .trust-copy { min-height: 120px; }
  .search-box { max-width: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .product-copy { padding: 16px; }
  .product-description { -webkit-line-clamp: 2; }
  .mobile-filter-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    min-height: calc(72px + var(--bottom-safe));
    padding: 6px max(8px, env(safe-area-inset-right)) var(--bottom-safe) max(8px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(251, 248, 241, .97);
    box-shadow: 0 -10px 28px rgba(53, 47, 39, .1);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .mobile-nav-item {
    position: relative;
    min-width: 0;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
  }
  .mobile-nav-item svg { width: 22px; height: 22px; }
  .mobile-nav-item span { max-width: 100%; overflow: hidden; font-size: .51rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav-item.is-active { color: var(--moss); }
  .mobile-nav-item.is-active::before { content: ""; position: absolute; top: -6px; width: 24px; height: 2px; background: var(--gold); }
  .filter-sheet { position: fixed; inset: 0; z-index: 120; display: block; }
  .sheet-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(32, 42, 29, .58); }
  .sheet-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(78vh, 630px);
    padding: 11px 20px calc(22px + var(--bottom-safe));
    overflow: auto;
    border-radius: 24px 24px 0 0;
    background: var(--paper-light);
    box-shadow: 0 -24px 70px rgba(35, 34, 29, .25);
    animation: sheet-up .3s cubic-bezier(.22,1,.36,1);
  }
  .sheet-handle { width: 44px; height: 4px; margin: 0 auto 18px; border-radius: 99px; background: rgba(63,73,56,.25); }
  .sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .sheet-header h2 { margin-top: 6px; color: var(--moss); font-size: 2rem; }
  .sheet-close { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .sheet-close svg { width: 20px; height: 20px; }
  .sheet-options { margin-top: 20px; display: grid; }
  .sheet-options button, .sheet-all { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
  .sheet-options button[aria-pressed="true"] { color: var(--moss); font-weight: 600; }
  .sheet-options b { color: var(--olive); font-size: .7rem; }
  .sheet-all { justify-content: center; margin-top: 12px; border: 1px solid var(--moss); color: white; background: var(--moss); font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  @keyframes sheet-up { from { transform: translateY(24px); opacity: .6; } }
}

@media (max-width: 760px) {
  :root { --wrap: min(92vw, 640px); }
  .luxury-header { position: relative; }
  .header-inner { gap: 12px; }
  .brand { gap: 9px; min-width: 0; }
  .brand strong { font-size: clamp(1.05rem, 4.9vw, 1.28rem); }
  .brand small { letter-spacing: .1em; }
  .header-nav .nav-contact { font-size: .5rem; }
  .editorial-hero { min-height: 560px; background-position: 59% center; }
  .editorial-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(18, 25, 15, .28); }
  .hero-inner { align-self: end; padding: 70px 0 58px; }
  .editorial-hero h1 { max-width: 9.2ch; font-size: clamp(3.25rem, 13.5vw, 5.2rem); }
  .editorial-hero p { max-width: 48ch; font-size: .72rem; }
  .category-ribbon { scrollbar-width: none; }
  .category-ribbon::-webkit-scrollbar { display: none; }
  .ribbon-inner { width: max-content; min-width: 0; padding: 0 4vw; grid-template-columns: repeat(6, 158px); }
  .filter-button { min-height: 76px; grid-template-columns: 28px 1fr; gap: 9px; padding: 8px 14px; }
  .filter-button svg { width: 26px; height: 26px; }
  .filter-button b { display: none; }
  .trust-intro { width: min(88vw, 600px); padding: 68px 0 56px; }
  .trust-heading h2 { font-size: clamp(3rem, 12vw, 4.7rem); }
  .trust-copy { min-height: 132px; }
  .botanical-mark { width: 70px; height: 70px; }
  .store-layout { padding-top: 46px; padding-bottom: 50px; }
  .catalog-toolbar { align-items: center; }
  .active-label { font-size: clamp(2.15rem, 9vw, 3rem); }
}

@media (max-width: 460px) {
  .brand small { display: none; }
  .header-nav .nav-contact { min-height: 38px; padding: 0 12px; }
  .editorial-hero { min-height: 540px; }
  .hero-inner { padding-bottom: 48px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 1/.76; }
  .product-description { -webkit-line-clamp: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
