*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a1f2e;
  --navy-mid: #252c3f;
  --gold: #b8914a;
  --gold-light: #d4b07a;
  --cream: #f5f0e8;
  --cream-dark: #ede6d6;
  --slate: #8b9aaa;
  --white: #ffffff;
  --text-body: #3c3c3c;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-toggle { display: none; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 20px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 13px !important;
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--navy);
  padding: 64px 40px 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: 'CATÁLOGO';
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: 160px;
  font-weight: 300;
  color: rgba(255,255,255,0.03);
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  letter-spacing: 12px;
  pointer-events: none;
  white-space: nowrap;
}
.breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero p {
  color: rgba(255,255,255,0.45);
  font-size: 15px;
  max-width: 520px;
  line-height: 1.8;
}

/* ── FILTER BAR ── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 0;
  position: sticky;
  top: 68px;
  z-index: 90;
  /* Com as 7 categorias + "Todas", os botões nem sempre cabem numa linha
     só. Antes isso empurrava a página inteira pra ficar mais larga que a
     tela (sobrava uma tira em branco do lado); agora a barra rola só por
     dentro dela mesma. */
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.filter-tab {
  padding: 18px 24px;
  font-size: 13px;
  color: var(--slate);
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.filter-tab:hover { color: var(--navy); }
.filter-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
  font-weight: 500;
}
.filter-spacer { flex: 1; }
.filter-count {
  font-size: 12px;
  color: var(--slate);
  padding: 0 4px;
}

/* ── SECTION ── */
.catalog-section { padding: 64px 40px; }
.catalog-section + .catalog-section {
  padding-top: 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cream-dark);
}
.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.2;
}
.section-title em { font-style: italic; }
.section-note {
  font-size: 12px;
  color: var(--slate);
  max-width: 260px;
  text-align: right;
  line-height: 1.6;
}

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-grid > li { min-width: 0; }

.product-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--gold-light);
  box-shadow: 0 8px 32px rgba(26,31,46,0.1);
  transform: translateY(-2px);
}

/* IMAGE PLACEHOLDER */
.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Mostrar quando adicionar imagem real */
}
.product-img .img-placeholder-icon,
.product-img .img-placeholder-text,
.product-img .img-add-hint {
  display: none;
}

/* ── Ajustes específicos para a seção 'Coroas de Flores' ── */
#section-coroas .product-img {
  /* tornar caixas quadradas (quadradinhos) */
  aspect-ratio: 1 / 1;
  background: var(--cream-dark);
  padding: 8px; /* espaço para evitar corte de bordas */
}
#section-coroas .product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* não cortar a imagem, ajustar inteira */
  object-position: center;
  background-color: var(--cream-dark);
  display: block;
}
#section-coroas .featured-img.fslide-wrap,
#section-coroas .featured-img {
  /* garantir slides também visualmente centrados */
  aspect-ratio: 1 / 1;
}
#section-coroas .featured-img img,
#section-coroas .fslide img {
  object-fit: contain;
  object-position: center;
}
.img-placeholder-icon {
  font-size: 36px;
  opacity: 0.4;
}
.img-placeholder-text {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.7;
}
.img-add-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 31, 46, 0.034);
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* BADGE */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 500;
}
.badge-destaque {
  background: var(--gold);
  color: var(--navy);
}
.badge-premium {
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold);
}
.badge-novo {
  background: #2d5a3d;
  color: #a8d5b5;
}

/* PRODUCT INFO */
.product-info { padding: 18px 18px 20px; }
.product-category {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
}
.product-desc {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 38px;
}
.product-footer {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--cream-dark);
}
.product-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.price-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--slate);
}
.price-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
}
.price-value.placeholder {
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--slate);
  font-style: italic;
}
.btn-consult {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.btn-consult:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── LARGE FEATURED CARD ── */
.featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.featured-row > li {
  min-width: 0; /* evita que o conteudo (texto/imagem) force a coluna alem do espaco disponivel */
}
.featured-card {
  min-width: 0;
  background: var(--navy-mid);
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  cursor: pointer;
  transition: opacity 0.2s;
}
.featured-card:hover { opacity: 0.92; }
.featured-img {
  aspect-ratio: 1;
  background: rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}
.featured-img.fslide-wrap {
  background: transparent !important;
}
.fslide-wrap {
  background: transparent !important;
}
.fslide {
  background: transparent !important;
}
.fslide-dots {
  background: transparent !important;
}
.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.featured-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.featured-tag {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.featured-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
}
.featured-info p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
.featured-price-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.featured-price-label { font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: 1px; text-transform: uppercase; }
.featured-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--white);
}
.featured-price.placeholder {
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}
.featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 2px;
  text-decoration: none;
  width: fit-content;
  margin-top: 4px;
  transition: background 0.2s;
}
.featured-btn:hover { background: var(--gold-light); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--cream-dark);
  margin: 0 40px;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--navy);
  margin: 0 40px 64px;
  border-radius: 4px;
  padding: 48px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(184,145,74,0.12);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(184,145,74,0.06);
  border-radius: 50%;
}
.cta-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-text h3 em { font-style: italic; color: var(--gold-light); }
.cta-text p { font-size: 14px; color: rgba(255,255,255,0.4); max-width: 400px; line-height: 1.7; }
.cta-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 13px 24px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  padding: 13px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.55);
  border-radius: 2px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }

