/* ─── CATALOG MODAL ──────────────────────────────────── */

/* Cursor pointer em cards clicáveis */
.line-card[data-brand] { cursor: pointer; }

/* ─── GRADE INLINE DE PRODUTOS (páginas de marca) ───────
   Produtos visíveis direto na página; clique adiciona/remove
   da lista, sem precisar abrir um modal. */
.brand-products { background: var(--light); padding: 80px 56px; }
.brand-products-header { text-align: center; margin-bottom: 48px; }
.brand-products-header h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 400; color: var(--dark); }
.brand-products-header h2 em { font-style: italic; color: var(--gold); }
.brand-products-header p { font-size: 0.88rem; font-weight: 300; color: var(--mid); max-width: 460px; margin: 12px auto 0; line-height: 1.7; }
.brand-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .brand-products { padding: 56px 24px; }
  .brand-products-grid { grid-template-columns: repeat(2, 1fr); }
}

.cproduct-group-title {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dk, var(--gold));
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-top: 8px;
}
.cproduct-group-title:first-child { margin-top: 0; }

.cmodal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cmodal.open { opacity: 1; pointer-events: all; }

.cmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}

.cmodal-panel {
  position: relative;
  background: #fff;
  width: min(920px, 95vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(28px);
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}
.cmodal.open .cmodal-panel { transform: translateY(0); }

.cmodal-head {
  padding: 32px 40px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #f0ede8;
  flex-shrink: 0;
}
.cmodal-eyebrow {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.cmodal-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--dark);
  margin: 0;
}
.cmodal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--mid);
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.cmodal-close:hover { color: var(--dark); }

.cmodal-grid {
  padding: 28px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  overflow-y: auto;
  flex: 1;
}

/* Card de produto dentro do modal */
.cproduct {
  border: 2px solid #ede9e3;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.cproduct:hover { border-color: #c8b98a; background: #faf9f7; }
.cproduct.selected { border-color: var(--gold); background: rgba(184,154,87,0.05); }
.cproduct.in-cart { opacity: 0.55; cursor: default; }

.cproduct-img {
  aspect-ratio: 1;
  background: #f4f1ec;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cproduct-img img { width: 78%; height: 78%; object-fit: contain; }
.cproduct-no-img {
  font-size: 0.58rem;
  color: rgba(0,0,0,0.2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.5;
}
.cproduct-info { padding: 10px 12px 12px; }
.cproduct-name {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.35;
}
.cproduct-incart {
  font-size: 0.62rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 3px;
}

/* Checkbox visual */
.cproduct-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d9d4cc;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cproduct.selected .cproduct-check { background: var(--gold); border-color: var(--gold); }
.cproduct-check::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
  transition: opacity 0.1s;
}
.cproduct.selected .cproduct-check::after { opacity: 1; }

.cmodal-foot {
  padding: 18px 40px;
  border-top: 1px solid #f0ede8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #faf9f7;
  flex-shrink: 0;
  gap: 16px;
}
.cmodal-count { font-size: 0.8rem; color: var(--mid); }
.cmodal-count strong { color: var(--dark); font-weight: 600; }

/* ─── FLOATING LIST BUTTON ───────────────────────────── */
.clista-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 8000;
  background: var(--dark);
  color: #fff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  transition: background 0.2s, transform 0.2s;
}
.clista-fab:hover { background: var(--gold-dk, #9A7E45); transform: translateY(-2px); }

.clista-count {
  background: var(--gold);
  color: var(--dark);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── LISTA DRAWER ───────────────────────────────────── */
.clista-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  z-index: 9100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: -8px 0 48px rgba(0,0,0,0.14);
}
.clista-drawer.open { transform: translateX(0); }

.clista-drawer-head {
  padding: 28px 32px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0ede8;
  flex-shrink: 0;
}
.clista-drawer-head h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--dark);
}
.clista-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--mid);
  padding: 4px;
  transition: color 0.2s;
}
.clista-drawer-close:hover { color: var(--dark); }

.clista-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.clista-empty {
  text-align: center;
  color: var(--mid);
  font-size: 0.82rem;
  margin-top: 48px;
  line-height: 1.7;
}
.clista-group-title {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0ede8;
}
.clista-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #faf8f5;
}
.clista-item-img {
  width: 44px;
  height: 44px;
  background: #f4f1ec;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.clista-item-img img { width: 34px; height: 34px; object-fit: contain; }
.clista-item-name {
  flex: 1;
  font-size: 0.77rem;
  color: var(--dark);
  line-height: 1.35;
}
.clista-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(0,0,0,0.2);
  font-size: 1.2rem;
  padding: 4px 6px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.clista-item-remove:hover { color: #c0392b; }

.clista-drawer-foot {
  padding: 16px 32px 28px;
  border-top: 1px solid #f0ede8;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.clista-hotel-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0dbd4;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--dark);
  background: #faf9f7;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.clista-hotel-input:focus { border-color: var(--gold); }
.clista-hotel-input::placeholder { color: rgba(0,0,0,0.28); }
.clista-hint {
  font-size: 0.7rem;
  color: var(--mid);
  line-height: 1.55;
}
.clista-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

/* ─── MOBILE ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .cmodal-grid { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .cmodal-head { padding: 24px 20px 16px; }
  .cmodal-foot { padding: 14px 20px; flex-direction: column; align-items: flex-start; }
  .clista-fab { bottom: 20px; right: 16px; padding: 12px 18px; }
}
