:root{
  --green:#123d34;
  --green2:#1d5548;
  --gold:#c9a45e;
  --cream:#f7f3ec;
  --paper:#fff;
  --ink:#22211f;
  --muted:#6f6a63;
  --line:#e3ddd4;
  --soft:#efe8dc;
  --wa:#1f7a45;
  --shadow:0 18px 50px rgba(36,32,28,.09);
  --safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  margin:0;
  min-width:320px;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  background:var(--cream);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
button,input,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{touch-action:manipulation}
img{display:block;max-width:100%}
.wrap{width:min(1180px,calc(100% - 36px));margin:auto}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(0,0,0,.06)
}
.topbar-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px
}
.logo{
  display:flex;
  align-items:center;
  text-decoration:none;
  min-width:0
}
.logo img{
  width:230px;
  max-width:42vw;
  height:auto
}
.mini-list{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  min-height:46px;
  padding:10px 15px;
  cursor:pointer;
  display:flex;
  gap:9px;
  align-items:center;
  white-space:nowrap
}
.mini-list b{
  background:var(--green);
  color:#fff;
  border-radius:99px;
  min-width:25px;
  height:25px;
  display:grid;
  place-items:center;
  font-size:12px
}

.hero{padding:52px 0 48px}
.hero-grid{display:grid;grid-template-columns:1.4fr .75fr;gap:26px}
.hero-copy{
  min-height:455px;
  border-radius:30px;
  padding:56px;
  background:linear-gradient(140deg,#16473c,#0c2b25);
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden
}
.hero-copy:after{
  content:"";
  position:absolute;
  width:320px;
  height:320px;
  border:1px solid rgba(201,164,94,.35);
  border-radius:50%;
  right:-110px;
  top:-120px
}
.kicker{font-size:12px;letter-spacing:.18em;font-weight:800;color:#d8be87}
.kicker.green{color:var(--green2)}
h1,h2,h3,p{margin-top:0}
.hero h1{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(44px,6vw,72px);
  line-height:.98;
  letter-spacing:-.04em;
  margin:14px 0 22px;
  max-width:820px
}
.hero-copy p{
  font-size:18px;
  line-height:1.65;
  color:rgba(255,255,255,.78);
  max-width:670px
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}
.hero-note{
  background:#eee3cf;
  border-radius:30px;
  padding:42px;
  display:flex;
  flex-direction:column;
  justify-content:center
}
.hero-note .gift{font-size:52px;color:var(--gold);line-height:1}
.hero-note h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:34px;
  margin:12px 0 24px;
  color:var(--green)
}
.steps{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:13px;
  padding:15px 0;
  border-top:1px solid rgba(18,61,52,.16)
}
.steps b{color:var(--gold)}
.steps p{margin:0;color:#5f574d}

.btn{
  border:0;
  border-radius:999px;
  min-height:50px;
  padding:0 23px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:.15s
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:#fff;color:var(--green)}
.btn.ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35)}
.btn.outline{background:#fff;border:1px solid var(--line);color:var(--ink)}

.catalog{padding:54px 0 76px}
.section-title,.list-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:28px
}
.section-title h2,.list-head h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(36px,4vw,50px);
  letter-spacing:-.035em;
  margin:6px 0 0;
  color:var(--green)
}
.section-title p{margin:0;color:var(--muted)}
.filters{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-bottom:24px;
  overflow-x:auto;
  scrollbar-width:none
}
.filters::-webkit-scrollbar{display:none}
.filter{
  border:1px solid var(--line);
  background:rgba(255,255,255,.75);
  min-height:42px;
  padding:10px 15px;
  border-radius:999px;
  cursor:pointer;
  white-space:nowrap
}
.filter.active{background:var(--green);border-color:var(--green);color:#fff}

.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px
}
.card{
  min-width:0;
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 8px 26px rgba(35,31,27,.055);
  display:flex;
  flex-direction:column
}
.card-media{
  aspect-ratio:1/1;
  background:#fff;
  padding:22px;
  display:grid;
  place-items:center;
  border-bottom:1px solid #f2eee8
}
.card-media img{width:100%;height:100%;object-fit:contain}
.card-body{padding:21px;display:flex;flex-direction:column;flex:1}
.tag{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.15em;
  font-weight:800;
  color:var(--gold)
}
.card h3{font-size:20px;line-height:1.25;margin:9px 0 8px}
.meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:13px;
  margin-bottom:16px;
  flex-wrap:wrap
}
.price{
  font-family:Georgia,"Times New Roman",serif;
  font-size:29px;
  color:var(--green);
  font-weight:700;
  margin-top:auto;
  margin-bottom:16px
}
.product-controls{display:grid;gap:10px}
.add{width:100%;background:var(--green);color:#fff}
.add.added{background:#e9dfcf;color:var(--green)}

.qty-control{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px;
  background:#fbfaf8
}
.qty-control[hidden]{display:none}
.qty-control span{
  font-size:13px;
  font-weight:800;
  color:var(--muted)
}
.qty-box{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto
}
.qty-btn{
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background:var(--green);
  color:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  display:grid;
  place-items:center
}
.qty-value{
  min-width:30px;
  text-align:center;
  font-weight:900;
  color:var(--green);
  font-variant-numeric:tabular-nums
}

.wishlist{padding:20px 0 96px}
.list-panel{
  background:#fff;
  border-radius:30px;
  padding:clamp(26px,5vw,54px);
  box-shadow:var(--shadow)
}
.summary-pill{
  background:#efe5d3;
  color:var(--green);
  font-weight:800;
  padding:10px 16px;
  border-radius:999px
}
.empty-state{text-align:center;color:var(--muted);padding:52px 20px 20px}
.empty-state .heart{font-size:60px;color:var(--gold)}
.empty-state h3{color:var(--ink);font-size:23px;margin:6px 0 8px}
.hidden{display:none!important}
.selected-items{display:grid;gap:12px}
.selected{
  display:grid;
  grid-template-columns:78px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:17px;
  padding:10px
}
.selected img{
  width:78px;
  height:70px;
  object-fit:contain;
  background:#fff;
  border-radius:10px
}
.selected-info{min-width:0}
.selected-info strong{display:block;margin-bottom:5px}
.selected-info span{
  display:block;
  font-size:13px;
  color:var(--muted);
  overflow-wrap:anywhere
}
.selected-actions{
  min-width:190px;
  display:grid;
  justify-items:end;
  gap:8px
}
.selected-price{text-align:right}
.selected-price b{display:block;color:var(--green);font-size:18px}
.selected-price small{color:var(--muted)}
.selected-qty{
  display:flex;
  align-items:center;
  gap:7px
}
.selected-qty .qty-btn{
  width:36px;
  height:36px;
  font-size:20px
}
.selected-qty .qty-value{min-width:26px}
.remove{
  border:0;
  background:none;
  color:#9a453b;
  cursor:pointer;
  padding:5px 0;
  font-size:12px
}
.list-total{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  margin-top:22px;
  padding-top:22px
}
.list-total span{color:var(--muted)}
.list-total strong{
  font-family:Georgia,"Times New Roman",serif;
  color:var(--green);
  font-size:32px
}
.total-note{
  color:var(--muted);
  font-size:12px;
  text-align:right;
  margin-top:8px
}
.send-form{border-top:1px solid var(--line);margin-top:32px;padding-top:32px}
.form-title h3{font-size:28px;margin-bottom:7px}
.form-title p{color:var(--muted);margin-bottom:22px}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.fields label{display:grid;gap:8px}
.fields .wide{grid-column:1/-1}
.fields span{font-size:13px;font-weight:800}
input,textarea{
  width:100%;
  min-height:48px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fbfaf8;
  padding:14px 15px;
  outline:0;
  font-size:16px
}
input:focus,textarea:focus{
  border-color:#aa9064;
  box-shadow:0 0 0 3px rgba(201,164,94,.13)
}
textarea{resize:vertical}
.consent{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  margin-top:18px
}
.consent input{
  width:20px;
  height:20px;
  min-height:0;
  margin-top:1px;
  flex:0 0 auto
}
.whatsapp{
  width:100%;
  margin-top:20px;
  background:var(--wa);
  color:#fff;
  min-height:58px;
  font-size:17px
}
.privacy{text-align:center;color:var(--muted);font-size:12px;margin:10px 0 0}

.mobile-bar{
  display:none;
  position:fixed;
  left:13px;
  right:13px;
  bottom:calc(13px + var(--safe-bottom));
  z-index:60
}
.mobile-bar button{
  width:100%;
  border:0;
  border-radius:17px;
  background:var(--green);
  color:#fff;
  box-shadow:0 12px 34px rgba(0,0,0,.24);
  min-height:56px;
  padding:14px 17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.toast{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:70;
  background:#20201e;
  color:#fff;
  padding:13px 17px;
  border-radius:12px;
  opacity:0;
  transform:translateY(18px);
  pointer-events:none;
  transition:.2s
}
.toast.show{opacity:1;transform:translateY(0)}
footer{background:var(--green);color:#fff;padding:32px 0}
.footer{display:flex;align-items:center;justify-content:space-between;gap:18px;color:rgba(255,255,255,.7)}
.footer-logo{
  width:180px;
  height:auto;
  filter:brightness(0) invert(1);
  opacity:.96
}

@media(max-width:1050px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .hero-note{min-height:auto}
  .hero-copy{min-height:410px}
}

@media(max-width:700px){
  body{padding-bottom:calc(82px + var(--safe-bottom))}
  .wrap{width:min(100% - 24px,1180px)}
  .topbar-inner{min-height:68px}
  .logo img{width:205px;max-width:65vw}
  .mini-list{display:none}
  .hero{padding:22px 0 34px}
  .hero-copy{
    min-height:auto;
    padding:40px 25px;
    border-radius:24px
  }
  .hero h1{
    font-size:clamp(40px,12vw,52px);
    line-height:1
  }
  .hero-copy p{font-size:16px}
  .hero-actions{display:grid;grid-template-columns:1fr}
  .hero-actions .btn{width:100%}
  .hero-note{padding:28px 24px;border-radius:24px}
  .section-title,.list-head{display:block}
  .section-title p{margin-top:10px}
  .summary-pill{display:inline-block;margin-top:12px}
  .filters{
    flex-wrap:nowrap;
    margin-left:-12px;
    margin-right:-12px;
    padding:0 12px 4px
  }
  .grid{grid-template-columns:1fr}
  .card{border-radius:20px}
  .card-media{aspect-ratio:1.1/1;padding:18px}
  .card-body{padding:19px}
  .product-controls{gap:9px}
  .qty-control{padding:5px 6px 5px 14px}
  .qty-btn{width:42px;height:42px}
  .fields{grid-template-columns:1fr}
  .fields .wide{grid-column:auto}
  .selected{
    grid-template-columns:68px minmax(0,1fr);
    align-items:start
  }
  .selected img{width:68px;height:62px}
  .selected-actions{
    grid-column:1/-1;
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    justify-items:stretch;
    border-top:1px solid #f0ece6;
    padding-top:10px
  }
  .selected-price{text-align:left}
  .selected-qty{justify-self:end}
  .remove{grid-column:1/-1;justify-self:start}
  .list-total{align-items:flex-start;flex-direction:column}
  .total-note{text-align:left}
  .mobile-bar{display:block}
  .toast{
    left:13px;
    right:13px;
    bottom:calc(84px + var(--safe-bottom));
    text-align:center
  }
  .footer{flex-direction:column;align-items:flex-start}
  .footer-logo{width:165px}
}

@media(max-width:380px){
  .wrap{width:min(100% - 20px,1180px)}
  .hero-copy{padding:34px 20px}
  .hero h1{font-size:39px}
  .card h3{font-size:19px}
  .price{font-size:27px}
  .list-panel{padding:22px 16px}
  .selected{padding:9px}
}

@media(min-width:1400px){
  .wrap{width:min(1260px,calc(100% - 64px))}
  .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}




/* Coleção Casa — capa sem ação, preenchendo todo o card como um produto visual */
.grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.casa-photo-card{
  position:relative;
  padding:0;
  overflow:hidden;
  align-self:stretch;
  min-height:100%;
  background:#fff;
  border-radius:22px;
  display:block;
  isolation:isolate;
}
.casa-photo-only{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center;
  background:#fff;
}
/* A foto é puramente ilustrativa: sem texto, preço, botão ou ação. */
@media(max-width:1050px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .grid{grid-template-columns:1fr}
  .casa-photo-card{border-radius:20px}
  .casa-photo-only{object-fit:cover}
}


/* Padronização final dos cards do catálogo: mesma caixa, imagem e rodapé */
.grid{
  align-items:stretch;
  grid-auto-rows:1fr;
}
.card{
  height:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.card-media{
  width:100%;
  aspect-ratio:1/1;
  height:auto;
  flex:0 0 auto;
  overflow:hidden;
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.card-body{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
}
.card h3{
  min-height:2.5em;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.meta{
  min-height:18px;
  flex-wrap:nowrap;
}
.price{
  min-height:36px;
  display:flex;
  align-items:flex-end;
}
.product-controls{
  min-height:100px;
  grid-template-rows:50px 50px;
  align-content:end;
}
.product-controls .add{
  min-height:50px;
}
.product-controls .qty-control{
  min-height:50px;
}
.product-controls .qty-control[hidden]{
  display:flex !important;
  visibility:hidden;
  pointer-events:none;
}
.casa-photo-card{
  height:100%;
  min-height:100%;
}
.casa-photo-only{
  height:100%;
  width:100%;
  object-fit:cover;
}
@media(max-width:700px){
  .grid{grid-auto-rows:auto}
  .card{height:100%}
  .card-media{aspect-ratio:1/1}
  .product-controls{min-height:100px}
}


/* Correção mobile: garantir altura própria para capas ambientais */
@media(max-width:700px){
  .casa-photo-card{
    position:relative;
    display:block;
    width:100%;
    height:auto;
    min-height:0;
    aspect-ratio:3 / 5;
    overflow:hidden;
  }
  .casa-photo-only{
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:center;
  }
}
