/*
 * BioScope B2B — brand token overrides
 * Завантажується ПІСЛЯ theme/default/stylesheet/stylesheet.css
 * Перевизначає кольори/бренд; layout/spacing/state-токени не змінені.
 *
 * default-токени, які НАВМИСНО не змінені тут:
 *   --input-border-color, --link-color, --link-color-hover
 *   --breadcrumb-*, --header-top-language-*
 *   --header-schedule-color, --header-counter-*, --header-horizontal-menu-*
 *   --footer-*, --button-secondary-*, --product-report-avail-*
 *   --product-thumb-*, --instock-status-color, --outstock-status-color
 *   --advantage-*, --category-thumb-color, --size-*
 */

/* Full-bleed B2B modules use 100vw; prevent the scrollbar width from creating
 * a horizontal page scroll on desktop and mobile. */
html,
body {
  overflow-x: hidden;
}

:root {
  /* ── QINETIQ brand palette — затверджено клієнтом 2026-08 ── */

  /* Іменовані токени бренду */
  --qinetiq-green:      #3F7A22;  /* затверджено клієнтом 2026-08 */
  --qinetiq-green-hover: #35661C;
  --qinetiq-green-tint:  #EAF3DE;
  --qinetiq-lime-neon:   #8FFF3D;  /* лише для темного hero */
  --qinetiq-graphite:    #24262B;
  --qinetiq-bg-light:    #F7F8F6;

  /* Шапка */
  --header-top-background:            #3F7A22;  /* default: #000000 */
  --header-top-link-color:            #FFFFFF;  /* default: #999 — невидимий на зеленому фоні (1.8:1), білий = 4.7:1 AA ✓ */
  --header-top-link-hover-color:      rgba(255, 255, 255, 0.75);  /* default: #666 */
  --header-catalog-button-color:      #3F7A22;  /* default: #000000 */

  /* Primary-кнопки (Оформити замовлення, підтвердити тощо) */
  --button-primary-color:             #3F7A22;  /* default: #000000 */
  --button-primary-color-hover:       #35661C;  /* default: #222222 */

  /* Кнопка «Купити» на картці товару */
  --product-buy-button-color:         #3F7A22;  /* default: #195850 */
  --product-buy-button-color-hover:   #35661C;  /* default: #307C73 */

  /* Кнопка «Швидке замовлення» — трохи темніший зелений для візуального відмежування */
  --product-fast-order-button-color:       #35661C;  /* default: #3A020B */
  --product-fast-order-button-color-hover: #2A5116;  /* default: #700213 */

  /* Кнопка «Фільтр застосувати» */
  --filter-button-color:              #3F7A22;  /* default: #000 */
  --filter-button-color-hover:        #35661C;  /* default: #222 */
}

/* ── QINETIQ B2B surface language ───────────────────────────────────── */
body {
  color: var(--qinetiq-graphite);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
}

/* The default footer stays functionally shared, but carries the B2B brand. */
footer {
  margin-top: 0;
  background: var(--qinetiq-graphite);
  color: rgba(255,255,255,.78);
}
footer h6 {
  color: var(--qinetiq-lime-neon);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
footer a,
footer .link-list a {
  color: rgba(255,255,255,.78);
  transition: color .18s ease;
}
footer a:hover,
footer .link-list a:hover {
  color: #fff;
}
footer .footer-bottom {
  background: #1d1f23;
  border-top: 1px solid rgba(255,255,255,.12);
}
footer .footer-copyright,
footer .footer-developer {
  color: rgba(255,255,255,.58);
}
footer #footerMobile .accordion-item,
footer #footerMobile .accordion-button,
footer #footerMobile .accordion-collapse {
  background: var(--qinetiq-graphite);
  color: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.12);
}
footer #footerMobile .accordion-button:not(.collapsed) {
  color: var(--qinetiq-lime-neon);
  box-shadow: none;
}
footer #footerMobile .accordion-button {
  min-height: 52px;
  font-weight: 700;
}
footer #footerMobile .accordion-button::after {
  filter: invert(1) brightness(1.35);
  opacity: .72;
}
footer #footerMobile .accordion-button:focus {
  border-color: rgba(143, 255, 61, .35);
  box-shadow: 0 0 0 .2rem rgba(143, 255, 61, .12);
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
  footer {
    padding-bottom: 64px;
  }
  .bottom-mobile-menu {
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top-color: rgba(31, 54, 36, 0.12);
    box-shadow: 0 -8px 24px rgba(31, 54, 36, 0.08);
  }
  .bottom-mobile-menu-item {
    min-height: 64px;
    color: var(--qinetiq-graphite);
    transition: color .18s ease, background .18s ease;
  }
  .bottom-mobile-menu-item:hover,
  .bottom-mobile-menu-item:focus {
    background: rgba(234, 243, 222, 0.7);
    color: var(--qinetiq-green);
  }
  #product-category .category-mobile-nav,
  #product-catalog .category-mobile-nav {
    margin-bottom: 18px !important;
  }
  #product-category .category-mobile-nav > .row,
  #product-catalog .category-mobile-nav > .row {
    --bs-gutter-x: 12px;
    row-gap: 10px;
    margin-left: 0;
    margin-right: 0;
  }
  #product-category .category-mobile-nav > .row > [class^='col'],
  #product-catalog .category-mobile-nav > .row > [class^='col'] {
    padding-left: 0;
    padding-right: 0;
  }
  #product-category .category-mobile-nav > .row > [class^='col']:first-child,
  #product-catalog .category-mobile-nav > .row > [class^='col']:first-child {
    padding-right: 6px;
  }
  #product-category .category-mobile-nav > .row > [class^='col']:last-child,
  #product-catalog .category-mobile-nav > .row > [class^='col']:last-child {
    padding-left: 6px;
  }
  #product-category .product-row,
  #product-catalog .product-row {
    margin-top: 22px;
  }
}