/* ── FOOTER ── */
/* Seletor "body > footer" (em vez de só "footer") para não pintar também
   o <footer class="product-footer"> de cada card de produto — antes isso
   deixava o preço quase ilegível (texto azul-marinho em cima de fundo
   quase preto). */
body > footer {
  background: #10141f;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-logo span { color: var(--gold); opacity: 0.6; }
.footer-text { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.25); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,0.5); }

/* ── CAROUSEL ── */
.carousel-block {
  margin-bottom: 48px;
}
.carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cream-dark);
}
.carousel-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}
.carousel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.2;
}
.carousel-title em { font-style: italic; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  color: var(--navy);
  border-radius: 2px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.carousel-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--cream-dark) transparent;
}
.carousel-track::-webkit-scrollbar { height: 4px; }
.carousel-track::-webkit-scrollbar-track { background: transparent; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 2px; }
.carousel-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
  flex: 0 0 260px;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
  cursor: pointer;
}
.carousel-card:hover {
  border-color: var(--gold-light);
  box-shadow: 0 8px 32px rgba(26,31,46,0.1);
  transform: translateY(-2px);
}
.carousel-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* ── ROW LABELS ── */
.row-label-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  margin-top: 8px;
}
.row-label-block::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream-dark);
}
.row-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  font-weight: 500;
}

/* ── FEATURED SLIDESHOW ── */
.fslide-wrap { position: relative; overflow: hidden; width: 100%; height: 100%; }
.fslide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  z-index: 0;
}
.fslide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.fslide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Pontos */
.fslide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.fslide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s;
}
.fslide-dot.active { background: var(--gold); }
/* Setas */
.fslide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,31,46,0.55);
  border: 1px solid rgba(184,145,74,0.3);
  color: rgba(255,255,255,0.8);
  width: 30px;
  height: 30px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}
.fslide-arrow:hover { background: var(--gold); color: var(--navy); }
.fslide-prev { left: 10px; }
.fslide-next { right: 10px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-toggle { display: block; background:transparent; border:none; color:var(--white); font-size:22px; cursor:pointer; }
  .nav-links { display: none; }
  .nav-links.open { display:flex; flex-direction:column; position:absolute; top:68px; left:0; right:0; background:var(--navy); padding:12px 20px; gap:12px; z-index:99; align-items:flex-start; }
  .nav-links.open a { color: rgba(255,255,255,0.95); padding:8px 0; }
  .nav-links.open a.nav-cta { width:100%; text-align:center; padding:10px 12px; border-radius:4px; }
  .page-hero { padding: 48px 20px; }
  .page-hero h1 { font-size: 36px; }
  .catalog-section { padding: 48px 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-note { text-align: left; max-width: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .featured-row { grid-template-columns: 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .cta-banner { margin: 0 20px 48px; flex-direction: column; }
  footer { padding: 24px 20px; flex-direction: column; gap: 12px; text-align: center; }
  .filter-bar { padding: 0 20px; overflow-x: auto; }
  .divider { margin: 0 20px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}

img {
  opacity:1 !important;
  display:block !important;
  z-index: index 9999;
  visibility: visible !important;
}

/* ── PRODUTO: cards agora sao clicaveis (abrem modal de detalhes) ── */
.product-card:focus-visible,
.featured-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── MODAL DE DETALHES DO PRODUTO ── */
.produto-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.produto-modal[hidden] { display: none; }
.produto-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 31, 0.72);
}
.produto-modal-box {
  position: relative;
  background: var(--white);
  border-radius: 6px;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 1;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.produto-modal-fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(26,31,46,0.75);
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.produto-modal-fechar:hover { background: var(--navy); }
.produto-modal-img {
  background: var(--cream-dark);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.produto-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.produto-modal-info {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.produto-modal-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
}
.produto-modal-info p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
}
.produto-modal-medida { font-size: 12px !important; color: var(--gold) !important; }
.produto-modal-preco-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}
.produto-modal-preco {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: var(--navy);
}
.produto-modal-info .btn-primary { margin-top: 10px; width: fit-content; }

@media (max-width: 640px) {
  .produto-modal-box { grid-template-columns: 1fr; }
  .produto-modal-img { aspect-ratio: 4/3; }
}