:root{
  --black:#0b0b0b;
  --beige:#f3e7cf;
  --gold:#d4af37;
  --gold-2:#f1d070;
  --border:rgba(243,231,207,.18);
  --shadow: 0 25px 60px rgba(0,0,0,.55);
  --radius:24px;
}

html, body{
  overflow-x: hidden;
  width: 100%;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(212,175,55,.10), transparent 60%),
    radial-gradient(900px 700px at 70% 30%, rgba(243,231,207,.12), transparent 55%),
    linear-gradient(180deg, #050505, #0b0b0b 40%, #070707);
  color:var(--beige);
  font-family:Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.container{width:min(1200px, 92vw); margin:0 auto}

.bg-noise{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.32;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

a{color:inherit; text-decoration:none}

.brand{
  display:flex;
  align-items:center;
  gap:10px
}

.brand__logo{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:linear-gradient(135deg, rgba(212,175,55,.25), rgba(243,231,207,.10));
  border:1px solid rgba(212,175,55,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.35)
}

.brand__text{font-weight:600}

.kicker{
  color:rgba(212,175,55,.95);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:2.6px;
  font-size:12px
}

.muted{
  color:rgba(243,231,207,.72);
  line-height:1.75
}

.gold{color:var(--gold)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:800;
  transition:.2s ease;
  user-select:none;
}

.btn--primary{
  color:var(--black);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 18px 45px rgba(212,175,55,.18)
}

.btn--primary:hover{transform: translateY(-1px)}

.btn--ghost{
  color:var(--beige);
  background:rgba(243,231,207,.06);
  border:1px solid rgba(243,231,207,.18)
}

.btn--ghost:hover{background:rgba(243,231,207,.10)}

.catalogTop{
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter: blur(14px);
  background:rgba(11,11,11,.45);
  border-bottom:1px solid rgba(243,231,207,.10);
}

.catalogTop__inner{
  display:flex;
  flex-wrap: wrap;       /* ✅ isso impede overflow */
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.catalogTop__actions{
  display:flex;
  flex-wrap:wrap;        /* ✅ isso também */
  width: 100%;           /* ✅ força ficar bonito no celular */
  justify-content:flex-end;
  gap:12px;
}

@media (max-width: 520px){
  .catalogTop__actions{
    justify-content: stretch;
  }

  .search{
    width: 100%;
  }

  .search input{
    max-width: 100%;
  }
}

.search input{
  width:min(320px, 76vw);
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(243,231,207,.18);
  background:rgba(243,231,207,.06);
  color:var(--beige);
  outline:none;
}

.search input:focus{border-color: rgba(212,175,55,.45)}

/* ✅ SELECT dourado */
.select{
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(243,231,207,.18);
  background:rgba(243,231,207,.06);
  color:var(--gold);
  outline:none;
  font-weight:800;
}

.select option{
  background:#0b0b0b;
  color:var(--gold);
}

/* ✅ no celular esconder select */
@media (max-width: 520px){
  .select{display:none}
}

.catalogHero{
  padding:36px 0 18px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap
}

.catalogChips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end
}

/* ===========================================
   ✅ CHIPS dourados (corrigido)
   =========================================== */
.chip{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(212,175,55,.25);
  background:rgba(11,11,11,.25);
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  transition:.18s ease;
  color: var(--gold);              /* <-- texto sempre dourado */
}

.chip:hover{
  border-color: rgba(212,175,55,.55);
  transform: translateY(-1px);
}

.chip.active{
  color: var(--gold-2);
  border-color: rgba(212,175,55,.75);
  background: rgba(212,175,55,.10);
  box-shadow: 0 12px 32px rgba(212,175,55,.12);
}

/* grid */
.catalogGrid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:14px;
  padding:16px 0 40px
}
@media (max-width: 1100px){.catalogGrid{grid-template-columns: repeat(3,1fr)}}
@media (max-width: 820px){.catalogGrid{grid-template-columns: repeat(2,1fr)}}
@media (max-width: 520px){.catalogGrid{grid-template-columns:1fr}}

.pCard{
  border-radius:22px;
  border:1px solid rgba(243,231,207,.16);
  background:rgba(243,231,207,.06);
  overflow:hidden;
  cursor:pointer;
  transition:.18s ease
}

.pCard:hover{
  transform: translateY(-3px);
  border-color: rgba(212,175,55,.35)
}

.pCard__img{
  height: 170px;              /* ✅ altura fixa */
  max-height: 170px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.70)),
    var(--img) center/cover no-repeat;
}

