:root {
  --primary: #8b3a33;
  --primary-light: #b8564a;
  --primary-dark: #5f241f;
  --ink: #1f2933;
  --muted: #667085;
  --line: #e6e2dc;
  --page-bg: #f2f2f2;
  --surface: #ffffff;
  --surface-soft: #f7f5f1;
  --surface-green: #edf4ef;
  --green: #8B3A33;
  --gold: #b48443;
  --shadow: 0 14px 36px rgba(31, 41, 51, 0.08);
  --shadow-hover: 0 22px 54px rgba(31, 41, 51, 0.14);
  --radius: 8px;
  --transition: all 0.24s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

#app {
  min-height: 45vh;
  transition: opacity 0.2s ease;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-bg);
  transition: opacity 0.4s ease;
}

.spinner {
  width: 46px;
  height: 46px;
  border: 4px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(230, 226, 220, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 0;
  transition: var(--transition);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.24s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.search-box {
  display: flex;
  align-items: center;
  width: min(300px, 34vw);
  min-width: 220px;
  height: 44px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: rgba(139, 58, 51, 0.45);
  box-shadow: 0 0 0 4px rgba(139, 58, 51, 0.08);
  background: var(--surface);
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px 0 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box input::placeholder {
  color: #8a8178;
}

.search-btn {
  width: 46px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  color: #fff;
  background: var(--primary);
}

.hero-slider {
  position: relative;
  min-height: min(690px, calc(100vh - 132px));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, #15120f 0%, #211813 52%, #111827 100%);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 13, 10, 0.92) 0%, rgba(31, 24, 18, 0.78) 45%, rgba(31, 41, 51, 0.26) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.48) 100%);
}

.hero-product-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  perspective: 1100px;
  opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.16) 24%, #000 48%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.16) 24%, #000 48%, #000 100%);
}

.hero-product-orbit {
  position: absolute;
  top: 50%;
  right: clamp(-170px, -8vw, -70px);
  width: min(720px, 54vw);
  height: min(620px, 64vh);
  transform: translateY(-48%) rotate(-8deg);
  transform-style: preserve-3d;
}

.hero-float-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(86px, 11vw, 160px);
  margin: 0;
  will-change: transform, opacity, filter;
  transform-origin: center;
  backface-visibility: hidden;
}

.hero-float-item[data-shape="wide"] {
  width: clamp(145px, 20vw, 290px);
}

.hero-float-item[data-shape="square"] {
  width: clamp(118px, 15vw, 210px);
}

.hero-float-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.hero-shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: inherit;
  padding: 74px 0 64px;
  color: #fff;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 760px;
  animation: rise 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #f7e8de;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.hero-copy h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 800;
}

.hero-copy p {
  max-width: 670px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2vw, 1.26rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-proof {
  align-self: end;
  display: grid;
  gap: 12px;
  color: #fff;
  animation: rise 0.7s 0.1s ease both;
}

.proof-item {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.proof-number {
  display: block;
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 800;
}

.proof-text {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 12px 24px rgba(139, 58, 51, 0.24);
}

.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(95, 36, 31, 0.24);
}

.btn-outline,
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: currentColor;
  box-shadow: none;
}

