:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #6b6b6b;
  --gold: #c9a961;
  --gold-dark: #a8893f;
  --line: #e9e6e0;
  --whats: #25d366;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 44px 0; }
.section__title {
  font-family: var(--serif);
  font-size: 26px;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header__left { display: flex; gap: 4px; }
.header__right { display: flex; justify-content: flex-end; }
.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  border-radius: 8px;
}
.icon-btn:hover { background: var(--bg); }
.icon-btn svg { width: 22px; height: 22px; }
.header__logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  white-space: nowrap;
}

.header-search {
  position: sticky;
  top: 64px;
  z-index: 59;
  display: flex;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-search[hidden] { display: none; }
.header-search__input {
  width: 100%;
  font-size: 16px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  outline: none;
}
.header-search__input:focus { border-color: var(--gold); }

/* ============ DRAWER ============ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.5);
}
.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 71;
  width: 80%;
  max-width: 320px;
  background: var(--surface);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  padding: 20px;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__close { font-size: 28px; color: var(--ink-soft); margin-bottom: 10px; }
.drawer__brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.drawer__nav a {
  display: block;
  font-size: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}
.drawer__nav a:hover { color: var(--gold-dark); }

/* ============ CARROSSEL ============ */
.carousel { position: relative; overflow: hidden; }
.carousel__track { display: flex; transition: transform 0.4s ease; }
.carousel__slide {
  flex: 0 0 100%;
  position: relative;
  height: 448px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111 0%, #2a2113 55%, var(--gold-dark) 100%);
  cursor: pointer;
}
.carousel__caption {
  font-family: var(--serif);
  color: #fff;
  font-size: 30px;
  text-align: center;
  padding: 0 24px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  font-size: 18px;
  color: var(--ink);
}
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }
.carousel__dots {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.carousel__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.carousel__dot.is-active { background: #fff; }

/* ============ BENEFÍCIOS ============ */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.benefit {
  background: var(--surface);
  padding: 22px 16px;
  text-align: center;
}
.benefit svg { width: 32px; height: 32px; margin: 0 auto 10px; color: var(--gold-dark); }
.benefit__title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.benefit__sub { font-size: 12px; color: var(--ink-soft); }

/* ============ CATEGORIAS (home) ============ */
.cat-hint {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.cat-block { margin-bottom: 22px; }
.cat-grid { display: grid; gap: 12px; }
.cat-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cat-grid--4 { grid-template-columns: repeat(2, 1fr); }
.cat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.2s, background 0.2s, border-color 0.2s, border-width 0.2s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card--lg { min-height: 120px; font-size: 22px; }

/* gênero selecionado */
.genero-btn--active {
  border-width: 2px;
  border-color: var(--gold-dark);
  background: rgba(201, 169, 97, 0.12);
}

/* tipo desabilitado (até escolher gênero) */
.tipo-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============ GRID DE PRODUTOS ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card__imgwrap { position: relative; aspect-ratio: 1 / 1; background: #f1eee9; }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 12px; font-family: var(--serif);
}
.card__badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; letter-spacing: 0.04em;
  padding: 3px 8px;
  background: rgba(26, 26, 26, 0.78); color: var(--gold);
  border-radius: 999px;
}
.card__body { padding: 12px 13px 16px; text-align: center; }
.card__name { font-family: var(--serif); font-size: 14px; line-height: 1.3; margin-bottom: 8px; }
.card__price { font-size: 16px; color: var(--gold-dark); font-weight: 700; }
.card__price small { color: var(--ink-soft); font-weight: 400; display: block; font-size: 11px; margin-bottom: 1px; }

.empty { text-align: center; color: var(--ink-soft); padding: 40px 16px; font-family: var(--serif); }

/* ============ FOOTER ============ */
.footer {
  background: #161616;
  color: #d8d4cc;
  padding: 40px 0 28px;
  margin-top: 20px;
}
.footer__inner { display: grid; gap: 28px; }
.footer__brand { font-family: var(--serif); font-size: 22px; letter-spacing: 0.2em; color: #fff; margin-bottom: 8px; }
.footer__slogan { font-size: 13px; color: #9a958c; margin-bottom: 12px; }
.footer__copy { font-size: 12px; color: #7a766e; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 12px; }
.footer__col a { display: block; font-size: 14px; padding: 5px 0; color: #c9c4bb; }
.footer__col a:hover { color: var(--gold); }

/* ============ CATÁLOGO ============ */
.catalog { display: block; }
.catalog__head { padding: 18px 0 6px; }
.catalog__count { font-size: 13px; color: var(--ink-soft); }
.catalog__layout { display: block; }
.catalog__main { padding-bottom: 30px; }

.filter-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  margin: 12px 0;
}

.filters-panel { }
.filter-group { margin-bottom: 18px; }
.filter-group__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); margin-bottom: 8px; display: block;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  white-space: nowrap; transition: all 0.15s;
}
.chip--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input {
  width: 100%; font-size: 14px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); outline: none;
}
.price-range input:focus { border-color: var(--gold); }
.btn-clear {
  font-size: 13px; color: var(--gold-dark); text-decoration: underline; padding: 6px 0;
}
.btn-more {
  display: block; margin: 24px auto 0;
  font-size: 14px; font-weight: 600;
  padding: 12px 28px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--surface);
}
.btn-more:hover { background: var(--ink); color: #fff; }

/* drawer de filtros no mobile */
.filters-drawer { }
.filters-drawer .filters-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71;
  width: 86%; max-width: 360px;
  background: var(--surface); padding: 20px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.25s ease;
}
.filters-drawer.is-open .filters-panel { transform: translateX(0); }
.filters-drawer .filters-panel { display: block; }
.filters-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.filters-panel__head h3 { font-family: var(--serif); font-size: 18px; }
.filters-panel__close { font-size: 26px; color: var(--ink-soft); }

/* ============ PÁGINA DE PRODUTO ============ */
.breadcrumb { font-size: 12px; color: var(--ink-soft); padding: 14px 0; }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span { margin: 0 6px; }
.product { display: block; padding-bottom: 30px; }
.product__gallery-main {
  aspect-ratio: 1 / 1; background: #f1eee9;
  border-radius: var(--radius); overflow: hidden; margin-bottom: 10px;
}
.product__gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.product__thumb {
  flex: 0 0 64px; width: 64px; height: 64px;
  border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: #f1eee9;
}
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__thumb--active { border-color: var(--gold); }
.product__name { font-family: var(--serif); font-size: 26px; margin: 16px 0 8px; }
.product__price { font-size: 24px; color: var(--gold-dark); font-weight: 700; margin-bottom: 14px; }
.product__pedra {
  display: inline-block; font-size: 12px; letter-spacing: 0.04em;
  color: var(--gold-dark); background: rgba(201, 169, 97, 0.15);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.product__desc { color: var(--ink-soft); margin-bottom: 22px; }
.selector { margin-bottom: 20px; }
.selector__label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-soft); margin-bottom: 8px;
}
.selector__options { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-whats {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; font-size: 16px; font-weight: 600; padding: 16px;
  background: var(--whats); color: #fff; border-radius: var(--radius); margin-top: 6px;
}
.btn-whats svg { width: 22px; height: 22px; fill: #fff; }
.btn-whats:active { opacity: 0.92; }
.related { margin-top: 40px; }

/* ============ PLACEHOLDERS EDITÁVEIS (sobre/contato) ============ */
.page { padding: 30px 0 50px; max-width: 760px; }
.page h1 { font-family: var(--serif); font-size: 30px; margin-bottom: 18px; }
.page h2 { font-family: var(--serif); font-size: 21px; margin: 26px 0 10px; }
.page p { margin-bottom: 10px; color: var(--ink); }
.editable {
  background: #fff8d6;
  border: 1px dashed #d4af37;
  border-radius: 6px;
  padding: 10px 12px;
  color: #6b5d1f;
  font-size: 14px;
}
.contact-whats {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; padding: 14px 26px;
  background: var(--whats); color: #fff; border-radius: var(--radius);
  margin: 8px 0 4px;
}
.contact-whats svg { width: 22px; height: 22px; fill: #fff; }

/* ============ WhatsApp Floating Button ============ */
.whats-float {
  position: fixed;
  bottom: 84px;
  left: 20px;
  z-index: 50;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whats);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whats-float svg { width: 32px; height: 32px; fill: #fff; }

/* ============ DESKTOP (>=768px) ============ */
@media (min-width: 768px) {
  .section { padding: 56px 0; }
  .section__title { font-size: 32px; margin-bottom: 32px; }

  .carousel__slide { height: 616px; }
  .carousel__caption { font-size: 52px; }

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

  .cat-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid--4 { grid-template-columns: repeat(4, 1fr); }

  .grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
  .card__name { font-size: 16px; }
  .card__price { font-size: 18px; }

  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }

  /* catálogo: sidebar fixa à esquerda */
  .catalog__layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
  .filter-toggle { display: none; }
  .filters-drawer { position: sticky; top: 80px; }
  .filters-drawer .filters-panel {
    position: static; transform: none; width: auto; max-width: none; padding: 0;
  }
  .filters-panel__close { display: none; }
  .filters-panel__head h3 { display: block; }

  /* produto: 2 colunas */
  .product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .product__media { position: sticky; top: 80px; }
  .related { grid-column: 1 / -1; }

  .whats-float { width: 64px; height: 64px; bottom: 24px; }
  .whats-float:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); }

  .catalog__grid--3 { }
}

/* tablet: catálogo 3 colunas */
@media (min-width: 768px) and (max-width: 1023px) {
  .catalog__main .grid { grid-template-columns: repeat(3, 1fr); }
}
