/*
  Siam Entrade plating site
  One stylesheet for every page. Sections follow the page from top to bottom:
  tokens, base, layout, header, hero, bands, components, catalog, product page,
  forms, footer, floating widgets, overlays, motion.
*/

/* ---------- Tokens ---------- */

:root {
  --navy: #1f3867;
  --navy-deep: #142749;
  --navy-soft: #2c4a82;
  --brand-red: #e4234b;
  --brand-cyan: #29abe2;
  /* Text-safe variants: the brand red/cyan are too light for small text on white or navy. */
  --brand-red-text: #c4153a;
  --cyan-on-white: #16719e;
  --cyan-on-navy: #7fd3f5;
  --ink: #1d2433;
  --ink-soft: #4a5468;
  --line: #e3e7ef;
  --paper: #ffffff;
  --paper-soft: #f4f6fa;
  --crimson: #d4183d;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(20, 39, 73, 0.08);
  --shadow: 0 10px 30px rgba(20, 39, 73, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 39, 73, 0.22);

  --container: 1200px;
  --header-height: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  font-family: 'Prompt', 'Sukhumvit Set', 'Leelawadee UI', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--brand-red-text);
}

/* Links on navy or dark photo backgrounds brighten instead of turning red. */
.band--navy a:not(.btn):hover,
.band--dark-photo a:not(.btn):hover,
.drawer a:hover,
.page-heading a:hover {
  color: #fff;
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.skip-link:hover {
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.125em;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container,
  .container-wide {
    padding: 0 32px;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
  transition: height 0.3s var(--ease);
}

.site-header.is-scrolled .site-header__inner {
  height: 64px;
}

.site-header__logo img {
  height: 46px;
  width: auto;
  transition: height 0.3s var(--ease);
}

.site-header.is-scrolled .site-header__logo img {
  height: 38px;
}

.main-nav {
  display: none;
  margin-left: 28px;
}

.main-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 8px 16px;
  font-weight: 400;
  color: var(--navy);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover::after,
.main-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

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

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.quote-cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--navy);
  font-size: 18px;
  transition: background 0.2s var(--ease);
}

.quote-cart:hover {
  background: var(--paper-soft);
  color: var(--navy);
}

.quote-cart__count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--brand-red);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-size: 22px;
}

.nav-toggle:hover {
  background: var(--paper-soft);
}

@media (min-width: 992px) {
  .main-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 991px) {
  .site-header .lang-switcher {
    display: none;
  }
}

/* Language switcher: our own dropdown, Google Translate does the work behind it. */

.lang-switcher {
  position: relative;
}

.lang-switcher__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-weight: 400;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lang-switcher__toggle:hover,
.lang-switcher.is-open .lang-switcher__toggle {
  background: var(--paper-soft);
  border-color: var(--line);
}

[data-lang-current] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher__toggle .icon-caret {
  font-size: 10px;
  transition: transform 0.25s var(--ease);
}

.lang-switcher.is-open .icon-caret {
  transform: rotate(180deg);
}

.flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: inline-block;
}

.lang-switcher__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: left;
  font-weight: 300;
  color: var(--ink);
}

.lang-option:hover,
.lang-option:focus-visible {
  background: var(--paper-soft);
  color: var(--navy);
}

.lang-option[aria-checked='true'] {
  font-weight: 500;
  color: var(--navy);
  background: #eaf0fb;
}

/* Google's own banner and tooltips would push the page down and look foreign. */
.skiptranslate iframe,
iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
#google_translate_element {
  display: none !important;
}

body {
  top: 0 !important;
  position: static !important;
}

font[style] {
  background: none !important;
  box-shadow: none !important;
}

