/*
Theme Name: TK Engineering Shop
Theme URI: https://tkengineering.eu/
Description: TK Engineering WooCommerce storefront built on Storefront.
Author: TK Engineering
Template: storefront
Version: 1.0.3
Text Domain: tk-engineering-shop
*/

:root {
  --tk-navy: #07141d;
  --tk-navy-2: #0c2230;
  --tk-ink: #102531;
  --tk-muted: #60717b;
  --tk-line: #dce5e8;
  --tk-soft: #f2f7f7;
  --tk-teal: #29d3c2;
  --tk-lime: #a5ff67;
  --tk-white: #ffffff;
}

body {
  color: var(--tk-ink);
  background: var(--tk-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body, button, input, textarea, select { font-family: inherit; }
a { color: #087e76; }
a:hover { color: #045b56; }

.col-full {
  max-width: 1240px;
  padding-right: 28px;
  padding-left: 28px;
}

.site-header {
  margin: 0;
  padding: 20px 0 0;
  color: var(--tk-white);
  background: var(--tk-navy);
  border: 0;
}

.site-header .site-branding {
  width: 280px;
  margin: 0 0 20px;
}

.tk-brand img { display: block; width: 275px; height: auto; }
.site-header-cart .cart-contents, .site-header a { color: #dce8ec; }
.site-header a:hover { color: var(--tk-lime); }
.site-search { margin: 4px 0 20px; }
.site-search .widget_product_search form::before { color: #6f8b96; }
.site-search input[type="search"] {
  color: #eef6f7;
  background: #102732;
  border: 1px solid #25414d;
  border-radius: 6px;
  box-shadow: none;
}

.storefront-primary-navigation {
  clear: both;
  background: rgba(255,255,255,.035);
  border-top: 1px solid rgba(255,255,255,.08);
}
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
  padding-top: 19px;
  padding-bottom: 19px;
  color: #dce8ec;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.main-navigation ul.menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:hover { color: var(--tk-lime); }
.site-header .main-navigation ul li.current-menu-item > a,
.site-header .main-navigation ul li.current_page_item > a { color: var(--tk-lime); }
.site-header-cart .cart-contents { padding-top: 19px; padding-bottom: 19px; }

.site-content { outline: 0; }
.content-area,
.right-sidebar .content-area,
.left-sidebar .content-area { width: 100%; float: none; margin-right: 0; }
.widget-area { display: none; }
.home .site-content .col-full { max-width: none; padding: 0; }
.home .content-area { margin-bottom: 0; }
.home .hentry { margin: 0; }
.home .entry-header { display: none; }
.home .entry-content { margin: 0; }

.tk-hero {
  min-height: 510px;
  padding: 92px max(28px, calc((100vw - 1184px) / 2));
  color: var(--tk-white);
  background:
    radial-gradient(circle at 77% 34%, rgba(41,211,194,.16), transparent 30%),
    linear-gradient(117deg, #07141d 0%, #0a202c 68%, #0c2d36 100%);
  position: relative;
  overflow: hidden;
}
.tk-hero::after {
  content: "Ø";
  position: absolute;
  right: 5vw;
  top: 4px;
  color: rgba(165,255,103,.05);
  font-size: 430px;
  line-height: 1;
  font-weight: 800;
}
.tk-kicker, .tk-cta > div > span, .tk-section-heading span {
  color: var(--tk-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}
.tk-hero h1 {
  max-width: 830px;
  margin: 18px 0 22px;
  color: var(--tk-white);
  font-size: clamp(48px, 6.4vw, 86px);
  line-height: .98;
  letter-spacing: -.055em;
}
.tk-hero h1 span { color: var(--tk-lime); }
.tk-hero p { max-width: 670px; margin: 0 0 32px; color: #b9cbd2; font-size: 18px; line-height: 1.65; }
.tk-hero-actions { display: flex; align-items: center; gap: 26px; }
.button, button, input[type="button"], input[type="reset"], input[type="submit"], .added_to_cart {
  border-radius: 5px;
  font-weight: 800;
}
.button.alt, button.alt, input[type="button"].alt, input[type="reset"].alt, input[type="submit"].alt {
  color: var(--tk-navy);
  background: var(--tk-lime);
}
.button.alt:hover, button.alt:hover, input[type="submit"].alt:hover { color: var(--tk-navy); background: #8bed55; }
.tk-hero .button { padding: 15px 24px; }
.tk-text-link { color: var(--tk-white); font-weight: 800; text-decoration: none; }
.tk-text-link:hover { color: var(--tk-teal); }

.tk-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1184px;
  margin: -38px auto 0;
  position: relative;
  z-index: 2;
  background: var(--tk-white);
  border: 1px solid var(--tk-line);
  box-shadow: 0 18px 50px rgba(8,32,43,.11);
}
.tk-value-grid article { padding: 27px 32px; border-right: 1px solid var(--tk-line); }
.tk-value-grid article:last-child { border-right: 0; }
.tk-value-grid strong, .tk-value-grid span { display: block; }
.tk-value-grid strong { color: var(--tk-ink); font-size: 17px; }
.tk-value-grid span { margin-top: 4px; color: var(--tk-muted); font-size: 13px; }

.tk-product-section { max-width: 1184px; margin: 88px auto; }
.tk-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.tk-section-heading h2 { margin: 7px 0 0; color: var(--tk-ink); font-size: 35px; letter-spacing: -.035em; }
.tk-section-heading > a { padding-bottom: 5px; font-weight: 800; text-decoration: none; }

ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
ul.products::before, ul.products::after { display: none; }
ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 22px;
  text-align: left;
  background: var(--tk-white);
  border: 1px solid var(--tk-line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
ul.products li.product:hover { transform: translateY(-4px); border-color: #b9d1d4; box-shadow: 0 16px 35px rgba(8,32,43,.09); }
ul.products li.product img { margin: 0 0 20px; aspect-ratio: 4/3; object-fit: contain; background: #f5f7f7; border-bottom: 1px solid var(--tk-line); }
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 { min-height: 52px; margin: 0 20px 8px; padding: 0; color: var(--tk-ink); font-size: 16px; line-height: 1.45; }
ul.products li.product .price { min-height: 24px; margin: 0 20px 14px; color: #087e76; font-size: 13px; font-weight: 800; }
ul.products li.product .button { margin: 0 20px; padding: 10px 15px; background: var(--tk-navy); color: var(--tk-white); font-size: 13px; }
ul.products li.product .button:hover { background: #113441; }

.tk-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 58px max(28px, calc((100vw - 1184px) / 2));
  color: var(--tk-white);
  background: var(--tk-navy-2);
}
.tk-cta h2 { margin: 8px 0; color: var(--tk-white); font-size: 34px; }
.tk-cta p { max-width: 700px; margin: 0; color: #adc0c8; }
.tk-cta .button { flex: none; padding: 15px 23px; }

.woocommerce-breadcrumb { margin: 32px 0 24px; color: var(--tk-muted); font-size: 12px; }
.storefront-full-width-content.woocommerce-products-header { text-align: left; }
.woocommerce-products-header { padding: 30px 0 20px; }
.woocommerce-products-header__title.page-title { color: var(--tk-ink); font-size: clamp(36px, 5vw, 58px); letter-spacing: -.045em; }
.storefront-sorting { margin-bottom: 28px; padding: 14px 18px; background: var(--tk-soft); border-radius: 6px; }
.single-product div.product { padding-top: 24px; }
.single-product div.product .summary { padding: 12px 0; }
.single-product div.product .product_title { color: var(--tk-ink); font-size: 38px; line-height: 1.15; letter-spacing: -.035em; }
.single-product div.product .woocommerce-product-gallery img { background: #f5f7f7; border: 1px solid var(--tk-line); }
.single-product .price, .tk-quote-price { color: #087e76; font-size: 15px; font-weight: 800; }
.woocommerce-tabs ul.tabs li.active::after { color: var(--tk-teal); }
.tk-spec-table { width: 100%; margin: 18px 0 24px; border-collapse: collapse; }
.tk-spec-table th, .tk-spec-table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--tk-line); }
.tk-spec-table th { width: 44%; color: var(--tk-muted); font-weight: 600; }
.tk-product-note { padding: 16px 18px; color: #52656f; background: var(--tk-soft); border-left: 3px solid var(--tk-teal); }

.site-footer { padding: 44px 0; color: #9db0b8; background: #061018; }
.site-footer a { color: var(--tk-white); }
.site-info { padding: 0; font-size: 13px; }

@media (max-width: 920px) {
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-product-section { margin-right: 28px; margin-left: 28px; }
  .tk-value-grid { margin-right: 28px; margin-left: 28px; }
}

@media (max-width: 767px) {
  .col-full { padding-right: 20px; padding-left: 20px; }
  .site-header { padding-top: 14px; }
  .site-header .site-branding { width: 230px; margin-bottom: 14px; }
  .tk-brand img { width: 225px; }
  button.menu-toggle { color: var(--tk-white); background: #102732; border: 1px solid #31505c; }
  .storefront-primary-navigation { padding: 10px 0; }
  .tk-hero { min-height: auto; padding: 66px 24px 82px; }
  .tk-hero::after { right: -80px; font-size: 280px; }
  .tk-hero h1 { font-size: 49px; }
  .tk-hero p { font-size: 16px; }
  .tk-hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .tk-value-grid { grid-template-columns: 1fr; margin: -30px 20px 0; }
  .tk-value-grid article { padding: 21px 24px; border-right: 0; border-bottom: 1px solid var(--tk-line); }
  .tk-value-grid article:last-child { border-bottom: 0; }
  .tk-product-section { margin: 62px 20px; }
  .tk-section-heading { align-items: flex-start; flex-direction: column; }
  .tk-section-heading h2 { font-size: 30px; }
  ul.products { grid-template-columns: 1fr; }
  ul.products li.product .woocommerce-loop-product__title { min-height: auto; }
  .tk-cta { align-items: flex-start; flex-direction: column; padding: 45px 24px; }
  .tk-cta h2 { font-size: 29px; }
  .woocommerce-products-header__title.page-title { font-size: 42px; }
  .single-product div.product .product_title { font-size: 31px; }
}

/* BLACX technical catalogue page */
.tk-series-catalog {
  max-width: 1240px;
  margin: 0 auto 70px;
}
.tk-series-hero {
  margin: 34px 0 24px;
  padding: 42px 44px;
  color: var(--tk-white);
  background: linear-gradient(118deg, #07141d 0%, #0d2733 72%, #103541 100%);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.tk-series-hero::after {
  content: "BLACX";
  position: absolute;
  right: 24px;
  bottom: -24px;
  color: rgba(255,255,255,.045);
  font-size: 88px;
  font-weight: 900;
  letter-spacing: -.06em;
}
.tk-eyebrow {
  margin: 0 0 10px;
  color: var(--tk-lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}
.tk-series-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--tk-white);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.tk-series-hero p:last-child {
  max-width: 720px;
  margin: 15px 0 0;
  color: #b9cbd1;
  font-size: 17px;
}
.tk-series-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: var(--tk-soft);
  border: 1px solid var(--tk-line);
  border-radius: 8px;
}
.tk-series-toolbar input {
  width: min(420px, 100%);
  padding: 12px 14px;
  background: var(--tk-white);
  border: 1px solid #cddbdd;
  border-radius: 6px;
  box-shadow: none;
}
.tk-series-toolbar span {
  color: var(--tk-muted);
  font-size: 13px;
  font-weight: 800;
}
.tk-product-family {
  margin: 28px 0;
  background: var(--tk-white);
  border: 1px solid var(--tk-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(8,32,43,.055);
}
.tk-family-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: #f8fbfb;
  border-bottom: 1px solid var(--tk-line);
}
.tk-family-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  margin-bottom: 10px;
  color: var(--tk-navy);
  background: var(--tk-lime);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
}
.tk-family-head h2 {
  margin: 0;
  color: var(--tk-ink);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.tk-family-head p {
  margin: 7px 0 0;
  color: var(--tk-muted);
}
.tk-family-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.tk-family-badges span {
  padding: 8px 10px;
  color: #24414b;
  background: var(--tk-white);
  border: 1px solid var(--tk-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.tk-family-drawing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px 28px;
  background: #fff;
  border-bottom: 1px solid var(--tk-line);
}
.tk-family-drawing img {
  display: block;
  max-width: min(760px, 100%);
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tk-variant-table-wrap {
  overflow-x: auto;
}
.tk-variant-table {
  width: 100%;
  min-width: 980px;
  margin: 0;
  border-collapse: collapse;
  font-size: 13px;
}
.tk-variant-table th {
  padding: 12px 10px;
  color: var(--tk-white);
  background: #0f3a4a;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}
.tk-variant-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--tk-line);
  text-align: center;
  vertical-align: middle;
}
.tk-variant-table tbody tr:nth-child(even) td {
  background: #f8fbfb;
}
.tk-variant-table tbody tr:hover td {
  background: #eef8f7;
}
.tk-variant-table td:first-child,
.tk-variant-table th:first-child {
  text-align: left;
  min-width: 270px;
}
.tk-variant-table strong {
  color: var(--tk-ink);
  font-size: 12px;
}
.tk-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--tk-white) !important;
  background: var(--tk-navy);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;
}
.tk-detail-link:hover {
  background: #123747;
}
@media (max-width: 767px) {
  .tk-series-catalog { margin: 0 0 48px; }
  .tk-series-hero { margin-top: 22px; padding: 32px 24px; border-radius: 0; }
  .tk-series-toolbar { align-items: flex-start; flex-direction: column; margin-right: 20px; margin-left: 20px; }
  .tk-product-family { margin: 22px 20px; }
  .tk-family-head { align-items: flex-start; flex-direction: column; padding: 20px; }
  .tk-family-badges { justify-content: flex-start; }
  .tk-family-drawing { padding: 18px; }
  .tk-variant-table { min-width: 900px; }
}

/* BLACX catalogue table header hard override */
.tk-series-catalog table.tk-variant-table thead th,
.tk-series-catalog .tk-variant-table thead th,
.tk-series-catalog .tk-variant-table th {
  color: #ffffff !important;
  background: #0f3a4a !important;
  border-color: #0f3a4a !important;
  opacity: 1 !important;
}