.btn-outline:hover,
.btn-ghost:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.btn-white-red {
  color: var(--primary);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.btn-white-red:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.btn-select-outline:active,
.btn-select-outline:focus-visible {
  color: var(--primary);
  background: transparent;
  border-color: currentColor;
  box-shadow: none;
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.btn-glass:hover {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.section-wood,
.section-white {
  position: relative;
  padding: 92px 0;
}

.section-wood {
  background:
    linear-gradient(180deg, #f7f5f1 0%, var(--page-bg) 100%);
}

.section-white {
  background: var(--page-bg);
}

.catalog-section {
  padding-bottom: 52px;
}

.highlights-section {
  padding-top: 36px;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 800;
}

.section-subtitle {
  max-width: 600px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.04rem;
}

.catalog-scene {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1672 / 941;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid rgba(139, 58, 51, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.catalog-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(31, 41, 51, 0.02), rgba(31, 41, 51, 0.08)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.06));
}

.catalog-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-scene-link {
  position: absolute;
  z-index: 2;
  display: block;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  outline: 0;
}

.catalog-scene-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  background: rgba(139, 58, 51, 0);
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.catalog-scene-link:hover::before,
.catalog-scene-link:focus-visible::before {
  background: rgba(139, 58, 51, 0.1);
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(139, 58, 51, 0.42);
}

.catalog-scene-door {
  left: 8.8%;
  top: 18%;
  width: 23%;
  height: 63%;
}

.catalog-scene-window {
  left: 37.4%;
  top: 18%;
  width: 33.5%;
  height: 47.5%;
}

.catalog-scene-seteira {
  left: 72.3%;
  top: 22%;
  width: 8.6%;
  height: 39.5%;
}

.catalog-scene-bascula {
  left: 82.5%;
  top: 23.8%;
  width: 10.8%;
  height: 27.5%;
}

.catalog-scene-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 20px;
  min-height: 20px;
  color: #fff;
  transform: translate(-50%, -50%);
}

.catalog-scene-pin::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(31, 41, 51, 0.34), 0 0 0 6px rgba(139, 58, 51, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.catalog-scene-link:hover .catalog-scene-pin::before,
.catalog-scene-link:focus-visible .catalog-scene-pin::before {
  transform: scale(1.1);
  box-shadow: 0 10px 26px rgba(31, 41, 51, 0.38), 0 0 0 8px rgba(139, 58, 51, 0.24);
}

.catalog-scene-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  background: rgba(31, 41, 51, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(31, 41, 51, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(0);
  transition: background 0.24s ease, transform 0.24s ease;
}

.catalog-scene-seteira .catalog-scene-pin,
.catalog-scene-bascula .catalog-scene-pin {
  flex-direction: row-reverse;
}

.catalog-scene-link:hover .catalog-scene-label,
.catalog-scene-link:focus-visible .catalog-scene-label {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-card {
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 20px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: var(--transition);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.category-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--surface-soft);
  border-radius: var(--radius);
  font-size: 1.25rem;
  transition: var(--transition);
}

.category-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.category-card h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 58, 51, 0.22);
  box-shadow: var(--shadow);
}

.category-card:hover::after {
  transform: scaleX(1);
}

.category-card:hover .category-icon {
  color: #fff;
  background: var(--primary);
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  animation: rise 0.45s ease both;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 58, 51, 0.28);
  box-shadow: var(--shadow-hover);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    linear-gradient(145deg, #fff 0%, #f3f0eb 100%);
}

.product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.42s ease, opacity 0.32s ease;
}

.product-img-ai {
  object-fit: contain;
  padding: 10px;
  opacity: 0;
}

.product-card.has-ai-preview:hover .product-img-ai,
.product-card.has-ai-preview:focus-within .product-img-ai {
  opacity: 1;
}

.product-card.has-ai-preview:hover .product-img-original,
.product-card.has-ai-preview:focus-within .product-img-original {
  opacity: 0;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-card.has-ai-preview:hover .product-img-ai,
.product-card.has-ai-preview:focus-within .product-img-ai {
  transform: none;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 18px;
}

.product-category {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-title {
  flex: 1;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.32;
  font-weight: 800;
}

.product-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: var(--transition);
}

.product-action.details {
  flex: 1;
  color: var(--primary);
  background: rgba(139, 58, 51, 0.08);
}

.product-action.whatsapp {
  width: 40px;
  color: #fff;
  background: #25d366;
}

.product-action:hover {
  transform: translateY(-1px);
}

.see-all-container {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(95, 36, 31, 0.98), rgba(139, 58, 51, 0.9)),
    url("../Images/porta-53-20a1893b86e7ed064b17738356121218-640-0.webp") center/cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(31, 41, 51, 0.45), rgba(31, 41, 51, 0));
}

