/* Alvion safety footwear B2B static site - shared stylesheet */

:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --ink: #1f2329;
  --muted: #5f6872;
  --soft: #edf0f2;
  --line: #d8dee4;
  --line-strong: #c1c9d1;
  --accent: #e26b18;
  --accent-deep: #b95009;
  --steel: #262c34;
  --steel-soft: #343c45;
  --teal: #167d6b;
  --amber-bg: #fff5e1;
  --amber-line: #e8c58a;
  --amber-ink: #71470c;
  --success: #2c7a4b;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 20px rgba(15, 23, 42, 0.05);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
}

h1 {
  font-size: 2.35rem;
}

h2 {
  font-size: 1.65rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

svg {
  flex: none;
}

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

.section {
  padding-block: 3.25rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-tight {
  padding-block: 2rem;
}

.section-dark {
  background: var(--steel);
  color: #eef2f5;
}

.section-dark h2,
.section-dark h3,
.section-dark .eyebrow {
  color: #ffffff;
}

.section-dark a {
  color: #f5b27a;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-deep);
  text-transform: uppercase;
}

.eyebrow svg {
  width: 16px;
  height: 16px;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.86rem;
}

.center {
  text-align: center;
}

.notice {
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--amber-line);
  border-radius: 6px;
  background: var(--amber-bg);
  color: var(--amber-ink);
}

.notice strong {
  color: var(--amber-ink);
}

.notice-dark {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f6e9d9;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.65rem 1.05rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  white-space: normal;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--accent-deep);
  text-decoration: none;
}

.btn-outline {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #ffffff;
}

.btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.btn-ghost-dark {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-lg {
  padding: 0.8rem 1.25rem;
  font-size: 1rem;
}

/* header / navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--steel);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-name {
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-tag {
  color: #b7c0c9;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  color: #d6dce2;
  font-size: 0.92rem;
  font-weight: 600;
}

.primary-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.primary-nav .nav-cta {
  margin-left: 0.55rem;
  background: var(--accent);
  color: #ffffff;
}

.primary-nav .nav-cta:hover {
  background: var(--accent-deep);
  color: #ffffff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-switch:hover {
  border-color: #ffffff;
  text-decoration: none;
}

body.nav-open .primary-nav {
  display: block;
}

/* hero */

.hero {
  position: relative;
  color: #ffffff;
  background-color: var(--steel);
  background-image:
    linear-gradient(90deg, rgba(19, 23, 28, 0.93), rgba(28, 34, 41, 0.75)),
    url("../images/video-posters/injection-workshop-poster.jpg");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  padding-block: 4.25rem 3.5rem;
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 2.65rem;
}

.hero .lead {
  max-width: 62ch;
  color: #d5dbe1;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 2rem;
  color: #b9c2cc;
  font-size: 0.88rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta svg {
  width: 17px;
  height: 17px;
  color: #f5a269;
}

/* page hero (interior pages) */

.page-hero {
  color: #ffffff;
  background: var(--steel);
  background-image:
    linear-gradient(90deg, rgba(19, 23, 28, 0.9), rgba(31, 37, 44, 0.72)),
    url("../images/video-posters/injection-workshop-poster.jpg");
  background-position: center;
  background-size: cover;
}

.page-hero-inner {
  padding-block: 2.7rem 2.2rem;
}

.page-hero h1 {
  max-width: 24ch;
  color: #ffffff;
  font-size: 2rem;
}

.page-hero .lead {
  max-width: 68ch;
  color: #d5dbe1;
}

.breadcrumb {
  margin: 0 0 0.7rem;
  color: #b8c1ca;
  font-size: 0.82rem;
}

.breadcrumb a {
  color: #e6a26f;
}

/* cards and grids */

.grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

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

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

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

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--steel-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media.media-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.photo-pending {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 2px dashed #b7c0c9;
  border-radius: 6px;
  background: #eef1f3;
  color: #6b7076;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

/* certificate document gallery */
.cert-gallery {
  display: grid;
  gap: 1.6rem;
}

.cert-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cert-plate {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(14px, 2.2vw, 26px);
  background: #f1f3f4;
}

.cert-plate--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.cert-plate a {
  display: block;
  outline: 0;
}

.cert-plate a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cert-plate img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 640px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.cert-plate--pair img {
  max-height: 540px;
}

.cert-meta {
  padding: 1.1rem 1.3rem 1.35rem;
  border-top: 1px solid var(--line);
}

.cert-spec {
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-deep);
}

.cert-meta h3 {
  margin: 0 0 0.45rem;
}

.cert-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.card video {
  width: 100%;
  height: auto;
  display: block;
  background: #11151a;
  border-bottom: 1px solid var(--line);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.2rem 1.3rem;
}

.card-body h3 {
  margin: 0;
}

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

.card-link {
  margin-top: 0.55rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.card-link svg {
  width: 16px;
  height: 16px;
}

.icon-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.icon-panel .panel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-deep);
}

.icon-panel .panel-icon svg {
  width: 22px;
  height: 22px;
}

.icon-panel h3 {
  margin: 0;
  font-size: 1.05rem;
}

.section-dark .icon-panel h3,
.section-dark .icon-panel p {
  color: var(--ink);
}

.section-dark .icon-panel p {
  color: var(--muted);
}

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

/* chips and badges */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.chip-chip-dark {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #e8edf1;
}

.pending {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--amber-line);
  border-radius: 999px;
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.confirmed {
  border-color: #b9d5c5;
  background: #eef7f2;
  color: var(--success);
}

/* tables */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eaeef0;
  color: #4b545e;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fafbfc;
}

