:root {
  --sea-deep: #0E3B43;
  --sand: #EDE3D0;
  --clay: #C9603C;
  --brass: #B8935A;
  --ink: #16211F;
  --foam: #FAF7F2;
  --sage: #E3EADD;
  --forest-deep: #1F3A2A;

  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

/* ---------- Barra promocional infinita ---------- */

.promo-marquee {
  background: var(--forest-deep);
  color: var(--foam);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.75rem 0;
}

.promo-marquee-track {
  display: inline-flex;
  animation: marquee-scroll 18s linear infinite;
}

.promo-marquee-track span {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 1.4rem;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-marquee-track { animation: none; }
  .promo-marquee { overflow-x: auto; }
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6%;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--foam);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(22, 33, 31, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.logo-icon {
  height: 34px;
  width: auto;
  display: block;
}

a.logo:hover {
  color: var(--clay);
}

.main-nav {
  display: flex;
  gap: 2.2rem;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 2px;
  background: var(--clay);
  transition: left 0.25s ease, right 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--clay);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  left: 0;
  right: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: center;
  padding: 3rem 6% 5rem;
  background:
    linear-gradient(90deg, rgba(15, 25, 23, 0.78) 0%, rgba(15, 25, 23, 0.4) 45%, rgba(15, 25, 23, 0) 72%),
    url("hero-bg.jpg") center / cover no-repeat,
    linear-gradient(180deg, #a9ac9e 0%, #74906d 45%, #34502e 72%, #16211c 100%);
  background-position: right 70% center, right 70% center, center;
  min-height: 78vh;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  max-width: 560px;
  position: relative;
  z-index: 2;
}

.hero-product-photo {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(480px, 55vw);
  height: auto;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.45));
}

.hero-kicker {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--sea-deep);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 500;
  margin: 0 0 1.2rem;
  color: var(--foam);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  max-width: 40ch;
  font-size: 1.1rem;
  color: #2b3835;
  margin-bottom: 2rem;
}

.hero .hero-kicker {
  color: #dce8d8;
}

.hero .hero-lead {
  color: #f0ece2;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--clay);
  color: var(--foam);
  box-shadow: 0 8px 20px rgba(201, 96, 60, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(201, 96, 60, 0.45);
}

.btn-primary:hover { background: #b34f2f; }

.text-link {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--sea-deep);
  border-bottom: 1px solid var(--brass);
}

/* ---------- Horizon divider ---------- */

.horizon {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 6%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.horizon-line {
  flex: 1;
  height: 1px;
  background: var(--brass);
}

.horizon-label {
  font-size: 0.85rem;
  color: #6f6555;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- Animação de entrada ao scroll ---------- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(22, 33, 31, 0.85);
  color: var(--foam);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
}

.hero-countdown-label {
  font-weight: 600;
  white-space: nowrap;
}

.hero-countdown-timer {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.cd-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
}

.cd-unit strong {
  color: var(--clay);
  font-weight: 700;
  font-size: 0.95rem;
}

.cd-unit small {
  font-size: 0.68rem;
  color: #cfc7b4;
}

.cd-sep { color: #8a8578; }

@media (max-width: 480px) {
  .hero-countdown-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    border-radius: 14px;
    padding: 0.6rem 0.9rem;
  }
}

/* ---------- Featured / catalog grid ---------- */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6%;
}

.section-heading h2,
.reserve-copy h2,
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem;
}

.product-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 0 6%;
}

.catalog-grid { margin-top: 3rem; }

.product-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.5rem;
  position: relative;
  box-shadow: 0 2px 10px rgba(22, 33, 31, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(22, 33, 31, 0.12);
}

.promo-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--clay);
  color: var(--foam);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  z-index: 1;
}

.price-old {
  text-decoration: line-through;
  color: #8a7f6a;
  font-weight: 400;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.price-new {
  color: var(--clay);
}

.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 0.5rem;
}

.product-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 1rem 0 0.3rem;
}

