/* =====================================================
   ADINADIR DANTAS — CROCHÊ ARTESANAL
   Identidade visual e interface responsiva
   ===================================================== */

/* ==================== TOKENS ==================== */

:root {
  --bg: #f3efe7;
  --bg-soft: #f8f5ef;
  --bg-warm: #e5d8c5;
  --bg-dark: #292725;

  --text: #292725;
  --text-muted: #766f65;
  --text-light: #f8f5ef;

  --sage: #a3ad97;
  --brown: #76604e;
  --border: #ded6cb;

  --font-title: "DM Serif Display", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;

  --container: 1320px;
  --header-height: 84px;

  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow: 0 20px 60px rgba(41, 39, 37, 0.09);
}

/* ==================== RESET ==================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input {
  font-family: var(--font-body);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

figure {
  margin: 0;
}

ul {
  list-style: none;
}

::selection {
  background: var(--sage);
  color: var(--bg-dark);
}

[hidden] {
  display: none !important;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: white;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 4px;
}

/* ==================== BASE ==================== */

.container {
  width: min(var(--container), calc(100% - 96px));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: var(--brown);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 23px;
  height: 1px;
  flex-shrink: 0;
  background: var(--brown);
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.12;
}

h1 em,
h2 em,
.manifesto-content em {
  color: var(--brown);
  font-weight: 400;
}

h2 {
  font-size: clamp(38px, 4.4vw, 66px);
  letter-spacing: -0.035em;
}

p {
  color: var(--text-muted);
}

/* ==================== BOTÕES ==================== */

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;

  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 100px;

  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--ease);
}

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

.btn-dark {
  background: var(--bg-dark);
  color: white;
}

.btn-dark:hover {
  background: var(--brown);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--brown);
  background: var(--bg-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 13px;
  font-weight: 600;

  padding-bottom: 4px;
  border-bottom: 1px solid var(--brown);

  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--brown);
}

a[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ==================== HEADER ==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  min-height: var(--header-height);

  background: rgba(243, 239, 231, 0.96);
  border-bottom: 1px solid rgba(118, 96, 78, 0.12);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  min-height: var(--header-height);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 28px;
  letter-spacing: -0.035em;
}

.brand-subtitle {
  margin-top: 6px;

  color: var(--brown);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.27em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 36px);
}

.main-nav a {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;

  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;

  font-size: 12px;
  font-weight: 600;

  transition: background 0.2s ease;
}