.table-scroll + .table-scroll,
.table-scroll + .notice,
.notice + .table-scroll {
  margin-top: 1rem;
}

/* lists and steps */

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 5px;
  background: #e8f4ee;
  color: var(--success);
  font-weight: 700;
  font-size: 0.75rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.2rem 1.25rem 1.2rem 4.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.2rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 0.3rem;
}

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

/* forms */

.form-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.88rem;
  font-weight: 700;
}

.form-row label .req {
  color: var(--accent-deep);
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

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

.form-status {
  display: none;
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

.form-status.visible {
  display: block;
}

.form-status.ok {
  background: #e8f4ee;
  border: 1px solid #b9d5c5;
  color: var(--success);
}

.form-status.err {
  background: #fdeeee;
  border: 1px solid #eab9b9;
  color: #a03434;
}

/* contact blocks */

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.contact-item .panel-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-deep);
}

.contact-item .panel-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item a {
  word-break: break-word;
}

/* WhatsApp floating button */

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(18, 90, 46, 0.35);
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #1eb457;
  text-decoration: none;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* masonry-like feature rows */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.split-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel-soft);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-note {
  padding: 0.55rem 0.8rem;
  background: #eef1f3;
  color: var(--muted);
  font-size: 0.78rem;
}

.video-stack {
  display: grid;
  gap: 1.5rem;
  max-width: 100%;
}

.video-stack .card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  object-fit: cover;
  display: block;
  background: #0d1116;
}

.split-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0d1116;
}

.split-media--doc {
  background: #f1f3f4;
}

.split-media--doc img {
  width: 100%;
  height: 100%;
  max-height: 430px;
  aspect-ratio: auto;
  object-fit: contain;
  background: #f1f3f4;
}

.split-media--doc a {
  display: block;
}

/* footer */

.site-footer {
  background: var(--steel);
  color: #cdd5dc;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 2rem;
  padding-block: 2.6rem;
}

.footer-grid h3 {
  margin: 0 0 0.7rem;
  color: #ffffff;
  font-size: 1rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: #c7d0d8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-note-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.1rem;
  color: #9da8b2;
  font-size: 0.8rem;
}