.product-price {
  color: var(--clay);
  font-weight: 500;
  margin: 0 0 0.4rem;
}

.product-summary {
  font-size: 0.92rem;
  color: #55584f;
  margin: 0 0 0.6rem;
}

.product-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: #6f6555;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}

.product-specs li::before {
  content: "";
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  background: var(--forest-deep);
  color: var(--foam);
  padding: 4.5rem 6%;
}

.cta-band h2 { color: var(--foam); }

.cta-band p {
  max-width: 46ch;
  margin: 0 auto 1.8rem;
  color: #cfe0dd;
}

.cta-band .btn-primary { background: var(--clay); }

/* ---------- Page intro (catalog) ---------- */

.page-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 6% 1rem;
  text-align: left;
}

.page-intro h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0.4rem 0 1rem;
}

.product-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #dcece4;
  color: #2e5c46;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.availability-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e5c46;
}

.rating-inline {
  font-size: 1rem;
  font-weight: 500;
  color: #4a463a;
  margin: 0 0 0.8rem;
}

.rating-inline .rating-stars {
  color: var(--clay);
  font-size: 1.1rem;
}
.rating-inline .rating-empty { color: #a89f8c; }

.social-proof-line {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7a3d1e;
  background: #fbe6d6;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin: 0 0 1.2rem;
}

.social-proof-line:empty { display: none; }

.reserve-trust-note {
  font-size: 0.78rem;
  color: #6f6555;
  margin-top: 0.8rem;
}

/* ---------- Barra de confiança ---------- */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 100%;
  margin: 3rem 0 0;
  padding: 3rem 6%;
  background: var(--sage);
  border-top: 1px solid rgba(31, 58, 42, 0.15);
}

.trust-item {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a463a;
  padding: 0 1rem;
  position: relative;
}

.trust-item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(31, 58, 42, 0.2);
}

.trust-item svg {
  width: 22px;
  height: 22px;
  margin: 0 auto 0.8rem;
  display: block;
  stroke: var(--forest-deep);
  background: var(--foam);
  border-radius: 50%;
  padding: 0.8rem;
  box-sizing: content-box;
  box-shadow: 0 2px 8px rgba(22, 33, 31, 0.08);
}

@media (max-width: 700px) {
  .trust-bar { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .trust-item:nth-child(2n)::before { display: none; }
}

/* ---------- Craft icons ---------- */

/* ---------- Reserve form ---------- */

.product-reserve-box {
  margin: 1.8rem 0;
  padding: 1.5rem 1.5rem 1.8rem;
  background: var(--sage);
  border-radius: 10px;
  border-top: 3px solid var(--forest-deep);
}

.product-reserve-box h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.reserve-copy p { color: #4a463a; }

.reserve-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.reserve-form label {
  font-size: 0.85rem;
  color: #4a463a;
  margin-top: 0.6rem;
}

.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--brass);
  background: var(--foam);
  border-radius: 2px;
  color: var(--ink);
}

.reserve-form button {
  margin-top: 1.2rem;
  align-self: flex-start;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--sea-deep);
}

/* ---------- Product card link wrapper ---------- */

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid #f0ece2;
}

.product-card-actions .text-link {
  padding: 0.5rem 0.2rem;
  display: inline-block;
  font-size: 0.9rem;
}

.product-card-actions .text-link:last-child {
  font-weight: 600;
  color: var(--clay);
  border-bottom-color: var(--clay);
}

/* ---------- Product detail page ---------- */

.breadcrumb {
  margin: 2rem 6% 0;
  font-size: 0.85rem;
  color: #857c6a;
  display: flex;
  gap: 0.5rem;
}

.breadcrumb a {
  color: #857c6a;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--clay);
}

.breadcrumb span:last-child {
  color: var(--ink);
  font-weight: 500;
  max-width: 40ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loading-msg {
  padding: 4rem 6%;
  color: #857c6a;
}

.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 1.5rem auto 3rem;
  padding: 0 6%;
}

