/* =====================================================
   GALERIA FELIPPE — Folha de estilo
   Paleta e tipografia inspiradas em galerias de design
   escandinavas: creme, grafite e taupe, serifa elegante.
   ===================================================== */
:root {
  --bg: #f3efe6;
  --bg-soft: #ece7db;
  --ink: #28281f;
  --ink-soft: #55534a;
  --taupe: #c9c2b4;
  --hairline: #d9d3c5;
  --white: #fdfcf9;
  --accent: #28281f;
  --wa: #128c4b;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --header-h: 64px;
}

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

.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* etiqueta pequena em caixa alta */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .logo-tag {
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 3px;
  margin-left: 2px;
}
.logo .logo-main {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.header-nav { display: none; gap: 28px; }
.header-nav a {
  font-size: 17px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.header-nav a:hover, .header-nav a.active { border-bottom-color: var(--ink); }
.header-icons { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  background: none;
  border: none;
  padding: 9px;
  color: var(--ink);
  position: relative;
  display: inline-flex;
}
.icon-btn svg { width: 21px; height: 21px; stroke-width: 1.4; }
.icon-btn .badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  min-width: 15px; height: 15px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: Arial, sans-serif;
}
.icon-btn .badge:empty { display: none; }

@media (min-width: 980px) {
  .header-nav { display: flex; }
  .only-mobile { display: none !important; }
  :root { --header-h: 76px; }
  .logo .logo-main { font-size: 34px; }
}

/* ============ DRAWERS / OVERLAYS ============ */
.scrim {
  position: fixed; inset: 0;
  background: rgba(30, 28, 22, 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  z-index: 90;
}
.scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; bottom: 0;
  width: min(420px, 88vw);
  background: var(--bg);
  z-index: 100;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer-left { left: 0; transform: translateX(-105%); }
.drawer-right { right: 0; transform: translateX(105%); }
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
}
.drawer-head .eyebrow { font-size: 13px; }
.drawer-body { padding: 10px 24px 32px; flex: 1; }
.drawer-nav a {
  display: block;
  font-size: 28px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.drawer-nav a.small { font-size: 18px; color: var(--ink-soft); border-bottom: none; padding: 7px 0; }
.drawer-nav .group-label { margin: 26px 0 4px; }

/* busca */
.search-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg);
  z-index: 100;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-110%);
  transition: transform 0.3s;
  display: flex; gap: 12px; align-items: center;
}
.search-bar.open { transform: translateY(0); }
.search-bar > svg { width: 22px; height: 22px; flex-shrink: 0; stroke-width: 1.4; }
.search-bar input {
  flex: 1;
  font-family: var(--serif);
  font-size: 22px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 6px 2px;
  color: var(--ink);
  outline: none;
}
.search-results {
  position: fixed;
  top: 76px; left: 0; right: 0;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--bg);
  z-index: 99;
  border-bottom: 1px solid var(--hairline);
  display: none;
}
.search-results.open { display: block; }
.search-results a {
  display: flex; gap: 14px; align-items: center;
  padding: 10px 20px;
  border-top: 1px solid var(--hairline);
}
.search-results a img { width: 54px; height: 54px; object-fit: cover; }