/* B2B: wishlist прибрано — ховаємо іконки в хедері (default-шаблон не чіпаємо) */
.wishlist-icon { display: none !important; }

/* ── B2B access CTA: one branded treatment across product cards, PDP and alerts ── */
.b2b-access-cta,
.product-thumb .b2b-gate-notice a,
#product-product .product-info .b2b-gate-notice a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--qinetiq-green) !important;
  border-radius: 6px;
  background: var(--qinetiq-green) !important;
  color: #fff !important;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none !important;
  white-space: normal;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.b2b-access-cta:hover,
.b2b-access-cta:focus,
.product-thumb .b2b-gate-notice a:hover,
.product-thumb .b2b-gate-notice a:focus,
#product-product .product-info .b2b-gate-notice a:hover,
#product-product .product-info .b2b-gate-notice a:focus {
  border-color: var(--qinetiq-green-hover) !important;
  background: var(--qinetiq-green-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(63, 122, 34, 0.18);
}
.b2b-access-cta:active,
.product-thumb .b2b-gate-notice a:active,
#product-product .product-info .b2b-gate-notice a:active {
  transform: translateY(0);
  box-shadow: none;
}
.b2b-access-cta-inline {
  min-height: 32px;
  margin-left: 8px;
  padding: 7px 12px;
  vertical-align: middle;
}

/* ── Header navigation: curated B2B menu with more categories ── */
header .horizontal-menu {
  overflow-x: auto;
  scrollbar-width: none;
}
header .horizontal-menu::-webkit-scrollbar {
  display: none;
}
header .horizontal-menu .list-full-width {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(18px, 2.1vw, 30px);
  justify-content: flex-start;
  text-align: left !important;
  text-align-last: auto;
  white-space: nowrap;
}
header .horizontal-menu li {
  margin-right: 0 !important;
}
header .horizontal-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.2;
  transition: color .18s ease;
}
header .horizontal-menu li.active > a {
  color: var(--qinetiq-green);
}
header .horizontal-menu li.active > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--qinetiq-green);
}

/* ── Product listing: B2B card grid instead of legacy table borders ── */
#product-category,
#product-catalog {
  padding-bottom: 32px;
}
#product-category .product-row,
#product-catalog .product-row,
#common-home .product-row {
  --bs-gutter-x: 18px;
  --bs-gutter-y: 18px;
  border-left: 0;
  margin-bottom: 36px;
}
#product-category .product-row > div[class^='col'],
#product-catalog .product-row > div[class^='col'],
#common-home .product-row > div[class^='col'] {
  border: 0;
  margin-bottom: 0;
}