/* utilities */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-note { margin-top: 1rem; }
.hidden { display: none !important; }
.visually-hidden {
  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 {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #ffffff;
}

.skip-link:focus {
  left: 0;
}

/* responsive */

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.4rem 0 0.7rem;
  }

  .primary-nav .nav-cta {
    margin-left: 0;
    margin-top: 0.4rem;
    text-align: center;
  }

  .lang-switch {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: 2.4rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

    .cert-plate--pair {
      grid-template-columns: 1fr;
    }

    .cert-plate img,
    .cert-plate--pair img {
      max-height: none;
      width: 100%;
    }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .full {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-block: 3rem 2.5rem;
  }

  .page-hero-inner {
    padding-block: 2.2rem 1.8rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* single-product category: photo card beside a short capability column, so the
   row does not leave two thirds of the page empty */
.cat-notes {
  padding: 1.6rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  align-self: center;
}

.cat-notes h3 {
  margin: 0 0 .7rem;
  font-size: 1.05rem;
}

.cat-notes ul {
  margin: 0;
  padding-left: 1.05rem;
}

.cat-notes li {
  margin-bottom: .45rem;
  color: var(--muted);
  line-height: 1.6;
}

/* FAQ: native disclosure so answers are readable without JavaScript and
   found by search engines */
.faq-list {
  max-width: 900px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-weight: 600;
  color: var(--accent);
  flex: none;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: .7rem 0 0;
  color: var(--muted);
}

/* commercial terms: label / value rows */
.terms-table {
  width: 100%;
  border-collapse: collapse;
}

.terms-table th,
.terms-table td {
  text-align: left;
  vertical-align: top;
  padding: .85rem .9rem;
  border-bottom: 1px solid var(--line);
}

.terms-table th {
  width: 200px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface, #f6f6f4);
}

.terms-table td {
  color: var(--muted);
}

@media (max-width: 720px) {
  .terms-table {
    display: block;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }

  .terms-table tbody,
  .terms-table tr,
  .terms-table th,
  .terms-table td {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .terms-table td,
  .terms-table th {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .terms-table th {
    border-bottom: 0;
    padding-bottom: .2rem;
    background: transparent;
  }

  .terms-table td {
    padding-top: 0;
  }

  .terms-table tr {
    border-bottom: 1px solid var(--line);
    padding: .8rem 0;
  }

  .terms-table th,
  .terms-table td {
    border-bottom: 0;
  }
}

/* product model cards: real photographs, consistent crop, spec rows */
.card-media--contain {
  background: #fff;
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  padding: 8px;
}

.card-media--contain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.model-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.model-specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 0.8rem;
  margin: 0.45rem 0 0;
  font-size: 0.87rem;
  line-height: 1.5;
}

.model-specs dt {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.model-specs dd {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 480px) {
  .model-specs {
    grid-template-columns: 1fr;
    gap: 0.1rem 0;
  }

  .model-specs dd {
    margin-bottom: 0.45rem;
  }
}

/* keep model cards in the same row the same height */
#low-cut-safety-shoes .grid,
#mid-cut-safety-shoes .grid,
#sport-safety-shoes .grid {
  align-items: stretch;
}

/* homepage category cards: keep all four media boxes 4:3 so rows match */
.card-media--contain.is-43 {
  aspect-ratio: 4 / 3;
}

/* ---- language switcher (4 locales) ---- */
.lang-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.2rem 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  flex: none;
  margin-left: auto;
}

.lang-nav a {
  display: inline-block;
  padding: 0.2rem 0.42rem;
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.lang-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.lang-nav a.is-current {
  background: rgba(255, 255, 255, 0.26);
}

@media (max-width: 640px) {
  .lang-nav {
    padding: 0.15rem 0.2rem;
  }
  .lang-nav a {
    padding: 0.18rem 0.34rem;
    font-size: 0.72rem;
  }
}

/* ---- RTL (Arabic) ---- */
[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] ul,
[dir="rtl"] ol {
  padding-left: 0;
  padding-right: 1.4rem;
}

[dir="rtl"] .nav-toggle {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .lang-nav {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .primary-nav .nav-cta {
  margin-left: 0;
  margin-right: 0.55rem;
}

[dir="rtl"] th,
[dir="rtl"] td,
[dir="rtl"] .terms-table th,
[dir="rtl"] .terms-table td {
  text-align: right;
}

[dir="rtl"] .check-list li {
  padding-left: 0;
  padding-right: 1.8rem;
}

[dir="rtl"] .check-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .cat-notes ul {
  padding-left: 0;
  padding-right: 1.05rem;
}

[dir="rtl"] .btn svg,
[dir="rtl"] .eyebrow svg {
  transform: scaleX(-1);
}

[dir="rtl"] .skip-link {
  left: auto;
  right: -9999px;
}

[dir="rtl"] .skip-link:focus {
  right: 0;
}

/* ---- language dropdown (7 locales) ---- */
.lang-menu {
  position: relative;
  flex: none;
  margin-left: auto;
}

.lang-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary::after {
  content: "▾";
  font-size: 0.7rem;
  opacity: 0.85;
}

.lang-menu[open] summary {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.lang-menu ul {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 190px;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: #1a1e24;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  z-index: 60;
}

.lang-menu ul li a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 5px;
  color: #ffffff;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.lang-menu ul li a:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.lang-menu ul li a.is-current {
  background: rgba(255, 255, 255, 0.22);
}

[dir="rtl"] .lang-menu {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .lang-menu ul {
  right: auto;
  left: 0;
}

/* ---- header fit for long-language navs ---- */
@media (min-width: 1200px) {
  .header-inner {
    flex-wrap: nowrap;
  }
  .primary-nav ul {
    gap: 0;
  }
  .primary-nav a {
    padding: 0.5rem 0.5rem;
    font-size: 0.88rem;
  }
  .brand-tag {
    display: none;
  }
  .lang-menu {
    margin-left: 0.4rem;
  }
}

@media (min-width: 981px) and (max-width: 1199px) {
  .brand-tag {
    display: none;
  }
  .lang-menu {
    order: 2;
  }
  .primary-nav {
    order: 3;
    flex-basis: 100%;
  }
  .primary-nav ul {
    gap: 0;
  }
  .primary-nav a {
    padding: 0.45rem 0.45rem;
    font-size: 0.86rem;
  }
}

@media (min-width: 1200px) {
  .primary-nav a {
    padding: 0.46rem 0.44rem;
    font-size: 0.85rem;
  }
  .primary-nav .nav-cta {
    margin-left: 0.4rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .lang-menu {
    margin-left: 0.3rem;
  }
}

/* RTL：数字串与拉丁地址按自身方向排布，避免电话号码、邮编顺序倒置 */
[dir="rtl"] .terms-table td,
[dir="rtl"] .terms-table th,
[dir="rtl"] .contact-list dd,
[dir="rtl"] .contact-list .value {
  unicode-bidi: plaintext;
}

[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

[dir="rtl"] input,
[dir="rtl"] textarea {
  direction: rtl;
}

[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="tel"] {
  direction: ltr;
  text-align: right;
}