/* sacola */
.bag-item {
  display: flex; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.bag-item img { width: 84px; height: 84px; object-fit: cover; }
.bag-item .bi-info { flex: 1; }
.bag-item .bi-name { font-size: 18px; }
.bag-item .bi-price { color: var(--ink-soft); font-size: 16px; }
.qty {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--hairline);
  padding: 2px 10px;
  margin-top: 8px;
  font-size: 16px;
}
.qty button { background: none; border: none; font-size: 18px; padding: 2px 6px; }
.drawer-foot { padding: 18px 24px 28px; border-top: 1px solid var(--hairline); }
.empty-note { color: var(--ink-soft); font-style: italic; padding: 28px 0; text-align: center; }

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 30px;
  transition: background 0.25s, color 0.25s;
  width: 100%;
  text-align: center;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn svg { width: 18px; height: 18px; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: transparent; color: var(--wa); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
@media (min-width: 980px) { .btn { width: auto; } }

.link-italic {
  font-style: italic;
  font-size: 20px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* ============ HERO ============ */
.hero { position: relative; background: var(--bg-soft); }
.hero img {
  width: 100%;
  height: 78vh;
  min-height: 480px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero img.loaded { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(25, 22, 16, 0.55), rgba(25, 22, 16, 0) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 0 24px 56px;
  color: #f6f3ea;
}
.hero-overlay h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 500;
  line-height: 1.12;
  max-width: 700px;
  margin-bottom: 12px;
}
.hero-overlay p {
  font-size: 19px;
  max-width: 520px;
  margin-bottom: 22px;
  color: #ece7da;
}
.hero-overlay .link-italic { color: #f6f3ea; border-bottom-color: #f6f3ea; }
@media (min-width: 980px) {
  .hero img { height: 86vh; }
}

/* banner em slideshow: uma foto de cada obra, troca com fade e zoom lento */
.hero.slideshow { height: 78vh; min-height: 480px; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.on { opacity: 1; }
.hero .hero-slide img {
  width: 100%; height: 100%; min-height: 0;
  object-fit: cover; opacity: 1; transform: scale(1);
}
.hero-slide.on img { animation: hero-zoom 7.5s ease-out forwards; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-caption {
  position: absolute; right: 24px; bottom: 22px; z-index: 2;
  color: #f6f3ea; font-style: italic; font-size: 16px; letter-spacing: 0.03em;
  /* fundo translúcido: legível sobre fotos claras (parede branca) e escuras */
  background: rgba(28, 26, 20, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 6px 14px; border-radius: 999px;
  transition: background 0.25s;
}
.hero-caption:hover { background: rgba(28, 26, 20, 0.8); }
.hero-caption::after { content: " →"; }
@media (max-width: 979px) {
  /* no celular a chamada fica no rodapé do banner; a legenda sobe para o canto de cima */
  .hero-caption { top: 18px; bottom: auto; right: 18px; font-size: 15px; }
}
@media (min-width: 980px) {
  .hero.slideshow { height: 86vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.on img { animation: none; }
  .hero-slide { transition-duration: 0.6s; }
}

/* ============ SEÇÕES ============ */
.section { padding: 64px 0; }
.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  margin-bottom: 36px;
}

/* categorias — carrossel horizontal no mobile */
.cat-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-card {
  position: relative;
  flex: 0 0 68%;
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.cat-card:hover img { transform: scale(1.04); }
.cat-card span {
  position: absolute;
  top: 26px; left: 0; right: 0;
  text-align: center;
  color: #f6f3ea;
  font-size: 26px;
  text-shadow: 0 1px 14px rgba(20, 18, 12, 0.45);
}
@media (min-width: 980px) {
  .cat-card { flex: 0 0 31.5%; }
  .cat-card span { font-size: 30px; }
}

/* carrossel com setas */
.carousel { position: relative; }
.carousel [data-track] { cursor: grab; }
.carousel [data-track].dragging {
  cursor: grabbing;
  scroll-snap-type: none; /* o snap nativo brigaria com o arrasto manual */
  scroll-behavior: auto;
  user-select: none;
}
.carousel [data-track] a,
.carousel [data-track] img { -webkit-user-drag: none; user-drag: none; }
.car-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(40, 36, 26, 0.14);
  transition: opacity 0.25s, background 0.25s;
}
.car-btn:hover { background: var(--ink); color: var(--bg); }
.car-btn svg { width: 20px; height: 20px; stroke-width: 1.4; }
.car-btn.prev { left: 18px; }
.car-btn.next { right: 18px; }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
@media (min-width: 980px) {
  .carousel.has-overflow .car-btn { display: inline-flex; }
}

/* editorial centrado (estilo "Audo House") */
.editorial {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px;
}
.editorial h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 500;
  margin-bottom: 20px;
}
.editorial p { margin-bottom: 26px; color: var(--ink-soft); font-size: 20px; }

/* grid de duas imagens */
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.duo-grid a { position: relative; overflow: hidden; }
.duo-grid img {
  width: 100%; height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.duo-grid a:hover img { transform: scale(1.04); }

/* banner largo */
.banner { position: relative; }
.banner img { width: 100%; height: 56vh; min-height: 380px; object-fit: cover; }
.banner .hero-overlay { padding-bottom: 48px; }

/* ============ PRODUTOS ============ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;
}
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 40px 24px; } }

.product-card { position: relative; }
.product-card .pc-img {
  display: block;
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.product-card .pc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .pc-img img { transform: scale(1.04); }
.pc-fav {
  position: absolute;
  top: 10px; right: 10px;
  background: none; border: none;
  color: #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35));
  padding: 6px;
}
.pc-fav svg { width: 20px; height: 20px; stroke-width: 1.6; }
.pc-fav.active svg { fill: #fff; }
.product-card .pc-name { margin-top: 12px; font-size: 19px; line-height: 1.3; }
.product-card .pc-price { color: var(--ink-soft); font-size: 17px; margin-top: 2px; }
.pc-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 9px 14px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.pc-wa svg { width: 15px; height: 15px; }
.pc-wa:hover { background: var(--wa); border-color: var(--wa); color: #fff; }

/* filtros da loja */
.shop-head { text-align: center; padding: 48px 20px 8px; }
.shop-head h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 500; }
.filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  justify-content: flex-start;
  padding: 26px 20px 34px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  white-space: nowrap;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
}
.filter-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (min-width: 980px) { .filter-row { justify-content: center; } }

/* ============ PÁGINA DE PRODUTO ============ */
.pdp {
  display: grid;
  gap: 28px;
  padding: 28px 0 72px;
}
/* galeria de fotos do produto */
.pdp-gallery { min-width: 0; }
.pg-main {
  position: relative;
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  touch-action: pan-y; /* deixa a rolagem vertical da página; o deslize lateral troca a foto */
}
.pg-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.25s ease; }
.pg-main img.fading { opacity: 0; }
.pg-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--bg); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(40, 36, 26, 0.14);
}
.pg-nav:hover { background: var(--ink); color: var(--bg); }
.pg-nav svg { width: 20px; height: 20px; stroke-width: 1.4; }
.pg-nav.prev { left: 12px; }
.pg-nav.next { right: 12px; }
.pg-count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(253, 252, 249, 0.85); color: var(--ink);
  font-size: 14px; letter-spacing: 0.08em; padding: 3px 10px;
}
.pg-thumbs {
  display: flex; gap: 8px; margin-top: 10px;
  overflow-x: auto; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.pg-thumbs button {
  flex: 0 0 auto; width: 68px; height: 85px; padding: 0;
  border: 1px solid transparent; background: var(--bg-soft);
  opacity: 0.55; transition: opacity 0.2s, border-color 0.2s;
}
.pg-thumbs button:hover { opacity: 0.9; }
.pg-thumbs button.active { opacity: 1; border-color: var(--ink); }
.pg-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 980px) {
  .pg-main { aspect-ratio: auto; height: min(80vh, 860px); }
  .pg-thumbs button { width: 78px; height: 98px; }
}
.pdp-info { padding: 0 20px; }
.pdp-info .eyebrow { margin-bottom: 10px; }
.pdp-info h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 500; line-height: 1.15; }
.pdp-info .pdp-price { font-size: 24px; margin: 14px 0 22px; }
.pdp-info .pdp-desc { color: var(--ink-soft); margin-bottom: 30px; }
.pdp-actions { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.pdp-note { margin-top: 18px; font-size: 16px; font-style: italic; color: var(--ink-soft); }
@media (min-width: 980px) {
  .pdp { grid-template-columns: 1.15fr 1fr; align-items: start; gap: 64px; }
  .pdp-info { padding: 40px 40px 0 0; position: sticky; top: 100px; }
  .pdp-actions .btn { width: 100%; }
}

/* ============ PÁGINAS INSTITUCIONAIS ============ */
.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.page-body h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 500; text-align: center; margin-bottom: 28px; }
.page-body p { color: var(--ink-soft); margin-bottom: 18px; font-size: 20px; }
.contact-list { list-style: none; margin: 30px 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--taupe);
  color: var(--ink);
  margin-top: 40px;
  padding: 56px 0 32px;
}
.footer-cols {
  display: grid;
  gap: 40px;
}
.footer-col h4 { font-size: 21px; font-weight: 500; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: 17px; color: #3c3a31; }
.footer-col a:hover { text-decoration: underline; }
.newsletter p { font-size: 17px; color: #3c3a31; margin-bottom: 16px; }
.newsletter .btn { width: 100%; }
.footer-social { display: flex; gap: 12px; margin-top: 26px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--taupe);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; }
.footer-logo {
  text-align: center;
  margin: 56px 0 18px;
}
.footer-logo .logo-tag { font-size: 9px; letter-spacing: 0.42em; text-transform: uppercase; color: #3c3a31; }
.footer-logo .logo-main { font-size: 36px; font-weight: 500; }
.footer-address {
  text-align: center;
  font-size: 15px;
  color: #3c3a31;
  line-height: 1.7;
}
@media (min-width: 980px) {
  .footer-cols { grid-template-columns: 1fr 1fr 1.4fr; gap: 64px; }
  .newsletter .btn { width: auto; }
}

/* botão flutuante de WhatsApp */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(20, 60, 35, 0.35);
}
.wa-float svg { width: 27px; height: 27px; }

/* util */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
