/*
Theme Name: BLACX Carbide Catalog
Theme URI: https://shop.blacxcarbide.com/
Author: BLACX Carbide
Author URI: https://shop.blacxcarbide.com/
Description: WooCommerce catalog theme for carbide inserts, built around a technical catalogue visual system.
Version: 2.4.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: blacx-carbide
*/

:root {
  --ink: #111820;
  --ink-2: #1b252d;
  --steel: #39444c;
  --line: #d9dde0;
  --muted: #65717b;
  --paper: #f4f5f5;
  --white: #ffffff;
  --gold: #f4bc16;
  --gold-2: #ffd44b;
  --blue: #1870b8;
  --red: #ee432f;
  --green: #20a45a;
  --orange: #f19a2a;
  --shadow: 0 18px 45px rgba(12, 18, 24, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
}

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

.topbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.language-switch a {
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  line-height: 1;
}

.language-switch a.is-active {
  background: var(--gold);
  color: var(--ink);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 104px;
  padding: 10px 0;
}

.brand {
  display: block;
  width: clamp(190px, 20vw, 250px);
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand__fallback {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1;
}

.brand__fallback-main {
  display: block;
  font-size: 42px;
  font-weight: 900;
}

.brand__fallback-sub {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  padding: 12px 13px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-2);
}

.main-nav a:hover {
  background: #f0f2f3;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
.button,
button,
input[type="submit"],
.added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.cart-pill {
  min-width: 44px;
  min-height: 42px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #eef0f1 0%, #fafafa 52%, #f3f4f5 100%);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  min-height: min(654px, calc(100vh - 110px));
  display: grid;
  grid-template-columns: 420px 394px minmax(230px, 1fr);
  gap: 32px;
  align-items: start;
  padding: 48px 0 52px;
}

.hero__left {
  display: grid;
  gap: 28px;
}

.hero__panel {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 24, 32, 0.96), rgba(17, 24, 32, 0.9)),
    url("assets/images/hero-milling.png") center / cover no-repeat;
  padding: 40px 34px 32px;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0% 100%);
  min-height: 288px;
  position: relative;
}

.hero__panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--gold);
}

.eyebrow {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 24px 0 18px;
  max-width: 360px;
  font-size: 30px;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__panel p {
  margin: 0;
  max-width: 342px;
  font-size: 16px;
  line-height: 1.45;
  color: #ecf0f2;
}

.hero__collage,
.hero__machine {
  margin: 0;
  background: var(--white);
  border: 1px solid #e2e6e9;
  border-radius: 4px;
  box-shadow: 0 18px 38px rgba(12, 18, 24, 0.08);
  overflow: hidden;
}

.hero__collage {
  height: 236px;
  display: grid;
  place-items: center;
  padding: 10px;
  position: relative;
}

.hero__collage::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -17px;
  width: 112px;
  height: 4px;
  background: var(--gold);
}

.hero__collage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__media {
  display: grid;
  gap: 80px;
  position: relative;
}

.hero__media::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 100%;
  height: 4px;
  background: var(--gold);
  z-index: 2;
}

.hero__machine {
  height: 236px;
  padding: 8px;
}

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

.feature-stack {
  display: grid;
  gap: 28px;
  align-self: stretch;
  align-content: center;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  max-width: 306px;
}

.feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}

.feature__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
}

.feature h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.14;
  text-transform: uppercase;
}

.feature p {
  margin: 3px 0 0;
  color: var(--steel);
  font-size: 14px;
}

.section {
  padding: 44px 0;
}

.section--white {
  background: var(--white);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  background: var(--gold);
  margin-top: 10px;
}

.page-main {
  padding: 36px 0 56px;
}

.page-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
  box-shadow: 0 8px 20px rgba(13, 20, 27, 0.05);
}

.page-content__header {
  margin-bottom: 24px;
}

.page-content__body > *:first-child {
  margin-top: 0;
}

.page-content__body > *:last-child {
  margin-bottom: 0;
}

.page-content .woocommerce {
  width: 100%;
}