/* ---------- Mobile drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
}

.drawer.is-open {
  visibility: visible;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 26, 48, 0.5);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  padding: 20px;
  overflow-y: auto;
  background: var(--navy);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

.drawer.is-open .drawer__panel {
  transform: none;
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
}

.drawer__nav {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.drawer__nav a,
.drawer__nav .drawer__lang-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: none;
  color: #fff;
  font-weight: 400;
  text-align: left;
}

.drawer__nav a[aria-current='page'] {
  color: var(--cyan-on-navy);
}

.drawer__langs {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.drawer__langs > div {
  overflow: hidden;
}

.drawer__lang-group.is-open .drawer__langs {
  grid-template-rows: 1fr;
}

.drawer__langs .lang-option {
  color: #fff;
}

.drawer__langs .lang-option:hover,
.drawer__langs .lang-option[aria-checked='true'] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero__track {
  display: grid;
  overflow: hidden;
}

.hero__slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: auto;
}

.hero__slide.is-active img {
  animation: hero-zoom 7s var(--ease) both;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

.hero__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
}

.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: rgba(31, 56, 103, 0.25);
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.hero .slider-dot {
  background: rgba(255, 255, 255, 0.45);
}

.slider-dot.is-active {
  width: 28px;
  background: var(--navy);
}

.hero .slider-dot.is-active {
  background: #fff;
}

/* ---------- Page heading band ---------- */

.page-heading {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  color: #fff;
}

.page-heading--home {
  padding: 28px 16px 22px;
  text-align: center;
}

.page-heading--home h1 {
  margin: 0;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
}

.title-underline {
  display: block;
  width: 64px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: currentColor;
}

.page-heading__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 400;
  font-size: 15px;
}

.breadcrumb a {
  color: #fff;
  opacity: 0.85;
}

.breadcrumb a:hover {
  opacity: 1;
  color: #fff;
}

.breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  opacity: 0.7;
}

.page-heading__site {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400;
}

/* ---------- Content bands (the original's grid rows) ---------- */

.band {
  position: relative;
  background-color: var(--band-bg, transparent);
  color: var(--band-fg, inherit);
  background-image: var(--band-image, none);
  background-size: cover;
  background-position: center;
}

.band--navy {
  --band-bg: var(--navy);
  --band-fg: #fff;
}

.band--navy a:not(.btn) {
  color: #cfe3ff;
}

.band__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.band__title {
  position: relative;
  padding: 48px 16px 8px;
  text-align: center;
}

.band__title h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
}

.band__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .band__grid--2 {
    grid-template-columns: 1fr 1fr;
  }

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

.band__col {
  min-width: 0;
}

.band__col--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
}

@media (min-width: 992px) {
  .band__col--text {
    padding: 56px clamp(24px, 4vw, 64px);
  }

  .band__grid--1 .band__col--text {
    padding-left: max(32px, calc((100% - var(--container)) / 2 + 32px));
    padding-right: max(32px, calc((100% - var(--container)) / 2 + 32px));
  }
}

.band__col--media {
  display: flex;
  align-items: center;
}

.band__col--media img {
  width: 100%;
  height: auto;
}

.band--dark-photo {
  --band-fg: #fff;
}

.band--dark-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 39, 73, 0.55), rgba(20, 39, 73, 0.35));
}

/* Rich text copied from the original pages. */

.prose > :last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
}

.prose h3 {
  font-size: 19px;
}

.prose h4 {
  font-size: 17px;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose li::marker {
  color: var(--brand-cyan);
}

.prose img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.prose .ta-center {
  text-align: center;
}

.prose .ta-right {
  text-align: right;
}

.prose .ta-center img {
  margin: 0 auto;
}

.prose .is-lead {
  font-size: 20px;
  font-weight: 400;
}

.prose .is-crimson,
.prose .is-crimson a {
  color: var(--crimson);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.prose td,
.prose th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.prose tr:first-child td {
  font-weight: 500;
  background: var(--navy);
  color: #fff;
}

.prose td:first-child {
  font-weight: 400;
  color: var(--navy);
}

.prose tr:first-child td:first-child {
  color: #fff;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.button-row {
  margin-top: 20px;
}

.button-row.ta-center {
  text-align: center;
}

.button-row.ta-right {
  text-align: right;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 26px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 56, 103, 0.28);
  background: var(--navy-soft);
}

.btn--light {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn--light:hover {
  background: #fff;
  color: var(--brand-red-text);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  color: var(--navy);
}

.btn--outline {
  background: #fff;
  color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
}

.btn--sm {
  min-height: 34px;
  padding: 6px 16px;
  font-size: 14px;
}

.btn--square {
  border-radius: var(--radius-sm);
}

/* ---------- Contact strip under the home title ---------- */

.contact-strip {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.contact-strip__inner {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

@media (min-width: 1200px) {
  .contact-strip__inner {
    grid-template-columns: 1.2fr 1fr 1.4fr auto;
    align-items: center;
  }
}

.contact-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--navy);
  font-weight: 400;
}

.contact-strip__item .icon {
  margin-top: 5px;
  color: var(--navy);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.social-link:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: var(--shadow-sm);
}

.social-link--line {
  background: #06c755;
}

.social-link--facebook {
  background: #1877f2;
}

.social-link--website {
  background: #2b8ad8;
}

/* ---------- Service tiles (image with text overlay) ---------- */

.service-tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  color: #fff;
  aspect-ratio: 4 / 3;
  background: var(--navy-deep);
}

@media (min-width: 768px) {
  .service-tile {
    aspect-ratio: 1 / 1;
  }
}

.service-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.service-tile__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  text-align: center;
  background: linear-gradient(to top, rgba(14, 26, 48, 0.92) 0%, rgba(14, 26, 48, 0.55) 45%, rgba(14, 26, 48, 0) 75%);
}