.product-thumb {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px 16px 18px;
  border: 1px solid rgba(36, 38, 43, .08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 38, 43, .04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.product-thumb:hover {
  border-color: rgba(63, 122, 34, .24);
  box-shadow: 0 16px 36px rgba(36, 38, 43, .10);
  transform: translateY(-2px);
}
.product-thumb > a:first-of-type {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin: -2px -2px 12px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fafbf8 0%, #f1f3ee 100%);
  overflow: hidden;
}
.product-thumb > a:first-of-type img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* ── Product cards: stable two-line title area ── */
.product-thumb a.product-name {
  display: -webkit-box;
  box-sizing: border-box;
  height: calc(2 * 1.35em);
  min-height: calc(2 * 1.35em);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  color: var(--qinetiq-graphite);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.product-thumb .caption {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.product-thumb .product-price {
  min-height: 58px;
  margin-top: 12px;
  font-size: 13px;
}
.product-thumb .b2b-rrp {
  color: #5d6258;
  font-weight: 600;
}
.product-thumb .b2b-gate-notice {
  margin-top: 8px !important;
  color: var(--qinetiq-green) !important;
}
.product-thumb .b2b-access-cta,
.product-thumb .b2b-gate-notice a {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 750;
}
.product-thumb .b2b-pending-notice {
  color: #7a8174;
  font-weight: 600;
}
.product-view-button {
  margin-top: 8px;
  width: 100%;
  border: 1px solid rgba(63, 122, 34, .25);
  border-radius: 6px;
  background: var(--qinetiq-green-tint);
  color: var(--qinetiq-green);
  font-size: 13px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.product-view-button:hover,
.product-view-button:focus {
  border-color: var(--qinetiq-green);
  background: var(--qinetiq-green);
  color: #fff;
}

/* Product gallery: keep the source image intact on narrow screens. */
#product-product .product-images {
  position: relative;
  top: auto;
  width: 100%;
}
#product-product .mySwiper2 {
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
#product-product .mySwiper2 .swiper-wrapper,
#product-product .mySwiper2 .swiper-slide,
#product-product .mySwiper2 .swiper-zoom-container {
  height: 100%;
}
#product-product .mySwiper2 .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

#product-product .product-info > div:first-child {
  border: 1px solid rgba(31, 54, 36, 0.12) !important;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 54, 36, 0.08);
  padding: 22px !important;
}

#product-product .product-info .mb-2:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px !important;
}

#product-product .stock-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

#product-product .product-sku {
  float: none !important;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  background: rgba(31, 54, 36, 0.06);
  color: #59635b;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

#product-product .product-price {
  margin-bottom: 0;
}

#product-product .price-block {
  width: 100%;
  border-radius: 8px;
  background: rgba(234, 243, 222, 0.62);
  border: 1px solid rgba(63, 122, 34, 0.14);
  padding: 16px;
}

#product-product .price-block .h1 {
  margin: 4px 0 8px;
  color: var(--qinetiq-graphite);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
  font-weight: 800;
}

#product-product .product-info .b2b-gate-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 0 !important;
}

#product-product .product-info .b2b-gate-notice p {
  margin: 0;
  color: #435044 !important;
  font-size: 14px !important;
  font-weight: 600;
}

#product-product .product-info .b2b-access-cta,
#product-product .product-info .b2b-gate-notice a {
  min-height: 38px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 800;
}

#product-product .product-buy-button,
#product-product .product-fast-order-button,
#product-product .product-info .btn-outline-secondary {
  min-height: 44px;
  border-radius: 6px;
  font-weight: 800;
  white-space: normal;
}

#product-product .product-info .btn-outline-secondary {
  border-color: rgba(31, 54, 36, 0.28);
  color: var(--qinetiq-graphite);
  background: #fff;
}

#product-product .product-info .btn-outline-secondary:hover,
#product-product .product-info .btn-outline-secondary:focus {
  border-color: var(--qinetiq-green);
  color: var(--qinetiq-green);
  background: rgba(234, 243, 222, 0.55);
}

#product-product .product-delivery,
#product-product .list-group-item,
#product-product #accordion {
  border: 1px solid rgba(31, 54, 36, 0.12) !important;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 54, 36, 0.05);
}

#product-product .product-delivery {
  padding: 18px !important;
}

#product-product .product-delivery h4,
#product-product .list-group-item h4 {
  color: var(--qinetiq-graphite);
  letter-spacing: 0;
}

#product-product .product_pay__card {
  border-color: rgba(31, 54, 36, 0.12) !important;
  background: rgba(31, 54, 36, 0.025);
}

#product-product .product_pay__cards {
  grid-template-columns: repeat(5, minmax(58px, 76px)) !important;
  gap: 10px !important;
}

