/* ATC visual refresh: user-provided brand and bearing imagery. */
.brand img {
  display: block;
  width: 112px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.brand strong { font-size: 14px; }
.brand small { font-size: 10px; }

/* Clearer navigation and language controls for international customers. */
.site-header {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 28px rgba(18, 63, 115, .08);
  backdrop-filter: blur(10px);
}
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0 72%, var(--lime) 72% 100%);
}
.header-actions { display: flex; align-items: center; gap: 20px; }
.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f7fb;
}
.language-switch a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 54px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.language-switch .flag { font-size: 14px; line-height: 1; }
.language-divider { align-self: center; color: #9aa7b9; font-size: 12px; font-weight: 900; }
.language-switch a.active { background: var(--green); color: white; box-shadow: 0 3px 9px rgba(18, 63, 115, .24); }
.main-nav a { position: relative; }
.main-nav > a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -8px;
  left: 50%;
  height: 2px;
  background: var(--green);
  transition: right .2s ease, left .2s ease;
}
.main-nav > a:hover::after { right: 0; left: 0; }

.auth-visual {
  min-height: 590px;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: clamp(30px, 5vw, 62px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 30, 60, .08), rgba(8, 30, 60, .92)),
    url('/static/bearings-hero.jpeg') center / cover;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: inherit;
  pointer-events: none;
}

.auth-copy { position: relative; z-index: 1; color: white; }
.auth-visual p { color: rgba(255, 255, 255, .8); }
.auth-visual .eyebrow { color: var(--lime); }
.auth-visual li::before { color: var(--lime); }