.pCard__body{padding:14px}

/* ✅ título do produto dourado */
.pCard__title{
  font-weight:900;
  color:var(--gold);
}

.pCard__desc{
  opacity:.78;
  font-size:13px;
  line-height:1.55;
  margin-top:6px;

  /* ✅ limite + ... bonito */
  display: -webkit-box;
  -webkit-line-clamp: 3;       /* ✅ quantidade de linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pCard__meta{
  margin-top:10px;
  font-size:12px;
  opacity:.7
}

.pCard__body{
  padding:14px;
  min-height: 140px;
}

.ctaBottom{padding:30px 0 70px}

.ctaBottom__card{
  border-radius:var(--radius);
  padding:22px;
  border:1px solid rgba(243,231,207,.14);
  background:linear-gradient(180deg, rgba(243,231,207,.06), rgba(11,11,11,.35));
  box-shadow: var(--shadow)
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  z-index:80
}
.modal.show{display:grid}

.modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter: blur(10px)
}

.modal__panel{
  position:relative;
  width:min(960px, 92vw);
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(212,175,55,.25);
  background:rgba(11,11,11,.82);
  box-shadow: var(--shadow);

  display:grid;
  grid-template-columns: .95fr 1.05fr;

  /* ✅ novo */
  max-height: 88vh;
}

@media (max-width: 860px){
  .modal__panel{grid-template-columns:1fr}
}

.modal__close{
  position:absolute;
  right:14px;
  top:14px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(243,231,207,.18);
  background:rgba(243,231,207,.06);
  color:var(--beige);
  cursor:pointer;
  font-size:18px
}

.modal__media{
  /* ✅ novo */
  max-height: 88vh;
  background:rgba(243,231,207,.06);
}

.modal__media img{
  width:100%;
  height:100%;
  max-height: 88vh; /* ✅ evita estourar */
  object-fit: cover; /* mantém bonito sem distorcer */
}

.modal__content{
  padding:20px 22px 22px;

  /* ✅ novo */
  overflow: auto;
  max-height: 88vh;
}

.badge{
  display:inline-flex;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(212,175,55,.12);
  border:1px solid rgba(212,175,55,.25);
  font-weight:900;
  font-size:12px;
  letter-spacing:.6px;
  text-transform:uppercase
}

.modal__header h3{
  font-size:28px;
  margin:12px 0 8px;
  font-family:"Playfair Display", serif
}

.modal__cta{
  margin-top:18px;
  border-top:1px solid rgba(243,231,207,.10);
  padding-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center
}

.modal__text{font-weight:900; letter-spacing:.2px}

/* ===========================================
   MOBILE HEADER LAYOUT (Catalog page)
   - Brand centralizado em cima
   - Busca + Contato lado a lado
   =========================================== */
@media (max-width: 520px){

  .catalogTop__inner{
    flex-direction: column;     /* 2 linhas */
    align-items: center;
    gap: 10px;
  }

  /* Brand centralizado */
  .brand{
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  /* Linha com busca + botão */
  .catalogTop__actions{
    width: 100%;
    display: flex;
    flex-direction: row;        /* lado a lado */
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  /* Busca ocupa a maior parte */
  .search{
    flex: 1;
    min-width: 0;               /* ✅ MUITO importante pra não estourar */
  }

  .search input{
    width: 100%;
    max-width: 100%;
  }

  /* Botão contato com tamanho fixo */
  .catalogTop__actions .btn{
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 14px;
  }

  /* Seletor some no celular */
  .select{
    display: none !important;
  }
}