#product-product .product_pay__card {
  width: 76px !important;
  height: 44px !important;
  padding: 6px 10px !important;
  overflow: visible;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

#product-product .product_pay__card .svg_icon {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 22px;
  overflow: visible;
}

#product-product .product_pay__card .svg_icon--visa {
  width: 54px !important;
  max-height: 20px;
}

#product-product .share-block {
  display: none !important;
}

#product-product .product_pay__card:hover {
  border-color: rgba(63, 122, 34, 0.3) !important;
  background: rgba(234, 243, 222, 0.45);
  transform: translateY(-1px);
}

#product-product #accordion {
  overflow: hidden;
}

#product-product #accordion .accordion-button {
  color: var(--qinetiq-graphite);
  font-weight: 700;
}

#product-product .product-variations {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 54, 36, 0.1);
}

#product-product .product-variations h3 {
  margin-bottom: 14px !important;
  color: var(--qinetiq-graphite);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

#product-product .product-variation-group + .product-variation-group {
  margin-top: 16px;
}

#product-product .product-variation-group .control-label {
  margin-bottom: 8px;
  color: #59635b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#product-product .product-variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#product-product .product-variation-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 36px;
  border: 1px solid rgba(31, 54, 36, 0.14);
  border-radius: 6px;
  background: #fff;
  color: var(--qinetiq-graphite);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

#product-product .product-variation-option label {
  margin: 0;
  padding: 8px 12px;
  cursor: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

#product-product a.product-variation-option:hover,
#product-product a.product-variation-option:focus {
  border-color: rgba(63, 122, 34, 0.42);
  background: var(--qinetiq-green-tint);
  color: var(--qinetiq-green);
  transform: translateY(-1px);
}

#product-product .product-variation-option.active {
  border-color: var(--qinetiq-green);
  background: var(--qinetiq-green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(63, 122, 34, 0.18);
}

#product-product .product-variation-options-image .product-variation-option {
  width: 58px;
  height: 58px;
  min-width: 58px;
  overflow: hidden;
}

#product-product .product-variation-options-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

@media (max-width: 767px) {
  #product-product .product-info,
  #product-product .product-images {
    position: relative;
    top: auto;
  }
  #product-product .mySwiper2 {
    margin: 0;
    aspect-ratio: 4 / 3;
  }
  #product-product .product-info > div:first-child {
    padding: 16px !important;
    box-shadow: 0 8px 20px rgba(31, 54, 36, 0.07);
  }
  #product-product .price-block {
    padding: 14px;
  }
  #product-product .product-info .b2b-gate-notice {
    align-items: stretch;
  }
  #product-product .product-info .b2b-gate-notice a {
    width: 100%;
    min-height: 44px;
  }
  #product-product {
    padding-bottom: 88px;
  }
  #product-product .product-variation-options {
    gap: 10px;
  }
  #product-product .product-variation-option {
    min-height: 40px;
  }
  #product-product .product-payment-list {
    display: block;
  }
  #product-product .product_pay__cards {
    grid-template-columns: repeat(3, minmax(54px, 1fr)) !important;
  }
  #product-product .product_pay__card {
    width: 100% !important;
  }
}

/* ── "Швидке замовлення" — outline style ── */
.product-fast-order-button {
  background: transparent !important;
  border: 2px solid var(--qinetiq-green) !important;
  color: var(--qinetiq-green) !important;
}
.product-fast-order-button:hover {
  background: var(--qinetiq-green) !important;
  border-color: var(--qinetiq-green) !important;
  color: #fff !important;
}

/* ── Direction cards: first card gets filled accent (others stay bordered) ── */
.b2b-directions .row > div:first-child .b2b-direction-card {
  background-color: var(--qinetiq-green) !important;
  border-color: var(--qinetiq-green) !important;
}
.b2b-directions .row > div:first-child .b2b-direction-card .b2b-direction-title,
.b2b-directions .row > div:first-child .b2b-direction-card .b2b-direction-desc {
  color: #fff !important;
}
.b2b-directions .row > div:first-child .b2b-direction-card svg rect[fill="var(--button-primary-color)"],
.b2b-directions .row > div:first-child .b2b-direction-card svg [stroke="var(--button-primary-color)"] {
  stroke: rgba(255,255,255,.9);
}
.b2b-directions .row > div:first-child .b2b-direction-card .b2b-direction-cta {
  background-color: #fff !important;
  color: var(--qinetiq-green) !important;
}
.b2b-directions .row > div:first-child .b2b-direction-card .b2b-direction-cta:hover {
  background-color: rgba(255,255,255,.88) !important;
  color: var(--qinetiq-green) !important;
}

