:root {
  --color-bg: #ffffff;
  --color-surface: #f6f8fa;
  --color-surface-strong: #eef3f5;
  --color-text: #152027;
  --color-muted: #5d6972;
  --color-line: #dfe6ea;
  --color-primary: #0f4c5c;
  --color-primary-dark: #0a3440;
  --color-accent: #b73532;
  --color-accent-soft: #fff0ef;
  --shadow-soft: 0 14px 35px rgba(15, 76, 92, 0.10);
  --radius-card: 16px;
  --radius-control: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(183, 53, 50, 0.45);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  background: var(--color-primary-dark);
  color: #e9f4f6;
  font-size: 0.9rem;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.topbar a {
  color: #fff;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(12px);
}

.header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand img {
  width: auto;
  max-width: min(230px, 54vw);
  max-height: 64px;
  object-fit: contain;
}

.footer img {
  width: auto;
  max-width: 210px;
  max-height: 82px;
  object-fit: contain;
}

.brand img,
.footer img {
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--color-muted);
  font-weight: 700;
}

.nav a:hover,
.nav a.is-active {
  background: var(--color-surface-strong);
  color: var(--color-primary);
}

.hero {
  position: relative;
  min-height: min(72vh, 640px);
  overflow: hidden;
  display: grid;
  align-items: center;
  color: #fff;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(8, 26, 32, 0.88), rgba(8, 26, 32, 0.58) 45%, rgba(8, 26, 32, 0.22)),
    linear-gradient(0deg, rgba(8, 26, 32, 0.25), rgba(8, 26, 32, 0.10));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 56px;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.3rem, 12vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero__text {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  color: #eef8fa;
}

.hero__actions,
.gallery-actions,
.product-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__actions {
  margin-top: 30px;
}

.page-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.page-hero__inner {
  padding-block: 52px 44px;
}

.page-hero h1,
.section-heading h2,
.info-band h2,
.cta h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 8vw, 4.5rem);
}

.page-hero p:last-child,
.section-heading p,
.cta p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 1.02rem;
}

.section {
  padding-block: 58px;
}

.section--compact {
  padding-block: 28px;
}

.section--muted {
  background: var(--color-surface);
}

.section--cta {
  background: var(--color-primary-dark);
  color: #fff;
}

.section--cta p {
  color: #d8edf1;
}

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

.section-heading h2,
.info-band h2,
.cta h2 {
  font-size: clamp(1.85rem, 5vw, 3rem);
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.section--cta .eyebrow {
  color: #ffb5b2;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(183, 53, 50, 0.22);
}

.button--primary:hover {
  background: #9e2d2a;
}

.button--secondary {
  background: var(--color-primary);
  color: #fff;
}

.button--ghost {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-line);
}

.button--light {
  background: #fff;
  color: var(--color-primary-dark);
}

.text-link {
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.family-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.family-pill {
  flex: 0 0 auto;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 800;
  white-space: nowrap;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.category-card,
.product-card,
.contact-form,
.contact-panel,
.product-spec,
.product-observations,
.empty-state {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.category-card {
  padding: 18px;
}

.category-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.category-card p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__image {
  display: block;
  background: var(--color-surface-strong);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

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

.product-card__body {
  min-width: 0;
  padding: 14px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.product-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.product-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.sku {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}

.badge {
  width: fit-content;
  padding: 6px 9px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.tag-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  padding: 5px 8px;
  background: var(--color-surface);
  color: var(--color-primary);
}

.card-actions {
  margin-top: auto;
}

.card-actions .button {
  flex: 1 1 120px;
  padding-inline: 10px;
}

.info-band,
.cta {
  display: grid;
  gap: 24px;
  align-items: center;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
}

.step strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 7px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  background: #fff;
  color: var(--color-text);
  font-weight: 500;
}

.field textarea {
  resize: vertical;
}

.results-count,
.status-message,
.form-note {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.product-detail {
  display: grid;
  gap: 24px;
}

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

.main-photo-button {
  width: 100%;
  display: block;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.main-photo-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.thumb-button {
  border: 1px solid var(--color-line);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.thumb-button.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(183, 53, 50, 0.14);
}

.thumb-button img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

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

.product-info h1 {
  margin: 10px 0;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.product-summary {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.product-actions {
  margin-top: 22px;
}

.product-spec,
.product-observations {
  padding: 18px;
}

.product-spec h2,
.product-observations h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.product-spec ul {
  padding-left: 20px;
  margin: 0;
}

.product-spec li + li {
  margin-top: 8px;
}

.product-observations {
  margin-top: 14px;
}

.product-observations p {
  margin: 0;
  color: var(--color-muted);
}

.gallery-masonry {
  column-count: 2;
  column-gap: 12px;
}

.gallery-item {
  width: 100%;
  display: block;
  margin: 0 0 12px;
  border: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow-soft);
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  height: auto;
}

.empty-state {
  padding: 24px;
  color: var(--color-muted);
}

.contact-layout {
  display: grid;
  gap: 18px;
}

.contact-form,
.contact-panel {
  padding: 18px;
}

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

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-card {
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
}

.contact-card__label {
  display: block;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-card a,
.contact-card strong {
  display: inline-block;
  margin-top: 4px;
  color: var(--color-primary);
  font-size: 1.02rem;
  font-weight: 900;
}

.map-placeholder {
  min-height: 230px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 20px;
  border: 1px dashed #aebcc3;
  border-radius: var(--radius-card);
  background:
    linear-gradient(45deg, rgba(15, 76, 92, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15, 76, 92, 0.06) 25%, transparent 25%),
    #fff;
  color: var(--color-muted);
  text-align: center;
}

.map-placeholder span {
  color: var(--color-primary);
  font-size: 1.15rem;
  font-weight: 900;
}

.footer {
  padding-block: 34px;
  background: #111a1e;
  color: #dce8eb;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer p {
  margin: 12px 0 0;
  color: #aebcc3;
}

.footer__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer__links a {
  color: #fff;
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: #1f8f55;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(31, 143, 85, 0.28);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 12, 15, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__panel {
  position: relative;
  width: min(100%, 1040px);
  max-height: 92vh;
  display: grid;
  gap: 12px;
}

.lightbox__image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-card);
  background: #fff;
}

.lightbox__caption {
  min-height: 24px;
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.lightbox__button {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox__button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox__button--close {
  top: -8px;
  right: -8px;
}

.lightbox__button--prev,
.lightbox__button--next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__button--prev {
  left: -8px;
}

.lightbox__button--next {
  right: -8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 8px;
  }

  .header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav a {
    padding-inline: 10px;
  }

  .hero {
    min-height: 62vh;
  }

  .section-heading--inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .card-actions .button {
    width: 100%;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
  }
}

@media (min-width: 720px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.8fr) auto;
  }

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

  .contact-layout,
  .product-detail,
  .info-band,
  .cta {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .gallery-masonry {
    column-count: 3;
  }
}

@media (min-width: 1120px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .gallery-masonry {
    column-count: 4;
  }
}

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