.service-tile__text h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.service-tile__text p {
  margin: 0;
  font-size: 15px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease);
}

.service-tile:hover img,
.service-tile:focus-within img {
  transform: scale(1.07);
}

.service-tile:hover .service-tile__text p,
.service-tile:focus-within .service-tile__text p {
  max-height: 260px;
  opacity: 1;
}

@media (hover: none) {
  .service-tile__text p {
    max-height: none;
    opacity: 1;
  }
}

/* ---------- Image collage block with navy edge (home) ---------- */

.band__col--media.has-navy-edge {
  background: linear-gradient(to right, var(--navy) 0, var(--navy) 13%, transparent 13%);
  padding: 16px 0 16px 3%;
}

/* ---------- Section heading used by catalog widgets ---------- */

.section-heading {
  margin: 0 0 28px;
  text-align: center;
  color: var(--ink);
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
}

.section-heading .title-underline {
  background: var(--navy);
}

/* ---------- Product cards and catalog grid ---------- */

.catalog-block {
  padding: 48px 0;
}

.catalog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-grid > li[hidden] {
  display: none;
}

.product-card {
  height: 100%;
}

.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.product-card__link:hover {
  color: var(--ink);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-card__thumb {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--paper-soft);
}

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

.product-card__link:hover .product-card__thumb img {
  transform: scale(1.06);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 14px;
}

.product-card__category {
  display: none;
}

.product-card__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__brand {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.product-card__description {
  display: none;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.product-card__tag {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 11px;
  color: var(--navy);
}

.product-card__tag span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__more {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  transition: background 0.25s var(--ease);
}

.product-card__link:hover .product-card__more {
  background: var(--brand-red-text);
}

/* List view on the catalog pages: one row per product with its description. */

.catalog-grid.is-list {
  grid-template-columns: 1fr;
}

.catalog-grid.is-list .product-card__link {
  flex-direction: row;
}

.catalog-grid.is-list .product-card__thumb {
  width: min(34%, 240px);
  flex: none;
}

.catalog-grid.is-list .product-card__title {
  white-space: normal;
}

.catalog-grid.is-list .product-card__description {
  display: -webkit-box;
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-soft);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-grid.is-list .product-card__category {
  display: block;
  font-size: 13px;
  color: var(--cyan-on-white);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.pager button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-weight: 400;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.pager button:hover:not(:disabled) {
  border-color: var(--navy);
}

.pager button[aria-current='page'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pager button:disabled {
  opacity: 0.4;
  cursor: default;
}

.catalog-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--ink-soft);
}

/* Catalog tools: search, e-Brochure, layout switch */

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}

.catalog-search {
  display: flex;
  flex: 1 1 240px;
  max-width: 320px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.catalog-search:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(31, 56, 103, 0.1);
}

.catalog-search input {
  flex: 1;
  min-width: 0;
  padding: 9px 16px;
  border: 0;
  outline: 0;
  font: inherit;
  background: transparent;
}

.catalog-search button {
  width: 44px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
}

.layout-switch {
  display: flex;
  gap: 4px;
}

.layout-switch button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #6f7a90;
  font-size: 22px;
}