/* Layout B is a distinct catalogue composition, not a recolour of the old page. */
.catalog-layout-b { display: grid; gap: 26px; }
.catalog-hero-b {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(520px, 1.18fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  min-height: 320px;
  padding: clamp(34px, 5vw, 68px);
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 166, 223, .43), transparent 34%),
    linear-gradient(120deg, #003a70 0%, #005198 62%, #0879b9 100%);
  color: white;
  box-shadow: 0 24px 60px rgba(0, 58, 112, .24);
}
.catalog-hero-b::after {
  content: "";
  position: absolute;
  right: -95px;
  bottom: -170px;
  width: 390px;
  height: 390px;
  border: 62px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  pointer-events: none;
}
.catalog-hero-copy { position: relative; z-index: 1; max-width: 560px; }
.catalog-hero-copy h1 { margin: 13px 0 18px; color: white; font-size: clamp(42px, 4.7vw, 68px); }
.catalog-hero-copy .eyebrow { color: #85ddf5; }
.catalog-hero-copy p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 17px; line-height: 1.55; }
.search-tools-b {
  position: relative;
  z-index: 2;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 42px rgba(0, 42, 83, .24);
}
.search-tools-b .search-bar { min-width: 0; grid-template-columns: minmax(240px, 1fr) 180px auto; }
.search-tools-b input,
.search-tools-b select { min-height: 50px; border-color: #aec4d5; }
.catalog-search-button {
  min-width: 112px;
  min-height: 50px;
  border-radius: 6px;
  background: #00a6df;
  color: #002f5c;
  font-weight: 900;
}
.catalog-search-button:hover { background: #79d7f3; }
.search-hint { margin: 12px 2px 0; color: #557083; font-size: 12px; line-height: 1.45; }
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid #c9dbe9;
  border-left: 5px solid var(--green);
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 81, 152, .06);
}
.catalog-toolbar div { display: grid; gap: 4px; }
.catalog-toolbar strong { font-size: 16px; }
.catalog-toolbar div span { color: var(--muted); font-size: 12px; }
.view-label { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #e8f3fb; color: var(--green); font-size: 11px; font-weight: 900; }

.product-placeholder,
.detail-placeholder {
  position: relative;
  overflow: hidden;
  background: #dfe6ee;
  color: white;
}

.product-placeholder { height: 195px; }
.product-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.product-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 35, 55, .04), rgba(10, 35, 55, .2));
}
.product-placeholder span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(10, 35, 55, .76);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.product-card:hover .product-placeholder img { transform: scale(1.04); }
.product-card-b {
  min-height: 525px;
  border-top: 4px solid var(--green);
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(18, 63, 115, .06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card-b:hover {
  border-color: #b9c9dd;
  border-top-color: var(--lime);
  box-shadow: 0 18px 38px rgba(18, 63, 115, .14);
  transform: translateY(-4px);
}
.product-card-b.on-request-card { border-top-color: #c28a20; }
.product-card-b.on-request-card:hover { border-top-color: #9b6a12; }
.product-card-b h2 { margin: 18px 0 8px; font-size: 25px; }
.product-card-b h2 a:hover { color: var(--green); }
.product-card-b .product-content { padding: 22px; }
.product-signals { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-signals .ready-stock { margin: 0 !important; }
.card-description { min-height: 42px; margin: 0 0 14px; }
.card-package {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto !important;
  margin: auto 0 0 !important;
  padding: 13px 0;
  border-top: 1px solid #dce7ef;
  border-bottom: 1px solid #dce7ef;
}
.card-package > span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.product-purchase { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; margin-top: 18px; }
.add-to-cart-button {
  min-width: 128px;
  min-height: 48px;
  gap: 12px;
  border-radius: 7px;
  background: var(--green);
  color: white;
  box-shadow: 0 9px 20px rgba(0, 81, 152, .24);
}
.add-to-cart-button span { font-size: 20px; line-height: 1; }
.add-to-cart-button:hover { background: var(--green-2); transform: translateY(-2px); }
.request-product-button {
  min-width: 128px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c28a20;
  border-radius: 7px;
  background: #fff8e8;
  color: #805e16;
  font-weight: 900;
}
.request-product-button:hover { background: #f8e7bf; color: #60450f; transform: translateY(-2px); }
.icon-button { box-shadow: 0 8px 18px rgba(0, 81, 152, .25); transition: transform .2s ease, box-shadow .2s ease; }
.icon-button:hover { background: var(--lime); box-shadow: 0 11px 23px rgba(0, 166, 223, .34); transform: translateY(-2px) scale(1.04); }
.primary, .secondary, .button { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary:hover { box-shadow: 0 8px 20px rgba(18, 63, 115, .24); transform: translateY(-1px); }
.illustrative-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  margin: 0 !important;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: #53625c !important;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
}

.package-badge {
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .04em;
  white-space: nowrap;
}
.product-meta { align-items: center; }
.brand-badge {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 6px;
  background: #e5edf8;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}
.package-badge.single {
  background: #edf2f5;
  color: #425465;
}
.package-badge.industrial {
  background: var(--green);
  color: white;
}

.ready-stock {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: 10px 0 12px !important;
  padding: 8px 11px;
  border: 1px solid rgba(18, 63, 115, .18);
  border-radius: 7px;
  background: #edf3fb;
  font-size: 13px !important;
  font-weight: 900;
}
.ready-stock::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(18, 63, 115, .12);
}
.ready-stock.in-stock { color: var(--green); }
.ready-stock.on-request { color: #805e16; }
.ready-stock.on-request { border-color: #ead6a9; background: #fff8e8; }

.price-copy {
  display: grid;
  justify-items: start;
  gap: 2px;
}
.list-price-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.estimated-price-label {
  margin-top: 4px;
  color: #805e16;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.old-price { color: #2777ad; opacity: .78; }
.price-copy > strong { color: var(--green); }
.total-discount {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}
.price-copy .extra-discount {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.detail-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.detail-placeholder strong {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 8px 12px;
  border-radius: 5px;
  background: rgba(10, 35, 55, .8);
  font-size: 18px;
  letter-spacing: .08em;
}
.detail-placeholder { box-shadow: 0 22px 55px rgba(18, 63, 115, .15); }
.detail-buy {
  padding: 24px;
  border: 1px solid #d2ddeb;
  border-left: 4px solid var(--lime);
  border-radius: 12px;
  background: white;
  box-shadow: 0 12px 34px rgba(18, 63, 115, .08);
}
.availability-request {
  margin-top: 24px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 12px;
  border-top: 4px solid var(--lime);
  box-shadow: 0 16px 42px rgba(18, 63, 115, .1);
}
.availability-request-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.availability-request-head h2 {
  margin: 7px 0 8px;
  font-size: clamp(23px, 2vw, 30px);
}
.availability-request-head p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.availability-current {
  min-width: 130px;
  padding: 14px 18px;
  border: 1px solid #b9d9ed;
  border-radius: 10px;
  background: #eaf6fc;
  text-align: center;
}
.availability-current span,
.availability-current small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.availability-current strong {
  display: block;
  margin: 3px 0;
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}
.request-form {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding-top: 22px;
}
.request-form label {
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: 13px;
  font-weight: 800;
}
.request-form label small,
.request-submit small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}
.request-notes textarea {
  min-height: 98px;
  resize: vertical;
}
.request-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 2px;
}
.request-submit .primary {
  min-width: 230px;
}
.facts div { border-radius: 8px; background: rgba(255,255,255,.7); }
.facts { flex-wrap: wrap; }
.facts .fact-highlight {
  border-width: 2px;
  box-shadow: 0 8px 22px rgba(18, 63, 115, .07);
}
.facts .brand-fact { border-color: #b9cae0; background: #f1f5fb; }
.facts .stock-fact { border-color: #a9bfdb; background: #eaf1fa; }
.facts .package-fact { border-color: #c8d2da; background: #f2f5f7; }
.facts .fact-highlight dd { color: var(--green); font-size: 16px; }
.auth-card { border-top: 4px solid var(--lime); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,81,152,.16); }
.order-summary { border-radius: 12px; }
.weight-summary {
  margin: 4px -10px;
  padding: 16px 10px;
  border-radius: 8px;
  background: #e8f3fb;
  color: var(--green);
}
.weight-summary strong { font-size: 18px; }
.site-footer { position: relative; border-top: 4px solid var(--green); background: white; }
.site-footer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 18%;
  height: 4px;
  background: var(--lime);
}

/* Layout B: three editorial cards on desktop, two on tablet, one on mobile. */
.product-grid-b { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card:nth-child(3n + 2) { border-top-color: var(--lime); }
.product-card:nth-child(3n + 2):hover { border-top-color: var(--green); }

@media (max-width: 860px) {
  .header-actions { align-items: flex-end; flex-direction: column-reverse; gap: 10px; }
  .catalog-hero-b { grid-template-columns: 1fr; min-height: 0; }
  .search-tools-b .search-bar { grid-template-columns: 1fr 1fr; }
  .search-tools-b .search-bar input { grid-column: 1 / -1; }
  .auth-visual { min-height: 500px; }
  .product-grid-b { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .brand img { width: 100px; height: 42px; }
  .auth-visual { min-height: 480px; padding: 28px; }
  .catalog-hero-b { padding: 30px 20px; border-radius: 12px; }
  .catalog-hero-copy h1 { font-size: 40px; }
  .search-tools-b { padding: 14px; }
  .search-tools-b .search-bar { grid-template-columns: 1fr; }
  .search-tools-b .search-bar input { grid-column: auto; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .product-meta { align-items: flex-start; }
  .package-badge { white-space: normal; text-align: right; }
  .header-actions { align-items: flex-start; margin-top: 14px; }
  .language-switch { position: absolute; top: 18px; right: 20px; }
  .detail-buy { padding: 20px; }
  .availability-request { padding: 20px; }
  .availability-request-head,
  .request-form { grid-template-columns: 1fr; }
  .availability-current { text-align: left; }
  .availability-current strong,
  .availability-current small { display: inline-block; margin-right: 4px; }
  .request-submit { display: grid; grid-column: auto; }
  .request-submit .primary { width: 100%; min-width: 0; }
  .product-grid-b { grid-template-columns: 1fr; }
  .product-purchase { grid-template-columns: 1fr; }
  .add-to-cart-button,
  .request-product-button { width: 100%; }
}
