
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --bg: #faf7f2;
  --paper: #fffdf9;
  --ink: #352c25;
  --brown: #665039;
  --muted: #746253;
  --line: #e7dbcb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
}

a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.top {
  background: #352c25;
  color: #fff;
  text-align: center;
  padding: 11px;
  font-size: 10px;
  letter-spacing: 2px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f5f0e9f2;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1350px;
  margin: auto;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span { color: var(--brown); }

.links { display: flex; gap: 26px; }

.links a {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 800;
}

.links a:hover { color: var(--brown); }

.btn, .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 100px;
  padding: 15px 23px;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 800;
  transition: .25s;
}

.btn:hover, .chip:hover {
  transform: translateY(-2px);
}

.dark, .chip.active {
  background: #352c25;
  color: white;
  border-color: #352c25;
}

.wrap {
  max-width: 1350px;
  margin: auto;
  padding: 75px 5%;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 800;
  color: var(--brown);
}

h1, h2, h3 {
  font-family: Manrope, Arial, sans-serif;
}

h1 {
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.04;
  letter-spacing: -4px;
  margin: 18px 0;
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 12px 0 20px;
}

p {
  line-height: 1.75;
  color: var(--muted);
}

.hero {
  min-height: 550px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1450px;
  padding: 20px;
  margin: auto;
}

.hero-copy {
  background: #e7dbcb;
  border-radius: 24px;
  padding: clamp(35px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-img {
  border-radius: 24px;
  overflow: hidden;
  background: #977b59;
  min-height: 420px;
}

.hero-img img { transition: transform .8s; }
.hero-img:hover img { transform: scale(1.04); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.banner {
  background: #efe4d5;
  border-radius: 24px;
  padding: 55px;
  margin-top: 65px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}

.section-head p { max-width: 350px; }

.collections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.collection {
  height: 520px;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #977b59;
}

.collection img { transition: transform .8s; }
.collection:hover img { transform: scale(1.05); }

.collection::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, #1a100bd9);
}

.collection-info {
  position: absolute;
  bottom: 35px;
  left: 35px;
  z-index: 1;
  color: white;
}

.collection-info h2 { font-size: 50px; }

.page-hero {
  padding: 75px 5%;
  background: #e7dbcb;
}

.page-hero .inner {
  max-width: 1200px;
  margin: auto;
}

.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.chip {
  padding: 12px 18px;
  background: transparent;
}

.sort {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  padding: 13px;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 16px;
}

.product { min-width: 0; }

.product-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 17px;
  background: #e7d5bd;
  position: relative;
}

.product-photo img { transition: transform .6s; }
.product:hover img { transform: scale(1.05); }

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  border-radius: 30px;
  padding: 8px 12px;
  font-size: 9px;
  font-weight: 800;
}

.product h3 {
  font-size: 14px;
  margin: 12px 0 4px;
}

.product .price { font-weight: 800; }

.product .btn {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
}

/* CHECKOUT E SACOLA */

.muted {
  color: var(--muted);
  font-size: 12px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  gap: 30px;
  align-items: start;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  margin-bottom: 20px;
}

.panel h2 {
  font-size: 24px;
  letter-spacing: -1px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.field.full { grid-column: 1 / -1; }

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brown);
}

.radio {
  display: block;
  padding: 12px 0;
  font-size: 13px;
}

.order-item {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.order-item img {
  width: 75px;
  height: 95px;
  border-radius: 10px;
  background: #e7d5bd;
}

.order-item .details { flex: 1; }

.order-item h3 {
  font-size: 13px;
  margin: 0 0 5px;
}

.order-item button {
  border: 0;
  background: none;
  color: var(--brown);
  font-size: 12px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty button {
  background: #f2e8da;
  border-radius: 50%;
  width: 25px;
  height: 25px;
}

.line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0;
  font-size: 13px;
}

.total {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 18px;
  font-weight: 800;
}

.coupon {
  display: flex;
  gap: 8px;
}

.coupon input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 12px;
}

.coupon .btn { padding: 13px; }

.notice {
  font-size: 12px;
  background: #f2e8da;
  border-radius: 12px;
  padding: 13px;
}

/* RODAPÉ */

.foot {
  background: #352c25;
  color: #fff;
  padding: 55px 5%;
  margin-top: 50px;
}

.foot-inner {
  max-width: 1250px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}

.foot p, .foot a {
  color: #e7d5bd;
  font-size: 12px;
}

/* JANELA DE PRODUTO */

.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #1a100bbd;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-bg.open { display: flex; }

.modal {
  background: var(--paper);
  width: min(850px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.modal-gallery {
  min-width: 0;
  align-self: start;
}

.modal-gallery > img {
  display: block;
  width: 100%;
  height: clamp(260px, 55vh, 510px);
  object-fit: contain;
  background: #f2e8da;
}

.modal-gallery > img[hidden],
.modal-thumbnails[hidden] { display: none; }

.modal-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.modal-thumbnails button {
  width: 52px;
  height: 58px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.modal-thumbnails button[aria-pressed="true"] { border: 2px solid var(--brown); }

.modal-thumbnails img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.modal-content { padding: 40px 30px; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
}

.option {
  border: 1px solid var(--line);
  background: white;
  border-radius: 30px;
  padding: 11px 15px;
  font-size: 12px;
}

.option.selected {
  background: #352c25;
  color: white;
}

.modal label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.feedback {
  font-size: 12px;
  color: #4d6a42;
  min-height: 22px;
}

/* ANIMAÇÕES */

.mobile-menu { display: none; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: .7s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* TABLET */

@media (max-width: 950px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .checkout-grid { grid-template-columns: 1fr; }
  .links { gap: 12px; }
}

/* CELULAR */

@media (max-width: 650px) {
  .nav-inner { padding: 17px 5%; }
  .links { display: none; }
  .mobile-menu { display: inline-flex; }

  .links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 22px;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .hero-copy {
    min-height: 400px;
    padding: 32px;
  }

  .hero-img { min-height: 360px; }
  .wrap { padding: 55px 5%; }
  .section-head { display: block; }
  .collections { grid-template-columns: 1fr; }
  .collection { height: 420px; }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .product h3 { font-size: 12px; }
  .panel { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .modal { grid-template-columns: 1fr; }

  .modal-gallery > img { height: min(50vh, 340px); }

  .modal-content { padding: 25px; }
  .banner { padding: 30px; }
  .page-hero { padding: 55px 5%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