.blacx-try-total th,
.blacx-try-total td {
  border-top: 2px solid var(--accent) !important;
  background: #f7f8f8;
}

.blacx-try-total strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.blacx-try-total small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.cart_totals .fee th,
.cart_totals .fee td,
.woocommerce-checkout-review-order-table .fee th,
.woocommerce-checkout-review-order-table .fee td {
  background: #fff9e6;
}

.cart_totals .order-total th,
.cart_totals .order-total td,
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  font-size: 18px;
}

.blacx-invoice-type-field {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f8f8;
}

.blacx-invoice-type-field label:first-child {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
  color: var(--ink);
}

.blacx-invoice-type-field .woocommerce-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blacx-invoice-type-field .woocommerce-input-wrapper label {
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.blacx-invoice-type-field input[type="radio"] {
  margin-right: 8px;
}

.blacx-company-field {
  transition: opacity 0.16s ease;
}

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

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

.category-tile {
  min-height: 124px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  color: var(--ink);
  text-decoration: none;
}

.category-tile--main {
  min-height: 132px;
  background: linear-gradient(135deg, #111a22 0%, #26313a 100%);
  border-color: #f0b400;
  color: var(--white);
}

.category-tile--main .category-tile__body span {
  color: rgba(255, 255, 255, 0.72);
}

.category-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.category-tile__graphic {
  width: 74px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5b24a;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.category-tile--child {
  min-height: 112px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.category-icon {
  display: block;
  width: 58px;
  height: 40px;
}

.category-icon--image {
  object-fit: contain;
}

.category-icon--category-image {
  object-position: center;
}

.category-icon__shape {
  fill: none;
  stroke: #111a22;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.category-icon__hole {
  fill: #fff;
}

.category-icon__code {
  fill: #74777a;
  font-size: 30px;
  font-weight: 900;
  text-anchor: middle;
}

.category-icon__angle {
  fill: #74777a;
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
}

.category-tile__body {
  display: grid;
  gap: 4px;
}

.category-tile strong {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.05;
}

.category-tile span {
  color: var(--muted);
  font-size: 13px;
}

.home-category-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.home-category-links a {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
  color: var(--ink);
  font-weight: 900;
}

.home-category-links .category-icon {
  width: 54px;
  min-width: 54px;
  height: 40px;
}

.home-category-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) 1.7fr;
  gap: 18px;
  align-items: stretch;
}

.home-category-main {
  position: relative;
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 192px;
  padding: 26px;
  border: 1px solid #e5b24a;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #111a22 0%, #202b34 100%);
  color: #fff;
  overflow: hidden;
  text-decoration: none;
}

.home-category-main::after {
  content: "";
  position: absolute;
  inset: 18px -70px auto auto;
  width: 170px;
  height: 170px;
  border: 28px solid rgba(240, 180, 0, 0.13);
  transform: rotate(35deg);
}

.home-category-main span {
  color: #f0b400;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-category-main strong {
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.home-category-main small {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.home-category-main em {
  width: max-content;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #f0b400;
  color: #111a22;
  font-style: normal;
  font-weight: 900;
}

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

.home-category-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(13, 20, 27, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-category-card--no-icon {
  grid-template-columns: 1fr;
}

.home-category-card:hover {
  border-color: #e5b24a;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.home-category-card__icon {
  width: 58px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #e5b24a;
  border-radius: 6px;
  background: #fffdf5;
  overflow: hidden;
}

.home-category-card__icon img {
  display: block;
  width: 48px;
  height: 36px;
  object-fit: contain;
}

.home-category-card__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-category-card__text strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.12;
}

.home-category-card__text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-grid,
.products {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card,
.woocommerce ul.products li.product {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(13, 20, 27, 0.05);
}

.product-card__media,
.woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 0.82;
  background: #f0f1f2;
  object-fit: contain;
  padding: 20px;
  margin: 0;
}

.product-card__media {
  display: grid;
  place-items: center;
}

.product-card__media img {
  max-height: 230px;
  object-fit: contain;
}

.product-card__body,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
  padding-left: 16px;
  padding-right: 16px;
}

.product-card__body {
  padding: 16px;
}

.product-card__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card__meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-card__meta span:first-child {
  color: var(--steel);
}

.product-card h3,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  overflow-wrap: anywhere;
  margin: 8px 0 10px;
  padding-top: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.12;
  font-weight: 900;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin: 10px 0 14px;
}

.spec-chip {
  padding: 4px 8px;
  border-radius: 4px;
  background: #edf0f1;
  color: var(--steel);
  font-size: 12px;
  font-weight: 800;
}

.product-card__price {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.product-card__price .amount {
  color: inherit;
}

.stock-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stock-tag {
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--white);
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.stock-tag--backorder {
  background: var(--orange);
}

.blacx-cart-form {
  display: grid;
  gap: 12px;
}

.product-card .blacx-cart-form {
  padding: 0 16px 16px;
}

.product-card__select-options {
  margin: 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

.blacx-quality-field {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card .blacx-quality-field {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
  padding: 10px;
}

.blacx-quality-field > span {
  display: block;
  letter-spacing: 0;
}

.blacx-quality-field select,
.blacx-cart-form .qty {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.blacx-quality-field select {
  padding: 0 10px;
}

.blacx-cart-form .quantity {
  max-width: 130px;
}

.woocommerce-cart-form .product-quantity .quantity,
.woocommerce table.shop_table .product-quantity .quantity {
  min-width: 112px;
}

.woocommerce-cart-form .product-quantity .qty,
.woocommerce table.shop_table .product-quantity .qty {
  width: 104px !important;
  min-width: 104px;
  max-width: none;
  text-align: center;
}

.product-card .blacx-cart-form .btn,
.product-single__summary .blacx-cart-form .btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 0;
  cursor: pointer;
}

.blacx-cart-submit {
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
  background: var(--gold) !important;
  color: var(--ink) !important;
  text-decoration: none;
}

.blacx-quantity-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-card .btn,
.woocommerce ul.products li.product .button {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
}

.catalog-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.technical-drawing {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #eff1f2);
  min-height: 280px;
  padding: 28px;
  display: grid;
  place-items: center;
}

.insert-diagram {
  display: none;
}

.technical-drawing__image {
  display: block;
  width: min(540px, 100%);
  height: auto;
  object-fit: contain;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

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

.data-table th {
  background: #eef0f1;
  font-weight: 900;
  text-transform: uppercase;
}

.iso-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.iso-strip span {
  padding: 10px;
  color: var(--white);
  text-align: center;
  font-weight: 900;
}

.iso-p { background: var(--blue); }
.iso-m { background: #ffd21f; color: var(--ink) !important; }
.iso-k { background: var(--red); }
.iso-n { background: var(--green); }
.iso-s { background: var(--orange); }
.iso-h { background: #b9bec2; color: var(--ink) !important; }

.shop-page {
  padding: 34px 0 52px;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(220px, 248px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.shop-layout > section {
  min-width: 0;
}

.shop-page .product-grid {
  gap: 16px;
}

.shop-page .product-card__media {
  aspect-ratio: 1 / 0.82;
  padding: 12px;
}

.shop-page .product-card__media img {
  max-height: 178px;
}

.shop-page .product-card__body {
  padding: 13px 14px;
}

.shop-page .product-card h3 {
  font-size: 18px;
  line-height: 1.08;
}

.shop-page .product-card__price {
  font-size: 20px;
}

.shop-page .product-card .blacx-cart-form {
  padding: 0 14px 14px;
  gap: 9px;
}

.shop-page .product-card .blacx-quality-field {
  padding: 8px;
}

.shop-page .product-card .blacx-quality-field select {
  min-height: 40px;
}

.shop-sidebar {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  position: sticky;
  top: 104px;
}

.shop-search {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.shop-search label {
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
}

.shop-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.shop-search input[type="search"] {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
}

.shop-search button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--gold);
  color: #111820;
  font-weight: 900;
  cursor: pointer;
}

.shop-filter {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.shop-filter strong {
  color: var(--ink);
  text-transform: uppercase;
}

.shop-filter label {
  display: grid;
  gap: 5px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-filter select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 0 10px;
}

.shop-filter__check {
  display: flex !important;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
  text-transform: none !important;
}

.shop-filter__check input {
  width: 16px;
  height: 16px;
}

.shop-filter button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.shop-filter > a {
  justify-content: center;
  border-top: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}

.shop-sidebar h3 {
  margin: 0 0 12px;
  font-size: 16px;
  text-transform: uppercase;
}

.shop-sidebar a {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid #edf0f1;
  color: var(--steel);
  font-weight: 800;
}

.shop-category-menu {
  display: grid;
  gap: 10px;
}

.shop-category-menu__group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.shop-category-menu__group summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f7f8f8;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
}

.shop-category-menu__group summary::-webkit-details-marker {
  display: none;
}

.shop-category-menu__group summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.shop-category-menu__all,
.shop-category-menu__children a {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px;
  padding: 9px 12px !important;
  border-top: 1px solid #edf0f1;
  color: var(--steel);
  font-weight: 800;
  text-decoration: none;
}

.shop-category-menu__children a span {
  width: 34px;
  height: 26px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-category-menu__children .category-icon {
  width: 34px;
  height: 24px;
}

.shop-category-menu__children strong {
  font-size: 13px;
  line-height: 1.15;
}

.shop-category-menu a.is-active {
  color: var(--ink);
  background: #fff7df;
}

.category-children-panel {
  margin-bottom: 28px;
}

.category-children-panel__head {
  margin-bottom: 14px;
}

.product-single {
  padding: 34px 0 54px;
}

.product-single__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
}

.product-single__visuals {
  display: grid;
  gap: 16px;
}

.product-single__media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
}

.product-single__technical {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.product-single__technical h2 {
  margin: 0;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-single__technical-image {
  padding: 16px;
  background: #fff;
}

.product-single__technical-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

.product-single__summary h1 {
  margin: 0 0 6px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.95;
  font-weight: 900;
}

.product-single__summary .sku {
  color: var(--muted);
  font-weight: 800;
}

.product-single__price {
  margin: 16px 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
}

.product-single__price .amount {
  color: inherit;
}

.product-single__summary .blacx-cart-form {
  max-width: 360px;
  margin: 18px 0 8px;
}

.product-single__summary .blacx-quality-field {
  font-size: 13px;
}

.product-single__summary .quantity {
  display: block;
}

.meta-panel {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.meta-panel h2 {
  margin: 0;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 18px;
  text-transform: uppercase;
}

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

.quality-table th,
.quality-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.quality-table th {
  text-align: left;
  background: #eef0f1;
}

.end-mill-options > p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--steel);
}

.end-mill-options__table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.end-mill-options__table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.end-mill-options__table th,
.end-mill-options__table td {
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.end-mill-options__table th {
  background: #eef0f1;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.end-mill-options__price {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.series-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #111923;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.end-mill-options__buy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.end-mill-options__buy input[type="number"] {
  width: 78px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.end-mill-options__buy .btn {
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  white-space: nowrap;
}

.quality-materials {
  display: inline-flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.quality-material {
  min-width: 48px;
  padding: 7px 13px;
  color: #fff;
  font-weight: 900;
  text-align: center;
  line-height: 1;
}

.quality-material--p {
  background: #1f76bd;
}

.quality-material--m {
  background: #ffd426;
  color: #111820;
}

.quality-material--k {
  background: #f43d2e;
}

.quality-material--n {
  background: #19a86b;
}

.quality-material--s {
  background: #f59a23;
}

.quality-material--h {
  background: #b9c0c6;
  color: #111820;
}

.quality-material-empty {
  color: var(--muted);
}

.blacx-quality-guide__body {
  padding: 16px;
}

.blacx-quality-guide__body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.blacx-quality-guide__scroll {
  overflow-x: auto;
}

.quality-guide-table {
  width: auto;
  min-width: 890px;
  border-collapse: collapse;
  background: var(--white);
}

.quality-guide-table th,
.quality-guide-table td {
  height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  vertical-align: middle;
}

.quality-guide-table th {
  height: 52px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.quality-guide-table th:nth-child(1),
.quality-guide-table td:nth-child(1) {
  width: 120px;
}

.quality-guide-table th:nth-child(2),
.quality-guide-table td:nth-child(2) {
  width: 135px;
}

.quality-guide-table th:nth-child(3),
.quality-guide-table td:nth-child(3) {
  width: 130px;
}

.quality-guide-table th:nth-child(4),
.quality-guide-table td:nth-child(4) {
  width: 285px;
}

.quality-guide-table th:nth-child(5),
.quality-guide-table td:nth-child(5) {
  width: 220px;
}

.quality-guide-badge {
  display: inline-flex;
  min-width: 34px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 5px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.quality-guide-badge--coating-pvd {
  background: #f43d2e;
  color: #fff;
}

.quality-guide-badge--coating-cvd {
  background: #ffd426;
}

.quality-guide-badge--app-p {
  background: #1f76bd;
  color: #fff;
}

.quality-guide-badge--app-m {
  background: #ffd426;
}

.quality-guide-badge--app-k {
  background: #f43d2e;
  color: #fff;
}

.quality-guide-badge--app-n {
  background: #19a86b;
  color: #fff;
}

.quality-guide-badge--app-s {
  background: #f59a23;
  color: #fff;
}

.quality-guide-badge--app-h {
  background: #b9c0c6;
}

.quality-guide-badge--toughness-0 {
  background: #edf0f2;
}

.quality-guide-badge--toughness-1 {
  background: #dce1e5;
}

.quality-guide-badge--toughness-2 {
  background: #c9d0d6;
}

.quality-guide-badge--toughness-3 {
  background: #b5bec6;
}

.quality-guide-badge--toughness-4 {
  background: #9ba6b0;
}

.quality-guide-badge--toughness-5 {
  background: #7b8792;
  color: #fff;
}

.quality-guide-badge--toughness-6 {
  background: #56616b;
  color: #fff;
}

.quality-guide-badge--type-0 {
  background: #fde7ef;
}

.quality-guide-badge--type-1 {
  background: #f9ccdc;
}

.quality-guide-badge--type-2 {
  background: #f4adc8;
}

.quality-guide-badge--type-3 {
  background: #eb89ad;
}

.quality-guide-badge--type-4 {
  background: #df6591;
}

.quality-guide-badge--style-0 {
  background: #e4f6ec;
}

.quality-guide-badge--style-1 {
  background: #c8ecd7;
}

.quality-guide-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.quality-guide-legend__item {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.quality-guide-legend .quality-guide-badge {
  min-width: 28px;
  min-height: 22px;
  padding: 4px 9px;
  font-size: 12px;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 34px 0;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 26px;
  align-items: center;
}

.site-footer small {
  color: #c6ccd0;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--gold);
}

.footer-mark::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--gold);
}

.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-breadcrumb,
.price {
  color: var(--muted);
  font-weight: 800;
}

.price {
  color: var(--ink);
}

.blacx-registration-fields {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
}

.blacx-registration-fields h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.blacx-registration-fields__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.blacx-registration-field {
  margin: 0;
}

.blacx-registration-field--wide {
  grid-column: 1 / -1;
}

.blacx-registration-field label {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.blacx-registration-field .required {
  color: var(--red);
}

.blacx-registration-field input,
.blacx-registration-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.blacx-registration-field textarea {
  min-height: 88px;
  resize: vertical;
}

.blacx-registration-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .main-nav,
  .header-actions {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero__inner,
  .catalog-layout,
  .product-single__grid,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    clip-path: none;
    min-height: 0;
  }

  .hero__media {
    gap: 18px;
  }

  .hero__media::before {
    display: none;
  }

  .feature-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    padding-left: 0;
    border-left: 0;
  }

  .category-grid,
  .home-category-links,
  .product-grid,
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-category-showcase {
    grid-template-columns: 1fr;
  }

  .home-category-main {
    min-height: 150px;
  }

  .shop-sidebar {
    position: static;
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .shop-page .product-grid,
  .shop-page .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar__inner,
  .section__head,
  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding-top: 24px;
  }

  .brand {
    width: min(230px, 72vw);
  }

  .hero__panel {
    padding: 30px 24px;
  }

  .hero__collage,
  .hero__machine {
    height: 220px;
  }

  .feature-stack,
  .category-grid,
  .home-category-links,
  .home-category-quickgrid,
  .product-grid,
  .products {
    grid-template-columns: 1fr;
  }

  .home-category-main {
    padding: 22px;
  }

  .home-category-main strong {
    font-size: 28px;
  }

  .category-tile--main {
    min-height: 112px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .product-single__summary h1 {
    font-size: 44px;
  }

  .blacx-registration-fields__grid {
    grid-template-columns: 1fr;
  }
}

.cart-pill {
  gap: 8px;
  padding: 0 12px;
}

.cart-pill span {
  font-size: 13px;
}

.cart-pill strong {
  min-width: 24px;
  text-align: center;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.product-card__body {
  display: grid;
  align-content: start;
  gap: 10px;
}

.product-card h3 {
  min-height: 44px;
  margin: 0;
}

.product-card__price {
  margin: 0;
}

.stock-line {
  min-height: 32px;
}

.stock-tag {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  min-width: 70px;
  padding: 6px 8px;
  line-height: 1.05;
}

.stock-tag small {
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.9;
}

.blacx-quality-field select:invalid {
  border-color: var(--gold);
}

.blacx-quality-field option:disabled {
  color: #8a9198;
}

.woocommerce-cart-form .product-quantity .quantity,
.woocommerce table.shop_table .product-quantity .quantity {
  min-width: 142px;
}

.woocommerce-cart-form .product-quantity .qty,
.woocommerce table.shop_table .product-quantity .qty {
  width: 132px !important;
  min-width: 132px;
}

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

.product-facts div,
.product-materials {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 12px;
}

.product-facts span,
.product-materials > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-facts strong {
  color: var(--ink);
  line-height: 1.25;
}

.product-materials {
  margin: 0 0 18px;
}

.quality-materials--with-text {
  gap: 6px;
}

.quality-materials--with-text .quality-material {
  min-width: 0;
  padding: 7px 9px;
  font-size: 12px;
}

.quality-guide-table {
  min-width: 680px;
}

.quality-guide-table th,
.quality-guide-table td {
  height: 42px;
  padding: 6px 8px;
}

.quality-guide-badge {
  min-height: 24px;
  padding: 5px 10px;
}

.blacx-empty-cart-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: #fff;
}

.blacx-empty-cart-panel h2 {
  margin: 0 0 8px;
}

.blacx-empty-cart-panel p {
  margin: 0 0 16px;
  color: var(--muted);
}

.blacx-empty-cart-panel__actions,
.blacx-empty-cart-panel__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blacx-empty-cart-panel__categories {
  margin-top: 14px;
}

.blacx-empty-cart-panel__categories a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #f7f8f8;
  font-weight: 800;
}

.site-footer {
  padding: 44px 0;
}

.site-footer__inner {
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: start;
}

.site-footer__brand,
.site-footer__links,
.site-footer__commerce {
  display: grid;
  gap: 10px;
}

.site-footer__brand p {
  max-width: 360px;
  margin: 0;
  color: #dce1e5;
}

.site-footer__links strong,
.site-footer__commerce strong {
  color: var(--gold);
  text-transform: uppercase;
}

.site-footer__links a {
  color: #eef2f4;
  font-weight: 700;
}

.site-footer__links a:hover {
  color: var(--gold);
}

.site-footer__commerce small {
  display: block;
  line-height: 1.45;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.search-page__query {
  color: var(--steel);
  font-weight: 800;
}

.page-list {
  display: grid;
  gap: 14px;
}

.page-list__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.page-list__item h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.woocommerce-account .page-content__body .woocommerce {
  display: grid;
  gap: 20px;
}

@media (max-width: 980px) {
  .site-footer__inner,
  .product-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cart-pill span {
    display: none;
  }

  .product-card h3 {
    min-height: 0;
  }

  .quality-guide-table {
    min-width: 620px;
  }
}