.product-gallery { display: flex; flex-direction: column; gap: 0.8rem; }

.gallery-main-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  padding: 1rem;
  box-sizing: border-box;
}

.gallery-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-main-frame:hover .gallery-main {
  transform: scale(1.08);
}

.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  padding: 0.3rem;
  cursor: pointer;
  opacity: 0.6;
  border: 1px solid transparent;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--brass);
}

.product-info h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: 0.4rem 0 0.6rem;
}

.promo-tag-static {
  display: inline-flex;
  align-items: center;
  position: static;
  margin-bottom: 0;
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
}

.product-info .product-price { font-size: 1.2rem; margin-bottom: 1.2rem; }

.product-description {
  color: #2b3835;
  margin-bottom: 1.5rem;
}

.product-specs-page {
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.product-specs-page li {
  border-top: 1px solid var(--sand);
  padding-top: 0.5rem;
}

/* ---------- Reviews ---------- */

.reviews-section {
  max-width: var(--max-width);
  margin: 0 auto 5rem;
  padding: 3.5rem 6% 0;
  border-top: 1px solid var(--brass);
}

.reviews-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 1.2rem;
  position: relative;
  padding-bottom: 0.7rem;
}

.reviews-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--forest-deep);
  border-radius: 2px;
}

.reviews-average {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 2rem;
}

.reviews-average span {
  display: block;
  font-size: 0.85rem;
  color: #6f6555;
  margin-top: 0.3rem;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.review-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 2px 10px rgba(22, 33, 31, 0.06);
}

.review-item-header {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.review-item-header > div { flex: 1; }

.review-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-date {
  font-size: 0.78rem;
  color: #a89f8c;
  white-space: nowrap;
}

.review-stars { color: var(--clay); margin: 0.1rem 0 0; font-size: 0.85rem; }
.review-nome { font-weight: 600; margin: 0; }
.review-comentario { color: #55584f; font-size: 0.92rem; margin: 0; line-height: 1.5; }

.review-form-box {
  max-width: 480px;
  background: var(--sand);
  padding: 2rem;
}

.review-form-box h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 1rem;
}

.review-form-box form {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.review-form-box label {
  font-size: 0.85rem;
  color: #4a463a;
  margin-top: 0.6rem;
}

.review-form-box input,
.review-form-box select,
.review-form-box textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--brass);
  background: var(--foam);
}

.review-form-box button { margin-top: 1rem; align-self: flex-start; }

@media (max-width: 860px) {
  .product-page { grid-template-columns: 1fr; }
  .reviews-list { grid-template-columns: 1fr; }
}

/* ---------- Honeypot anti-spam (invisível para humanos, visível para bots simples) ---------- */

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.related-products {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 0 6%;
}

.related-products h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 700px) {
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.8rem 6% calc(0.8rem + env(safe-area-inset-bottom));
    background: var(--foam);
    box-shadow: 0 -4px 16px rgba(22, 33, 31, 0.12);
  }

  .mobile-sticky-cta .btn-primary {
    display: block;
    text-align: center;
    width: 100%;
  }

  body { padding-bottom: 78px; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--brass);
  padding: 2.5rem 6%;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-note {
  font-size: 0.82rem;
  color: #857c6a;
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--foam);
    flex-direction: column;
    padding: 1.5rem 6%;
    gap: 1.2rem;
    border-bottom: 1px solid var(--brass);
  }

  .main-nav.open { display: flex; }

  .nav-toggle { display: flex; }

  .hero {
    text-align: left;
    padding-bottom: 3rem;
    background-position: right 30% center, right 30% center, center;
  }

  .hero-copy { max-width: 100%; }

  .hero-product-photo {
    width: min(220px, 60vw);
    right: -20px;
    left: auto;
    top: auto;
    bottom: 0;
    transform: none;
    opacity: 0.5;
  }

  .product-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