/* ── Category H1: distinct from breadcrumb nav ── */
#product-catalog .category-title,
#product-category .category-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--qinetiq-graphite);
  line-height: 1.2;
}

/* ─────────────────────────────────────────────────────────
   LEDGER FORM (register.twig — стиль 1a)
   ───────────────────────────────────────────────────────── */
.form-ledger-form { }

.form-ledger-wrap {
  background: #fff;
  padding: 26px 24px 28px;
  border: 1px solid rgba(31, 54, 36, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(31, 54, 36, 0.07);
}

.form-ledger-section {
  margin-bottom: 22px;
}

.form-ledger-title {
  font-size: 13.5px;
  color: var(--qinetiq-graphite);
  font-weight: 800;
  margin-bottom: 6px;
}

.form-ledger-divider {
  height: 1px;
  background: #DCDED8;
  margin-bottom: 2px;
}

.form-ledger-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #E2E4DE;
}

.form-ledger-row > label {
  font-size: 12.5px;
  color: #5B5F55;
  margin-bottom: 0;
  font-weight: 700;
}

.form-underline-input {
  border: none !important;
  border-bottom: 1px solid transparent !important;
  background: transparent !important;
  font-size: 13.5px !important;
  color: var(--qinetiq-graphite);
  padding: 2px 0 !important;
  width: 100%;
  outline: none !important;
  box-shadow: none !important;
  transition: border-bottom-color .15s;
}

.form-underline-input:focus {
  border-bottom-color: var(--qinetiq-green) !important;
  box-shadow: none !important;
  outline: none !important;
}

.form-ledger-row:focus-within {
  border-bottom-color: rgba(63, 122, 34, 0.45);
  background: rgba(234, 243, 222, 0.28);
  margin-left: -10px;
  margin-right: -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 6px;
}

.form-ledger-row .text-danger {
  margin-top: 5px;
  color: #b42318 !important;
  font-weight: 700;
}

.b2b-notice {
  border: 1px solid rgba(63, 122, 34, 0.22);
  border-radius: 8px;
  background: rgba(234, 243, 222, 0.72);
  color: #435044;
}