.header-contact:hover {
  background: var(--bg-warm);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ==================== HERO ==================== */

.hero {
  padding-top: 66px;
  padding-bottom: 100px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(45px, 6vw, 110px);
}

.hero-content {
  padding-block: 50px;
}

.hero h1 {
  max-width: 670px;
  margin-top: 28px;

  font-size: clamp(62px, 6.8vw, 112px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero h1 em {
  display: block;
}

.hero-description {
  max-width: 440px;
  margin-top: 32px;

  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 34px;

  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-signature {
  margin-top: 80px;

  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
}

.signature-line {
  width: 30px;
  height: 1px;
  background: var(--brown);
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-image {
  position: relative;
  height: clamp(480px, 49vw, 690px);

  display: grid;
  place-items: center;
  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 70% 35%,
      rgba(249, 246, 240, 0.85),
      transparent 48%
    ),
    linear-gradient(145deg, #d9c9b5, #c5b39e 55%, #ada28d);

  border-radius: 190px 190px 12px 12px;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 45px rgba(64, 45, 26, 0.06);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  padding: 20px;
  color: rgba(63, 52, 43, 0.75);
  font-family: var(--font-title);
  font-size: 23px;
  font-style: italic;
  text-align: center;
  line-height: 1.3;
}

.has-photo > .image-placeholder {
  display: none;
}

.hero-image-caption {
  display: flex;
  justify-content: space-between;
  gap: 15px;

  padding-top: 16px;

  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-floating-card {
  position: absolute;
  left: -52px;
  bottom: 84px;
  z-index: 2;

  width: 235px;
  padding: 22px 20px;

  display: flex;
  flex-direction: column;
  gap: 5px;

  background: rgba(248, 245, 239, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);

  box-shadow: var(--shadow);
}

.floating-card-label {
  margin-bottom: 7px;
  color: var(--brown);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hero-floating-card strong {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.hero-floating-card > span:last-child {
  color: var(--text-muted);
  font-size: 11px;
}

/* ==================== VALUES ==================== */

.values-strip {
  border-block: 1px solid var(--border);
}

.values-inner {
  min-height: 74px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.values-inner > span:not(.separator) {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
}

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

/* ==================== SECTION HEADING ==================== */

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;

  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 680px;
  margin-top: 18px;
}

.section-heading > p {
  max-width: 350px;
  font-size: 14px;
  line-height: 1.9;
}

/* ==================== CATEGORIES ==================== */

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

.category-card {
  display: block;
  min-width: 0;
}

.category-image {
  position: relative;
  aspect-ratio: 3 / 3.5;

  display: grid;
  place-items: center;
  overflow: hidden;

  border-radius: var(--radius-sm);

  transition: border-radius 0.3s var(--ease);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.65s var(--ease);
}

.category-card:hover .category-image {
  border-radius: var(--radius-md);
}

.category-card:hover .category-image img {
  transform: scale(1.055);
}

.category-image .image-placeholder {
  font-size: clamp(22px, 2.6vw, 36px);
}

.category-tapetes {
  background: linear-gradient(145deg, #b6bfae, #dfdfd2);
}

.category-caminhos {
  background: linear-gradient(145deg, #cebdac, #e7ddd1);
}

.category-puxasacos {
  background: linear-gradient(145deg, #c7c6be, #e5e3db);
}

.category-chinelos {
  background: linear-gradient(145deg, #d7c9b5, #eee6dc);
}

.category-outros {
  background: linear-gradient(145deg, #bca994, #e2d6c9);
}

.category-info {
  min-height: 74px;

  display: flex;
  align-items: center;
  gap: 12px;

  border-bottom: 1px solid var(--border);
}

.category-number {
  align-self: center;
  color: var(--brown);
  font-size: 10px;
}

.category-info h3 {
  flex: 1;
  min-width: 0;
  font-size: clamp(19px, 1.9vw, 27px);
  letter-spacing: -0.02em;
}

.category-arrow {
  color: var(--brown);
  font-size: 19px;
  transition: transform 0.2s ease;
}

.category-card:hover .category-arrow {
  transform: translate(3px, -3px);
}

/* ==================== CATALOG ==================== */

.catalog-section {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  margin-bottom: 25px;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 42px;
  padding: 10px 18px;

  background: transparent;
  color: var(--text-muted);

  border: 1px solid var(--border);
  border-radius: 100px;

  font-size: 12px;
  font-weight: 600;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--brown);
}

.filter-btn.active,
.filter-btn[aria-pressed="true"] {
  background: var(--bg-dark);
  color: white;
  border-color: var(--bg-dark);
}

.catalog-search {
  position: relative;
  width: 270px;
  flex-shrink: 0;
}

.catalog-search input {
  width: 100%;
  min-height: 45px;
  padding: 10px 40px 10px 16px;

  background: transparent;
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 100px;

  outline: none;
  font-size: 13px;
}

.catalog-search input:focus {
  border-color: var(--brown);
}

.catalog-search input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  top: 50%;
  right: 16px;

  color: var(--text-muted);
  font-size: 25px;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.catalog-results {
  margin-bottom: 20px;
}

.catalog-results p {
  font-size: 12px;
}

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

/* ==================== PRODUCT CARD ==================== */

.product-card {
  min-width: 0;
}

.product-card-trigger {
  display: block;
  width: 100%;
  padding: 0;

  background: transparent;
  color: inherit;
  border: none;

  text-align: left;
  cursor: pointer;
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.65;

  display: grid;
  place-items: center;
  overflow: hidden;

  background: #e6ded2;
  border-radius: var(--radius-sm);
}

.product-image--tapetes {
  background: #e1e5da;
}

.product-image--caminhos-de-mesa {
  background: #ded1c3;
}

.product-image--puxa-sacos {
  background: #dad8d2;
}

.product-image--outros {
  background: #e3d9cd;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.product-card-trigger:hover .product-image img {
  transform: scale(1.045);
}

.product-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.product-placeholder-symbol {
  font-family: var(--font-title);
  font-size: 38px;
  color: var(--brown);
}

.product-placeholder-text {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-image-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;

  max-width: calc(100% - 28px);
  padding: 7px 12px;

  background: rgba(248, 245, 239, 0.95);
  border-radius: 100px;

  font-size: 10px;
  font-weight: 600;
}

.product-info {
  padding-top: 17px;
}

.product-category {
  display: block;
  margin-bottom: 7px;

  color: var(--brown);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-title {
  font-family: var(--font-title);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.2;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: 12px;
}

.product-code {
  color: var(--text-muted);
  font-size: 11px;
}

.product-view {
  color: var(--brown);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.catalog-more {
  margin-top: 55px;
  text-align: center;
}

.catalog-empty,
.catalog-initial-state {
  grid-column: 1 / -1;

  min-height: 270px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  text-align: center;
}

.catalog-initial-symbol {
  color: var(--brown);
  font-size: 38px;
}

.catalog-initial-state p {
  color: var(--text);
  font-family: var(--font-title);
  font-size: 28px;
}

.catalog-initial-state > span:last-child,
.catalog-empty p {
  color: var(--text-muted);
  font-size: 13px;
}

.catalog-empty h3 {
  font-size: 30px;
}

.catalog-empty .btn {
  margin-top: 18px;
}

/* ==================== MANIFESTO ==================== */

.manifesto-section {
  padding-block: 120px;
}

.manifesto-layout {
  display: grid;
  grid-template-columns: 0.3fr 1fr;
  gap: 70px;
}

.manifesto-label {
  padding-top: 12px;
}

.manifesto-content {
  max-width: 1050px;
}

.manifesto-content p {
  color: var(--text);
  font-family: var(--font-title);
  font-size: clamp(36px, 4.1vw, 62px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.manifesto-signature {
  display: block;
  margin-top: 34px;

  color: var(--brown);
  font-size: 13px;
}

/* ==================== ABOUT ==================== */

.about-section {
  background: #e9e2d7;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
}

.about-visual {
  min-width: 0;
}

.about-image {
  height: clamp(440px, 48vw, 650px);

  display: grid;
  place-items: center;
  overflow: hidden;

  background:
    radial-gradient(circle at 65% 35%, #ede6d9, transparent 55%),
    linear-gradient(140deg, #b6aa98, #d8cab8);

  border-radius: var(--radius-sm);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-detail {
  display: block;
  padding-top: 13px;

  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.about-content h2 {
  margin-top: 25px;
  max-width: 570px;
}

.about-content p {
  max-width: 460px;
  margin-top: 25px;
  font-size: 15px;
  line-height: 1.9;
}

.about-content .text-link {
  margin-top: 35px;
}

/* ==================== CONTACT ==================== */

.contact-section {
  text-align: center;
  padding-block: 115px;
}

.contact-content {
  max-width: 720px;
  margin-inline: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-content h2 {
  margin-top: 23px;
}

.contact-content p {
  max-width: 510px;
  margin-top: 23px;

  font-size: 15px;
  line-height: 1.9;
}

.contact-button {
  margin-top: 32px;
}

.contact-note {
  display: block;
  margin-top: 17px;

  color: var(--text-muted);
  font-size: 11px;
}

/* ==================== FOOTER ==================== */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding-top: 70px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 50px;

  padding-bottom: 75px;
}

.footer-brand .brand-name {
  font-size: 38px;
}

.footer-brand .brand-subtitle {
  color: #cbb49a;
}

.footer-brand p {
  max-width: 310px;
  margin-top: 24px;

  color: #c4bfb7;
  font-size: 13px;
  line-height: 1.85;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 20px 30px;
}

.footer-nav a {
  color: #dfd8ce;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: white;
}

.footer-bottom {
  min-height: 75px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom span,
.footer-bottom a {
  color: #beb7ae;
  font-size: 11px;
}

/* ==================== MODAL ==================== */

.product-modal {
  position: fixed;
  inset: 0;

  width: min(1050px, calc(100% - 48px));
  max-width: none;
  max-height: min(90vh, 900px);

  margin: auto;
  padding: 0;

  background: var(--bg-soft);
  color: var(--text);

  border: none;
  border-radius: var(--radius-md);

  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.22);
  overflow: auto;
  overscroll-behavior: contain;
}

.product-modal::backdrop {
  background: rgba(28, 25, 22, 0.7);
  backdrop-filter: blur(5px);
}

.modal-container {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;

  font-size: 25px;
  line-height: 1;

  transition: background 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-warm);
}

.modal-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.modal-gallery {
  min-width: 0;
  padding: 25px;

  background: #e5d9ca;
}

.modal-main-image {
  width: 100%;
  aspect-ratio: 4 / 4.8;

  display: grid;
  place-items: center;
  overflow: hidden;

  background: #dad0c1;
  border-radius: var(--radius-sm);
}

.modal-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.modal-thumb {
  flex: 0 0 75px;
  width: 75px;
  height: 75px;
  padding: 0;

  overflow: hidden;

  background: #dad0c1;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
}

.modal-thumb.active {
  border-color: var(--brown);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  min-width: 0;
  padding: clamp(30px, 4vw, 62px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.modal-content h2 {
  margin-top: 18px;
  font-size: clamp(35px, 3.5vw, 55px);
  overflow-wrap: anywhere;
}

.modal-content > p {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.9;
}

.product-details {
  width: 100%;
  margin-top: 32px;
  margin-bottom: 32px;

  border-top: 1px solid var(--border);
}

.product-details > div {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 14px;

  padding: 14px 0;
  border-bottom: 1px solid var(--border);

  font-size: 12px;
}

.product-details dt {
  color: var(--text-muted);
}

.product-details dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ==================== RESPONSIVIDADE ==================== */

@media (max-width: 1100px) {
  .container {
    width: min(var(--container), calc(100% - 64px));
  }

  .main-nav {
    gap: 17px;
  }

  .hero-layout {
    gap: 50px;
  }

  .hero h1 {
    font-size: clamp(58px, 7vw, 90px);
  }

  .hero-floating-card {
    left: -25px;
  }

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

  .about-layout {
    gap: 55px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .catalog-search {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 850px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: calc(100% - 48px);
  }

  .section {
    padding-block: 78px;
  }

  .site-header {
    position: sticky;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 10px 24px 20px;

    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(41, 39, 37, 0.07);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;

    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    padding: 15px 5px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .hero {
    padding-top: 45px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    padding: 0;
  }

  .hero h1 {
    max-width: 650px;
    font-size: clamp(56px, 10vw, 94px);
  }

  .hero-description {
    max-width: 540px;
  }

  .hero-signature {
    margin-top: 40px;
  }

  .hero-image {
    height: 620px;
    border-radius: 170px 170px 12px 12px;
  }

  .hero-floating-card {
    left: 20px;
    bottom: 75px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .section-heading > p {
    max-width: 620px;
  }

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

  .manifesto-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-image {
    height: 560px;
  }

  .about-content p {
    max-width: 640px;
  }

  .modal-layout {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    padding: 18px;
  }

  .modal-main-image {
    aspect-ratio: 4 / 3;
  }

  .modal-content {
    padding: 32px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 36px);
  }

  .section {
    padding-block: 64px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-subtitle {
    font-size: 8px;
  }

  .header-contact {
    display: none;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 65px;
  }

  .hero h1 {
    margin-top: 22px;
    font-size: clamp(51px, 12vw, 73px);
  }

  .hero-description {
    margin-top: 22px;
    font-size: 14px;
  }

  .hero-actions {
    align-items: flex-start;
    gap: 22px;
    margin-top: 28px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: space-between;
  }

  .hero-signature {
    margin-top: 35px;
  }

  .hero-image {
    height: 440px;
    border-radius: 120px 120px 10px 10px;
  }

  .hero-image-caption {
    font-size: 9px;
  }

  .hero-floating-card {
    width: 195px;
    left: 12px;
    bottom: 55px;
    padding: 16px;
  }

  .hero-floating-card strong {
    font-size: 19px;
  }

  .values-inner {
    min-height: 65px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 15px;
    padding-block: 15px;
  }

  .values-inner > span:not(.separator) {
    font-size: 9px;
  }

  .values-inner > span:nth-of-type(n + 4) {
    display: none;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  h2 {
    font-size: clamp(36px, 9vw, 48px);
  }

  .section-heading > p {
    font-size: 13px;
  }

  .categories-grid {
    gap: 24px 12px;
  }

  .category-image {
    aspect-ratio: 3 / 3.7;
  }

  .category-image .image-placeholder {
    font-size: 22px;
  }

  .category-info {
    min-height: 63px;
    gap: 7px;
  }

  .category-number {
    font-size: 9px;
  }

  .category-info h3 {
    font-size: 19px;
  }

  .category-arrow {
    font-size: 17px;
  }

  .catalog-toolbar {
    gap: 20px;
  }

  .catalog-search {
    max-width: none;
  }

  .catalog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -18px;
    padding-right: 18px;
    padding-bottom: 7px;

    scrollbar-width: none;
  }

  .catalog-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    min-height: 40px;
    padding: 9px 15px;
  }

  .products-grid {
    gap: 30px 12px;
    min-height: 120px;
  }

  .product-image {
    aspect-ratio: 4 / 5;
  }

  .product-image-tag {
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: 9px;
  }

  .product-placeholder-symbol {
    font-size: 29px;
  }

  .product-placeholder-text {
    font-size: 9px;
  }

  .product-title {
    font-size: 20px;
  }

  .product-info {
    padding-top: 12px;
  }

  .product-category {
    font-size: 9px;
  }

  .product-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .catalog-more {
    margin-top: 35px;
  }

  .manifesto-content p {
    font-size: clamp(34px, 8.5vw, 47px);
  }

  .about-image {
    height: 430px;
  }

  .about-content p,
  .contact-content p {
    font-size: 14px;
  }

  .contact-content .btn {
    width: 100%;
  }

  .site-footer {
    padding-top: 50px;
  }

  .footer-main {
    flex-direction: column;
    gap: 35px;
    padding-bottom: 45px;
  }

  .footer-nav {
    gap: 14px 25px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-block: 22px;
  }

  .product-modal {
    width: calc(100% - 16px);
    max-height: 94dvh;
    border-radius: 12px;
  }

  .modal-gallery {
    padding: 10px;
  }

  .modal-main-image {
    aspect-ratio: 4 / 3.5;
  }

  .modal-content {
    padding: 26px 20px 32px;
  }

  .modal-content h2 {
    font-size: 38px;
  }

  .modal-content .btn {
    width: 100%;
  }

  .product-details > div {
    grid-template-columns: 100px 1fr;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 22px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-image {
    height: 390px;
  }

  .category-info h3 {
    font-size: 17px;
  }

  .product-title {
    font-size: 18px;
  }
}

/* ==================== ACESSIBILIDADE ==================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Carregamento seguro das fotos dos produtos */

.product-image,
.modal-main-image {
  position: relative;
}

.product-image img,
.modal-main-image img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-image.has-photo img,
.modal-main-image.has-photo img {
  opacity: 1;
}