.layout-switch button[aria-pressed='true'] {
  color: var(--navy);
  background: var(--paper-soft);
}

/* Keyword cloud */

.tag-cloud-block {
  padding: 40px 0 56px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-cloud a {
  display: inline-block;
  padding: 5px 20px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.tag-cloud a:hover,
.tag-cloud a[aria-current='page'] {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Gallery / related products slider ---------- */

.slider-block {
  padding: 48px 0;
}

.slider {
  position: relative;
}

.slider__viewport {
  overflow: hidden;
}

.slider__track {
  display: flex;
  gap: 16px;
  transition: transform 0.8s var(--ease);
  will-change: transform;
  touch-action: pan-y;
}

.slider__slide {
  flex: 0 0 calc((100% - 16px * (var(--per-view, 4) - 1)) / var(--per-view, 4));
  min-width: 0;
}

.slider {
  --per-view: 1;
}

@media (min-width: 576px) {
  .slider {
    --per-view: 2;
  }
}

@media (min-width: 992px) {
  .slider {
    --per-view: 4;
  }
}

.slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.slider__arrow--prev {
  left: -6px;
}

.slider__arrow--next {
  right: -6px;
}

.slider:hover .slider__arrow,
.slider__arrow:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .slider__arrow {
    display: none;
  }
}

.slider__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.gallery-slide {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: #fff;
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background-color: rgba(20, 39, 73, 0.9);
  font-weight: 400;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.gallery-slide:hover img {
  transform: scale(1.06);
}

.gallery-slide:hover .gallery-slide__caption,
.gallery-slide:focus-visible .gallery-slide__caption {
  transform: none;
}

.gallery-slide__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.gallery-slide:hover .gallery-slide__zoom {
  opacity: 1;
  transform: none;
}

/* ---------- FAQ accordion ---------- */

.faq {
  padding: 8px 0;
}

.faq__title {
  font-size: 22px;
  margin-bottom: 16px;
}

.faq__item {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}

.faq__item.is-open {
  box-shadow: var(--shadow-sm);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 400;
  color: var(--ink);
}

.faq__sign {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.faq__sign::before,
.faq__sign::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}

.faq__sign::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.is-open .faq__sign {
  color: var(--brand-red);
}

.faq__item.is-open .faq__sign::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer > div {
  overflow: hidden;
}

.faq__answer-text {
  margin: 0 12px 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
}

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

.product-page {
  padding: 32px 0 16px;
}

.panel {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.panel__title {
  display: inline-block;
  margin: 0 0 20px;
  font-size: 22px;
  color: var(--ink);
}

.panel__title .title-underline {
  margin-left: 0;
  background: var(--navy);
}

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

@media (min-width: 768px) {
  .product-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

.product-summary__image {
  display: block;
  align-self: start;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.product-summary__image img {
  width: 100%;
  transition: transform 0.6s var(--ease);
}

.product-summary__image:hover img {
  transform: scale(1.05);
}

.product-summary h1 {
  font-size: clamp(24px, 2.6vw, 30px);
  color: var(--navy);
  margin-bottom: 8px;
}

.product-meta {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.product-meta__label {
  margin: 0 0 8px;
  font-weight: 500;
}

.product-meta--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta--inline .product-meta__label {
  margin: 0;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.chip {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 2px 12px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover {
  background: var(--navy);
  color: #fff;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.share-button--line { color: #06c755; }
.share-button--facebook { color: #1877f2; }
.share-button--x { color: #111; }
.share-button--linkedin { color: #0a66c2; }
.share-button--pinterest { color: #e60023; }
.share-button--whatsapp { color: #25d366; }
.share-button--email { color: #3b6fa0; }

.share-button:hover {
  background: currentColor;
}

.share-button:hover .icon {
  fill: #fff;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.contact-list li > .icon {
  margin-top: 6px;
  color: var(--ink);
}

.contact-list .social-links {
  gap: 8px;
}

.contact-list .social-link {
  width: 30px;
  height: 30px;
  font-size: 15px;
}

/* ---------- Contact page ---------- */

.contact-page {
  padding: 48px 0 56px;
}

.contact-page__grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 992px) {
  .contact-page__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--paper-soft);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-actions {
  margin-top: 16px;
  text-align: center;
}

/* ---------- Forms (RFQ, request details) ---------- */

.form-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-field label {
  font-weight: 400;
  font-size: 15px;
}

.form-field .required {
  color: var(--crimson);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cfd6e3;
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-control:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(31, 56, 103, 0.12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #eaf6ee;
  color: #1c6b3a;
}

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

.quote-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.quote-table th,
.quote-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.quote-table th {
  font-weight: 500;
  background: var(--paper-soft);
}

.quote-table img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.quote-table__remove {
  border: 0;
  background: none;
  color: var(--crimson);
  font-size: 18px;
}

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

.site-footer {
  margin-top: 48px;
}

.site-footer__main {
  position: relative;
  padding: 56px 16px 44px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.site-footer__main::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 260px at 10% 0%, rgba(41, 171, 226, 0.18), transparent 70%),
    radial-gradient(500px 240px at 95% 100%, rgba(228, 35, 75, 0.14), transparent 70%);
  pointer-events: none;
}

.site-footer__main > * {
  position: relative;
}

.site-footer__logo {
  display: inline-block;
  padding: 10px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: #fff;
}

.site-footer__logo img {
  height: 42px;
  width: auto;
}

.site-footer__name {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  margin-bottom: 10px;
}

.site-footer__main p {
  margin: 0;
  font-weight: 400;
}

.site-footer__main a {
  color: #fff;
}

.site-footer__main a:hover {
  color: var(--cyan-on-navy);
  text-decoration: underline;
}

.site-footer .social-links {
  justify-content: center;
  margin: 18px 0;
}

.site-footer .social-link {
  background: rgba(255, 255, 255, 0.12);
}

.site-footer .social-link:hover {
  background: #fff;
  color: var(--navy);
}

.site-footer__bottom {
  padding: 14px 0;
  background: #f2f2f2;
  font-size: 13px;
  color: var(--ink);
}

.site-footer__bottom a {
  color: var(--navy);
}

.site-footer__bottom p {
  margin: 0;
}

/* ---------- Floating widgets ---------- */

.contact-dock {
  position: fixed;
  left: 16px;
  bottom: 120px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-group {
  position: relative;
}

.dock-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.dock-button:hover {
  transform: scale(1.06);
  background: var(--navy-soft);
}

.dock-group.is-open .dock-button {
  background: var(--brand-red);
}

.dock-menu {
  position: absolute;
  left: 2px;
  bottom: 58px;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.dock-menu a,
.dock-menu button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px) scale(0.7);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}

.dock-group.is-open .dock-menu {
  pointer-events: auto;
}

.dock-group.is-open .dock-menu a,
.dock-group.is-open .dock-menu button {
  opacity: 1;
  transform: none;
}

.dock-group.is-open .dock-menu li:nth-child(2) a,
.dock-group.is-open .dock-menu li:nth-child(2) button { transition-delay: 0.04s; }
.dock-group.is-open .dock-menu li:nth-child(3) a,
.dock-group.is-open .dock-menu li:nth-child(3) button { transition-delay: 0.08s; }
.dock-group.is-open .dock-menu li:nth-child(4) a,
.dock-group.is-open .dock-menu li:nth-child(4) button { transition-delay: 0.12s; }
.dock-group.is-open .dock-menu li:nth-child(5) a,
.dock-group.is-open .dock-menu li:nth-child(5) button { transition-delay: 0.16s; }

.dock-menu .is-line { color: #06c755; }
.dock-menu .is-facebook { color: #1877f2; }

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--brand-red);
}

/* ---------- Cookie notice ---------- */

.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  width: min(640px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  transform: translate(-50%, 0);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice.is-leaving {
  opacity: 0;
  transform: translate(-50%, 24px);
}

.cookie-notice__icon {
  flex: none;
  font-size: 26px;
  color: var(--navy);
}

.cookie-notice__text {
  flex: 1 1 260px;
}

.cookie-notice__text strong {
  display: block;
  font-weight: 500;
}

.cookie-notice__text p {
  margin: 0;
  color: var(--ink-soft);
}

.cookie-notice__actions {
  display: flex;
  gap: 8px;
}

.btn--cookie-accept {
  background: #ffc107;
  border-color: #ffc107;
  color: #1d2433;
}

.btn--cookie-accept:hover {
  background: #ffb300;
  color: #1d2433;
}

/* ---------- Modal + lightbox ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(14, 26, 48, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal.is-open .modal__dialog {
  transform: none;
}

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

.modal__header h2 {
  margin: 0;
  font-size: 19px;
}

.modal__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-soft);
  font-size: 16px;
}

.modal__body {
  padding: 22px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

.rfq-modal__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 560px) {
  .rfq-modal__grid {
    grid-template-columns: 1fr 2fr;
  }
}

.rfq-modal__grid img {
  border-radius: var(--radius-sm);
}

.cookie-pref {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cookie-pref:last-child {
  border-bottom: 0;
}

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

.cookie-pref p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: #c9d0dc;
  transition: background 0.2s var(--ease);
  pointer-events: none;
}

.switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease);
}

.switch input:checked + span {
  background: var(--navy);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.switch input:disabled + span {
  opacity: 0.6;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 56px 16px 20px;
  background: rgba(8, 15, 28, 0.92);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: grid;
  place-items: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.lightbox.is-open .lightbox__image {
  transform: none;
}

.lightbox__image.is-loading {
  opacity: 0;
}

.lightbox__caption {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-top: 14px;
  font-weight: 400;
  text-align: center;
}

.lightbox__caption > span:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lightbox__subcaption {
  font-size: 13px;
  font-weight: 300;
  opacity: 0.8;
}

.lightbox__counter {
  opacity: 0.7;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  transition: background 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__close {
  top: 12px;
  right: 12px;
}

.lightbox__nav--prev {
  left: 12px;
  top: 50%;
}

.lightbox__nav--next {
  right: 12px;
  top: 50%;
}

.lightbox__nav[hidden] {
  display: none;
}

body.has-overlay {
  overflow: hidden;
}

/* ---------- Scroll reveal ---------- */

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.js-motion [data-reveal='left'] {
  transform: translateX(-36px);
}

.js-motion [data-reveal='right'] {
  transform: translateX(36px);
}

.js-motion [data-reveal='zoom'] {
  transform: scale(0.94);
}

.js-motion [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js-motion [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .contact-dock,
  .back-to-top,
  .cookie-notice,
  .drawer {
    display: none !important;
  }
}

/* ---------- RFQ steps ---------- */

.rfq-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.rfq-steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  text-align: center;
  color: var(--ink-soft);
}

.rfq-steps__item::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.rfq-steps__item:first-child::before {
  display: none;
}

.rfq-steps__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-weight: 500;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.rfq-steps__item.is-active {
  color: var(--navy);
}

.rfq-steps__item.is-active::before {
  background: var(--navy);
}

.rfq-steps__item.is-active .rfq-steps__dot {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.rfq-title {
  padding: 16px 0 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: clamp(24px, 3vw, 34px);
}

.rfq-empty {
  font-weight: 400;
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
  .contact-dock {
    bottom: 24px;
    left: 12px;
  }

  .dock-button {
    width: 44px;
    height: 44px;
  }

  /* No hover on phones, so the service descriptions are always shown. */
  .service-tile__text p {
    max-height: none;
    opacity: 1;
  }

  .product-page .catalog-tools {
    justify-content: stretch;
  }

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

  .catalog-grid.is-list .product-card__thumb {
    width: 38%;
  }
}

/* ---------- Form feedback and spam trap ---------- */

/* Off-screen rather than display:none, so simple bots still see and fill it. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status.is-error {
  background: #fdecef;
  color: #9b1030;
}

.form-error {
  margin: 4px 0 0;
  font-size: 14px;
  color: #9b1030;
}

.form-control[aria-invalid='true'] {
  border-color: #c4153a;
}

/* ---------- Policy pages and footer policy links ---------- */

.policy-title {
  margin-bottom: 20px;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--navy);
}

.policy td {
  border: 1px solid var(--line);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.cookie-notice__text a,
.cookie-pref p a {
  text-decoration: underline;
}