.b2b-btn-register {
  min-height: 44px;
  border: 1px solid var(--qinetiq-green) !important;
  border-radius: 6px;
  background: var(--qinetiq-green) !important;
  color: #fff !important;
  padding: 11px 18px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.b2b-btn-register:hover,
.b2b-btn-register:focus {
  border-color: var(--qinetiq-green-hover) !important;
  background: var(--qinetiq-green-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(63, 122, 34, 0.2);
}
.b2b-btn-register:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 767px) {
  .form-ledger-wrap {
    padding: 18px 16px 20px;
  }
  .form-ledger-row {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }
  .form-ledger-row > label {
    font-size: 12px;
  }
  .b2b-btn-register {
    width: 100%;
  }
}

/* select keeps a bottom underline for cross-browser visibility */
.form-underline-select {
  border: none !important;
  border-bottom: 1px solid #C7CBC0 !important;
  background: transparent !important;
  font-size: 13.5px !important;
  color: var(--qinetiq-graphite);
  padding: 2px 0 !important;
  width: 100%;
  outline: none !important;
  box-shadow: none !important;
  transition: border-bottom-color .15s;
  /* keep native arrow in all browsers */
  -webkit-appearance: auto;
  appearance: auto;
}

.form-underline-select:focus {
  border-bottom-color: var(--qinetiq-green) !important;
  box-shadow: none !important;
  outline: none !important;
}

.form-ledger-textarea {
  border: none !important;
  background: transparent !important;
  font-size: 13.5px !important;
  color: var(--qinetiq-graphite);
  padding: 0 !important;
  width: 100%;
  box-sizing: border-box;
  resize: none;
  height: 36px;
  outline: none !important;
  transition: border-bottom-color .15s;
}

.form-ledger-textarea:focus {
  outline: none !important;
  border-bottom: 1px solid var(--qinetiq-green) !important;
}

/* ─────────────────────────────────────────────────────────
   CORPORATE RFQ (corporate.twig — стиль 2b, ієрархія)
   ───────────────────────────────────────────────────────── */

/* Primary fields: company + goods — larger, 1.5px underline */
.rfq-primary-group .form-control {
  font-size: 16px !important;
  border: none !important;
  border-bottom: 1.5px solid #C7CBC0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 6px 0 !important;
  box-shadow: none !important;
}

.rfq-primary-group .form-label {
  font-size: 13.5px;
  color: #5B5F55;
}

.rfq-primary-group .form-control:focus {
  box-shadow: none !important;
  border-bottom-color: var(--qinetiq-green) !important;
}

/* Secondary fields: contacts + details — smaller, 1px underline, 2-col */
.rfq-secondary-group .form-control {
  font-size: 13px !important;
  border: none !important;
  border-bottom: 1px solid #D8DAD4 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
}

.rfq-secondary-group .form-label {
  font-size: 12px;
  color: #767A6F;
}

.rfq-secondary-group .form-control:focus {
  box-shadow: none !important;
  border-bottom-color: var(--qinetiq-green) !important;
}

/* file inputs keep their default boxed look in both groups */
.rfq-primary-group input[type="file"].form-control,
.rfq-secondary-group input[type="file"].form-control {
  border: 1px solid #D8DAD4 !important;
  border-radius: 4px !important;
  background: #fff !important;
  padding: .375rem .75rem !important;
}

/* ─────────────────────────────────────────────────────────
   FURNITURE RFQ (furniture.twig — стиль 3a, теплий)
   ───────────────────────────────────────────────────────── */

.rfq-furn-warm-form {
  background: #F9F5EE !important;
}

/* Underline-only inputs — overrides stylesheet.css !important on input, textarea */
.rfq-furn-warm-form .form-control:not([type="file"]) {
  font-size: 13.5px !important;
  border: none !important;
  border-bottom: 1px solid #C7CBC0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 6px 0 !important;
  box-shadow: none !important;
}

.rfq-furn-warm-form .form-control:not([type="file"]):focus {
  border-bottom-color: var(--qinetiq-green) !important;
  box-shadow: none !important;
}

/* File input keeps boxed look */
.rfq-furn-warm-form input[type="file"].form-control {
  border: 1px solid #D8DAD4 !important;
  border-radius: 4px !important;
  background: #fff !important;
  padding: .375rem .75rem !important;
}

.rfq-furn-serif-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

/* Material swatches */
.material-swatch-row {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.material-swatch {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  border: 2.5px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.material-swatch:focus {
  outline: none;
}

.material-swatch.selected {
  border-color: var(--qinetiq-green);
}

.material-swatch-other {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  border: 1px dashed #C9C1AE;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #8A8574;
  cursor: pointer;
  background: transparent;
  padding: 0;
  transition: border-color .15s;
}

.material-swatch-other:focus {
  outline: 2px solid var(--qinetiq-green);
  outline-offset: 2px;
}

.material-swatch-hint {
  font-size: 12px;
  color: #8A8574;
  margin-bottom: 12px;
  min-height: 16px;
}

/* ── Production wordmark ──────────────────────────────────────────────── */
.b2b-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  user-select: none;
}
.b2b-wordmark:hover { text-decoration: none; }
.b2b-wordmark img {
  display: block;
  width: 184px;
  height: 42px;
  max-width: 100%;
  object-fit: contain;
}

/* ── Category grid (homepage, marketplace-style) ─────────────────────── */
.b2b-cat-grid {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background: var(--qinetiq-bg-light);
  padding: 1.75rem 1rem;
}
.b2b-cat-grid__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.875rem;
}

.b2b-cat-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
  aspect-ratio: 4 / 3;
  background: #d8ddd4;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: box-shadow .2s;
}
.b2b-cat-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
  text-decoration: none;
}

.b2b-cat-card__media {
  position: absolute;
  inset: 0;
}

.b2b-cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}
.b2b-cat-card:hover .b2b-cat-card__img {
  transform: scale(1.04);
}

.b2b-cat-card__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--qinetiq-green-tint);
  color: var(--qinetiq-green);
}

.b2b-cat-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .55rem .7rem .6rem;
  background: rgba(23,23,23,.76);
  color: #fff;
  font-weight: 600;
  font-size: clamp(.72rem, 1.1vw, .88rem);
  line-height: 1.25;
  text-align: center;
}

/* Responsive */
@media (max-width: 991px) {
  .b2b-cat-grid__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 575px) {
  .b2b-cat-grid {
    padding: 1rem .75rem;
  }
  .b2b-cat-grid__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
  }
}