.page-hero-window-art {
  position: absolute;
  top: 50%;
  right: clamp(-240px, -11vw, -96px);
  z-index: 1;
  display: block;
  width: clamp(420px, 52vw, 760px);
  max-width: none;
  height: auto;
  transform: translateY(-48%) scale(1.3);
  transform-origin: center right;
  pointer-events: none;
  user-select: none;
  opacity: 0.28;
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.28)) saturate(1.08) contrast(1.02);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 620px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.products-page-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.page-hero+.section-white {
  padding-top: 52px;
}

.filter-sidebar {
  position: sticky;
  top: 96px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-header h3 {
  color: var(--ink);
  font-size: 1rem;
}

.filter-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
}

.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  transition: var(--transition);
}

.filter-list a:hover {
  color: var(--primary);
  background: #fff;
  border-color: var(--line);
}

.filter-list a.active {
  color: #fff;
  background: var(--primary);
}

.products-main {
  min-width: 0;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.results-bar h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
}

.results-bar p {
  color: var(--muted);
}

.empty-state {
  padding: 46px 28px;
  text-align: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 48px;
  align-items: start;
  padding: 20px 0 0;
}

.product-detail-section {
  padding-top: 56px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}

.product-detail-gallery {
  position: sticky;
  top: 96px;
}

.product-detail-main-image {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, #fff 0%, #f3f0eb 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  touch-action: pan-y;
  user-select: none;
}

.product-detail-main-image img {
  display: block;
  width: 100%;
  max-height: 650px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 22px;
}

.product-detail-main-image img[data-view-type="ai"] {
  object-fit: contain;
  padding: 22px;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: translateY(-50%);
  transition: var(--transition);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  color: #fff;
  background: var(--primary);
}

.gallery-arrow-prev {
  left: 12px;
}

.gallery-arrow-next {
  right: 12px;
}

.gallery-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.gallery-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  padding: 0;
  color: transparent;
  background: var(--surface);
  border: 1px solid rgba(139, 58, 51, 0.42);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transition: var(--transition);
}

.gallery-choice:hover,
.gallery-choice.active {
  background: var(--primary);
  border-color: var(--primary);
}

.gallery-choice:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 58, 51, 0.16);
  outline: none;
}

.product-detail-info {
  padding-top: 8px;
}

.product-detail-info h1 {
  margin: 12px 0 18px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.product-detail-desc {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.product-specs {
  margin-bottom: 24px;
  padding: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-specs h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list li:last-child {
  border-bottom: 0;
}

.spec-label {
  color: var(--muted);
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  color: #fff;
  background: #25d366;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.22);
}

.contact-page {
  padding: 88px 0;
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: stretch;
}

.contact-info,
.contact-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-info {
  padding: clamp(24px, 4vw, 38px);
}

.contact-info h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.contact-intro {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.contact-item i {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.contact-map a {
  display: block;
  position: relative;
  height: 100%;
  min-height: 500px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
  pointer-events: none;
}

.site-footer {
  color: var(--text-light, #f7fafc);
  background:
    linear-gradient(135deg, #18212a 0%, #111827 100%);
  padding-top: 64px;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  gap: 36px;
  margin-bottom: 46px;
}

.footer-logo {
  height: 58px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 620px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-brand .fa-envelope {
  margin-right: 8px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-links a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(0, 0, 0, 0.26);
  text-align: center;
  font-size: 0.9rem;
}

.float-wpp {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.28);
  font-size: 2rem;
  text-decoration: none;
  transition: var(--transition);
}

.float-wpp:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
}

body.lightbox-open {
  overflow: hidden;
}

#image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.28s ease;
}

#lightbox-frame {
  position: relative;
  max-width: min(96vw, 1120px);
  max-height: 92vh;
  cursor: default;
  transform: scale(0.96);
  transition: transform 0.28s ease;
}

#lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  padding: 14px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

#lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-flex;
  width: 40px;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: rgba(31, 41, 51, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transition: var(--transition);
}

#lightbox-close:hover,
#lightbox-close:focus-visible {
  background: var(--primary);
  transform: scale(1.04);
}

.mobile-only-icon {
  display: none;
}

@media (max-width: 1100px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: auto;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .navbar {
    padding: 10px 0;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 75px 14px auto 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-height: calc(100vh - 92px);
    padding: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 4px;
  }

  .nav-links a::after {
    display: none;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .hero-slider {
    min-height: auto;
  }

  .hero-product-stage {
    opacity: 0.52;
  }

  .page-hero-window-art {
    top: 44%;
    right: auto;
    left: 58%;
    width: min(520px, 92vw);
    min-width: 300px;
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 0.16;
  }

  .hero-product-orbit {
    top: 40%;
    right: auto;
    left: 50%;
    width: 112vw;
    height: 48vh;
    transform: translate(-50%, -50%) rotate(-10deg);
  }

  .hero-float-item {
    width: clamp(72px, 18vw, 132px);
  }

  .hero-float-item[data-shape="wide"] {
    width: clamp(126px, 32vw, 220px);
  }

  .hero-float-item[data-shape="square"] {
    width: clamp(104px, 26vw, 176px);
  }

  .hero-shell {
    min-height: calc(100vh - 132px);
    padding: 62px 0 36px;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-head,
  .results-bar {
    display: grid;
    align-items: start;
  }

  .section-wood,
  .section-white,
  .contact-page {
    padding: 64px 0;
  }

  .catalog-section {
    padding-bottom: 42px;
  }

  .catalog-scene {
    margin-bottom: 18px;
  }

  .catalog-scene-label {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 0.76rem;
  }

  .highlights-section {
    padding-top: 30px;
  }

  .products-page-layout,
  .product-detail-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .filter-sidebar,
  .product-detail-gallery {
    position: static;
  }

  .filter-sidebar {
    padding: 14px;
  }

  .filter-header {
    cursor: pointer;
  }

  .mobile-only-icon {
    display: inline-flex;
  }

  .collapsed-mobile {
    display: none;
  }

  .contact-map a,
  .contact-map iframe {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .logo {
    height: 48px;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 12.8vw, 3.25rem);
    line-height: 1.02;
    max-width: 10ch;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-actions .btn,
  .detail-actions .whatsapp-btn {
    width: 100%;
  }

  .hero-shell {
    padding: 44px 0 26px;
    min-height: 620px;
  }

  .hero-product-stage {
    opacity: 0.44;
  }

  .hero-product-orbit {
    top: 34%;
    height: 42vh;
  }

  .hero-proof {
    gap: 8px;
  }

  .proof-item {
    padding: 10px;
  }

  .proof-number {
    font-size: 1rem;
  }

  .proof-text {
    margin-top: 5px;
    font-size: 0.68rem;
    line-height: 1.25;
  }

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

  .catalog-scene {
    border-radius: 6px;
  }

  .catalog-scene-label {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .catalog-scene-pin::before {
    width: 16px;
    height: 16px;
    border-width: 2px;
    box-shadow: 0 6px 18px rgba(31, 41, 51, 0.34), 0 0 0 5px rgba(139, 58, 51, 0.18);
  }

  .catalog-scene-seteira {
    left: 70.5%;
    width: 12.6%;
  }

  .catalog-scene-bascula {
    left: 81.5%;
    width: 13%;
  }

  .category-card {
    min-height: 140px;
    padding: 16px;
  }

  .product-info {
    padding: 14px;
  }

  .product-title {
    font-size: 0.95rem;
  }

  .product-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 48px 0;
  }

  .product-detail-main-image img {
    padding: 14px;
  }

  .spec-list li,
  .contact-item {
    grid-template-columns: 1fr;
  }

  .contact-item {
    gap: 10px;
  }

  .float-wpp {
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-item {
    transition: none;
  }

  .hero-copy,
  .hero-proof,
  .product-card {
    animation: none;
  }
}
