/*
Theme Name: Textil-Helden B2B
Theme URI: https://textil-helden.de
Description: Professionelles B2B Dark-Mode Child-Theme für Workwear & Berufskleidung. Maßgeschneidert für Firmenkunden mit Fokus auf Berufskleidung, Arbeitsschutz und Unternehmensausstattung.
Author: Textil-Helden Team
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: textil-helden
Tags: dark-mode, b2b, workwear, e-commerce, professional, woocommerce
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --th-bg:            #111111;
  --th-surface:       #1E1E1E;
  --th-surface-alt:   #252525;
  --th-surface-hover: #282828;
  --th-accent:        #00AEEF;
  --th-accent-dark:   #0090C8;
  --th-accent-light:  #33BFFF;
  --th-accent-glow:   rgba(0, 174, 239, 0.18);

  --th-text:          #E8E8E8;
  --th-text-muted:    #9CA3AF;
  --th-text-faint:    #6B7280;

  --th-border:        #2A2A2A;
  --th-border-light:  #363636;

  --th-success:       #10B981;
  --th-warning:       #F59E0B;
  --th-error:         #EF4444;

  --th-radius:        6px;
  --th-radius-lg:     12px;
  --th-radius-xl:     20px;

  --th-shadow-sm:     0 1px 4px rgba(0,0,0,0.5);
  --th-shadow:        0 4px 16px rgba(0,0,0,0.45);
  --th-shadow-lg:     0 10px 40px rgba(0,0,0,0.65);
  --th-shadow-accent: 0 4px 24px rgba(0,174,239,0.28);

  --th-transition:    all 0.2s ease;
  --th-transition-md: all 0.3s ease;
}

/* ============================================================
   BASE RESET & GLOBAL
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--th-bg) !important;
  color: var(--th-text) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  color: var(--th-text) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--th-text);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--th-accent-light);
}

strong, b {
  color: var(--th-text);
  font-weight: 700;
}

ul, ol {
  color: var(--th-text-muted);
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.wp-block-template-part[data-slug="header"],
header.wp-block-template-part,
#masthead,
.site-header {
  background-color: rgba(30, 30, 30, 0.97) !important;
  border-bottom: 1px solid var(--th-border) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 12px rgba(0,0,0,0.6);
}

/* Logo */
.wp-block-site-title,
.wp-block-site-title a {
  color: var(--th-text) !important;
  font-weight: 800 !important;
  font-size: 1.35rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

/* Navigation links */
.wp-block-navigation a,
.wp-block-navigation-item__content {
  color: var(--th-text-muted) !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.02em !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: var(--th-radius) !important;
  transition: var(--th-transition) !important;
}

.wp-block-navigation a:hover,
.wp-block-navigation-item__content:hover,
.wp-block-navigation-item.is-active .wp-block-navigation-item__content {
  color: var(--th-accent) !important;
  background: var(--th-accent-glow) !important;
}

/* Dropdown menu */
.wp-block-navigation__submenu-container {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
  box-shadow: var(--th-shadow-lg) !important;
  padding: 0.5rem !important;
  min-width: 220px !important;
}

.wp-block-navigation__submenu-container a {
  border-radius: var(--th-radius) !important;
  padding: 0.55rem 0.85rem !important;
  display: block;
}

/* Mobile nav */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--th-surface) !important;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: var(--th-text) !important;
}

/* Header scrolled state (added via JS) */
.th-header-scrolled {
  box-shadow: var(--th-shadow-lg) !important;
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.th-announcement-bar {
  background: var(--th-accent);
  color: #ffffff;
  text-align: center;
  padding: 0.55rem 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.th-announcement-bar a {
  color: #ffffff !important;
  text-decoration: underline;
  font-weight: 600;
}

.th-announcement-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none !important;
  color: #fff !important;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 !important;
  min-width: 0 !important;
  transform: translateY(-50%) !important;
  box-shadow: none !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.wp-block-button__link,
.wp-element-button,
.button,
a.button,
input[type="submit"],
input[type="button"],
button[type="submit"] {
  background: var(--th-accent) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--th-radius) !important;
  padding: 0.72rem 1.75rem !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  transition: var(--th-transition) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover,
a.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button[type="submit"]:hover {
  background: var(--th-accent-dark) !important;
  box-shadow: var(--th-shadow-accent) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
}

/* Outline variant */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid var(--th-accent) !important;
  color: var(--th-accent) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--th-accent) !important;
  color: #ffffff !important;
}

/* Ghost variant */
.wp-block-button.is-style-ghost .wp-block-button__link,
.button.secondary,
a.button.secondary {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  color: var(--th-text) !important;
}

.button.secondary:hover,
a.button.secondary:hover {
  border-color: var(--th-accent) !important;
  color: var(--th-accent) !important;
}

/* Large CTA */
.th-cta-btn {
  padding: 1rem 2.5rem !important;
  font-size: 1rem !important;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius) !important;
  color: var(--th-text) !important;
  padding: 0.7rem 1rem !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  width: 100%;
  transition: var(--th-transition) !important;
  line-height: 1.5 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: var(--th-accent) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0,174,239,0.14) !important;
  background: var(--th-surface-hover) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--th-text-faint) !important;
}

label,
.label {
  color: var(--th-text-muted) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  margin-bottom: 0.4rem !important;
  display: block !important;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239CA3AF' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  padding-right: 2.5rem !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--th-accent);
  width: 1rem;
  height: 1rem;
}

/* ============================================================
   CARDS & CONTAINERS
   ============================================================ */
.wp-block-group.is-style-card,
[class*="th-card"],
.th-card {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
  padding: 1.75rem !important;
  transition: var(--th-transition-md) !important;
}

.th-card:hover {
  border-color: var(--th-accent) !important;
  box-shadow: var(--th-shadow-accent) !important;
}

/* ============================================================
   HERO / COVER BLOCK
   ============================================================ */
.wp-block-cover {
  background-color: var(--th-surface) !important;
}

.wp-block-cover__background {
  background: linear-gradient(135deg, #090909 0%, #141B22 50%, #111111 100%) !important;
  opacity: 1 !important;
}

.wp-block-cover__inner-container h1,
.wp-block-cover__inner-container h2,
.wp-block-cover__inner-container p {
  color: #ffffff !important;
}

/* ============================================================
   WOOCOMMERCE — PRODUCT LOOP
   ============================================================ */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 1.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: var(--th-transition-md) !important;
  position: relative;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  border-color: var(--th-accent) !important;
  box-shadow: var(--th-shadow-accent) !important;
  transform: translateY(-4px) !important;
}

.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 230px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-bottom: 1px solid var(--th-border) !important;
  transition: transform 0.4s ease !important;
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.03) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
  color: var(--th-text) !important;
  text-decoration: none !important;
  display: block;
  overflow: hidden;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--th-text) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 1rem 1.1rem 0.3rem !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}

.woocommerce ul.products li.product .price {
  color: var(--th-accent) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 0 1.1rem !important;
  margin: 0 !important;
  display: block;
}

.woocommerce ul.products li.product .price del {
  color: var(--th-text-faint) !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
}

.woocommerce ul.products li.product .button {
  margin: 0.85rem 1.1rem 1.1rem !important;
  width: calc(100% - 2.2rem) !important;
  justify-content: center !important;
  text-align: center !important;
}

/* On-sale badge */
.woocommerce span.onsale {
  background: var(--th-accent) !important;
  color: #fff !important;
  border-radius: var(--th-radius) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 0.25rem 0.65rem !important;
  min-width: auto !important;
  min-height: auto !important;
  line-height: 1.4 !important;
  top: 0.85rem !important;
  left: 0.85rem !important;
}

/* Star rating */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: var(--th-accent) !important;
}

/* ============================================================
   WOOCOMMERCE — SINGLE PRODUCT
   ============================================================ */
.woocommerce div.product .product_title {
  color: var(--th-text) !important;
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  font-weight: 800 !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: -0.02em !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--th-accent) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--th-text-muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.75 !important;
  border-top: 1px solid var(--th-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

/* Gallery */
.woocommerce div.product div.images {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  background: var(--th-surface) !important;
}

/* Quantity */
.woocommerce div.product form.cart .quantity input.qty {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius) !important;
  color: var(--th-text) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 0.7rem 1rem !important;
  text-align: center;
  width: 80px;
}

/* Add to cart */
.woocommerce div.product form.cart .single_add_to_cart_button {
  padding: 0.85rem 2.25rem !important;
  font-size: 0.95rem !important;
}

/* Stock status */
.woocommerce div.product .stock {
  color: var(--th-success) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
}

.woocommerce div.product .out-of-stock {
  color: var(--th-text-muted) !important;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  background: transparent !important;
  border-bottom: 1px solid var(--th-border) !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  border-bottom: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-bottom: none !important;
  border-radius: var(--th-radius) var(--th-radius) 0 0 !important;
  margin-right: 4px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--th-surface-alt) !important;
  border-bottom-color: var(--th-surface-alt) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--th-text-muted) !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--th-accent) !important;
  font-weight: 600 !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
  background: var(--th-surface-alt) !important;
  border: 1px solid var(--th-border) !important;
  border-top: none !important;
  border-radius: 0 var(--th-radius-lg) var(--th-radius-lg) var(--th-radius-lg) !important;
  padding: 2rem !important;
  color: var(--th-text-muted) !important;
  margin: 0 !important;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
  font-size: 1.1rem !important;
  margin-bottom: 1rem !important;
}

/* Related products */
.related.products > h2,
.upsells.products > h2 {
  font-size: 1.4rem !important;
  color: var(--th-text) !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 2px solid var(--th-border) !important;
}

/* ============================================================
   WOOCOMMERCE — CART
   ============================================================ */
.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
  overflow: hidden !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

.woocommerce table.shop_table thead {
  background: var(--th-surface-alt) !important;
}

.woocommerce table.shop_table th {
  color: var(--th-text-faint) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 1rem 1.25rem !important;
  border: none !important;
  border-bottom: 1px solid var(--th-border) !important;
}

.woocommerce table.shop_table td {
  border: none !important;
  border-bottom: 1px solid var(--th-border) !important;
  padding: 1.25rem !important;
  color: var(--th-text) !important;
  vertical-align: middle !important;
}

.woocommerce table.shop_table tr:last-child td {
  border-bottom: none !important;
}

.woocommerce table.shop_table .product-name a {
  color: var(--th-text) !important;
  font-weight: 600 !important;
}

.woocommerce table.shop_table .product-name a:hover {
  color: var(--th-accent) !important;
}

/* Cart totals */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
  padding: 1.75rem !important;
}

.woocommerce .cart-collaterals .cart_totals h2 {
  font-size: 1.1rem !important;
  margin-bottom: 1.25rem !important;
  color: var(--th-text) !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--th-accent) !important;
  border-radius: var(--th-radius) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  padding: 1rem 2rem !important;
}

/* ============================================================
   WOOCOMMERCE — CHECKOUT
   ============================================================ */
.woocommerce #customer_details .col-1,
.woocommerce #customer_details .col-2 {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
  padding: 2rem !important;
  margin-bottom: 1.5rem !important;
}

.woocommerce #order_review_heading,
.woocommerce h3#order_review_heading {
  color: var(--th-text) !important;
  font-size: 1.1rem !important;
}

.woocommerce #payment {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
}

.woocommerce #payment .payment_methods li {
  border-bottom: 1px solid var(--th-border) !important;
}

.woocommerce #payment .payment_methods li label {
  color: var(--th-text) !important;
}

.woocommerce #payment div.payment_box {
  background: var(--th-surface-alt) !important;
  color: var(--th-text-muted) !important;
}

/* ============================================================
   WOOCOMMERCE — NOTICES
   ============================================================ */
.woocommerce-message {
  background: rgba(0,174,239,0.08) !important;
  border-color: var(--th-accent) !important;
  border-radius: var(--th-radius) !important;
  color: var(--th-text) !important;
}

.woocommerce-info {
  background: rgba(0,174,239,0.06) !important;
  border-color: var(--th-accent-dark) !important;
  border-radius: var(--th-radius) !important;
  color: var(--th-text-muted) !important;
}

.woocommerce-error {
  background: rgba(239,68,68,0.08) !important;
  border-color: var(--th-error) !important;
  border-radius: var(--th-radius) !important;
  color: var(--th-text) !important;
}

/* ============================================================
   SHOP / ARCHIVE HEADER
   ============================================================ */
.woocommerce-products-header {
  margin-bottom: 2rem;
}

.woocommerce-products-header__title.page-title {
  color: var(--th-text) !important;
  margin-bottom: 0.5rem !important;
}

.term-description {
  color: var(--th-text-muted) !important;
  font-size: 0.95rem !important;
  background: var(--th-surface) !important;
  border-left: 3px solid var(--th-accent) !important;
  border-radius: 0 var(--th-radius) var(--th-radius) 0 !important;
  padding: 1rem 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* Ordering + result count */
.woocommerce-ordering select {
  width: auto !important;
}

.woocommerce-result-count {
  color: var(--th-text-faint) !important;
  font-size: 0.875rem !important;
  margin: 0 !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.woocommerce nav.woocommerce-pagination ul {
  display: flex !important;
  gap: 0.4rem !important;
  justify-content: center !important;
  list-style: none !important;
  padding: 0 !important;
  border: none !important;
  margin: 2rem 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li a {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius) !important;
  color: var(--th-text-muted) !important;
  padding: 0.5rem 0.9rem !important;
  font-size: 0.875rem !important;
  transition: var(--th-transition) !important;
  display: inline-block !important;
  min-width: 2.5rem !important;
  text-align: center !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--th-accent) !important;
  border-color: var(--th-accent) !important;
  color: #fff !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--th-accent) !important;
  border-color: var(--th-accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

/* ============================================================
   SIDEBAR & WIDGETS
   ============================================================ */
.widget,
.wp-block-widget-area .widget {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.widget-title,
.widgettitle {
  color: var(--th-text) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.65rem !important;
  border-bottom: 2px solid var(--th-accent) !important;
}

/* Price filter slider */
.widget_price_filter .ui-slider {
  background: var(--th-border) !important;
  border: none !important;
}

.widget_price_filter .ui-slider .ui-slider-range {
  background: var(--th-accent) !important;
}

.widget_price_filter .ui-slider .ui-slider-handle {
  background: var(--th-accent) !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  box-shadow: var(--th-shadow-sm) !important;
}

.widget_price_filter .price_slider_amount {
  color: var(--th-text-muted) !important;
  font-size: 0.875rem !important;
}

/* Layered nav */
.woocommerce .widget_layered_nav ul li a,
.woocommerce .widget_layered_nav_filters ul li a {
  color: var(--th-text-muted) !important;
  font-size: 0.875rem !important;
  transition: var(--th-transition) !important;
}

.woocommerce .widget_layered_nav ul li a:hover {
  color: var(--th-accent) !important;
}

/* Product categories widget */
.wp-block-woocommerce-product-categories li a,
.widget_product_categories li a {
  color: var(--th-text-muted) !important;
  font-size: 0.9rem !important;
}

.widget_product_categories li a:hover {
  color: var(--th-accent) !important;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.woocommerce .woocommerce-breadcrumb {
  color: var(--th-text-faint) !important;
  font-size: 0.825rem !important;
  margin-bottom: 1.25rem !important;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--th-text-faint) !important;
  transition: var(--th-transition) !important;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--th-accent) !important;
}

/* ============================================================
   MY ACCOUNT
   ============================================================ */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
  overflow: hidden !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid var(--th-border) !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  color: var(--th-text-muted) !important;
  display: block;
  padding: 0.9rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: var(--th-transition) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--th-accent) !important;
  background: var(--th-accent-glow) !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--th-surface) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
  padding: 2rem !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.wp-block-template-part[data-slug="footer"],
footer.wp-block-template-part,
#colophon,
.site-footer {
  background: #0A0A0A !important;
  border-top: 1px solid var(--th-border) !important;
  color: var(--th-text-muted) !important;
}

.wp-block-template-part[data-slug="footer"] p,
footer p {
  color: var(--th-text-faint) !important;
  font-size: 0.875rem !important;
}

.wp-block-template-part[data-slug="footer"] a,
footer a {
  color: var(--th-text-muted) !important;
  transition: var(--th-transition) !important;
}

.wp-block-template-part[data-slug="footer"] a:hover,
footer a:hover {
  color: var(--th-accent) !important;
}

.wp-block-template-part[data-slug="footer"] h2,
.wp-block-template-part[data-slug="footer"] h3,
footer h2,
footer h3 {
  color: var(--th-text) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 1rem !important;
}

/* ============================================================
   GUTENBERG BLOCKS
   ============================================================ */
.wp-block-separator {
  border-color: var(--th-border) !important;
  opacity: 1 !important;
}

.wp-block-quote {
  background: var(--th-surface) !important;
  border-left: 4px solid var(--th-accent) !important;
  border-radius: 0 var(--th-radius-lg) var(--th-radius-lg) 0 !important;
  padding: 1.5rem 2rem !important;
}

.wp-block-quote p {
  color: var(--th-text-muted) !important;
  font-style: italic;
}

.wp-block-code {
  background: #0A0A0A !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius) !important;
  color: #00AEEF !important;
  font-size: 0.875rem !important;
}

.wp-block-table table {
  border-color: var(--th-border) !important;
}

.wp-block-table td,
.wp-block-table th {
  border-color: var(--th-border) !important;
  color: var(--th-text) !important;
}

.wp-block-table thead {
  background: var(--th-surface-alt) !important;
}

.wp-block-table tfoot {
  background: var(--th-surface-alt) !important;
}

/* ============================================================
   B2B CUSTOM COMPONENTS
   ============================================================ */

/* Trust badges */
.th-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--th-accent-glow);
  border: 1px solid rgba(0,174,239,0.3);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--th-accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.th-badge.success {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: var(--th-success);
}

/* Stats grid */
.th-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
}

.th-stat-item {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--th-transition-md);
}

.th-stat-item:hover {
  border-color: var(--th-accent);
}

.th-stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--th-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.th-stat-label {
  font-size: 0.8rem;
  color: var(--th-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Pricing table */
.th-price-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.th-price-card {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--th-transition-md);
  position: relative;
}

.th-price-card:hover,
.th-price-card.featured {
  border-color: var(--th-accent);
  box-shadow: var(--th-shadow-accent);
}

.th-price-card.featured {
  background: linear-gradient(160deg, rgba(0,174,239,0.07) 0%, var(--th-surface) 100%);
}

.th-price-card .th-featured-label {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--th-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
}

.th-price-card .th-plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--th-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.th-price-card .th-plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--th-text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.th-price-card .th-plan-price small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--th-text-muted);
}

/* Feature checklist */
.th-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.th-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.45rem 0;
  color: var(--th-text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--th-border);
}

.th-feature-list li:last-child {
  border-bottom: none;
}

.th-feature-list li::before {
  content: '✓';
  color: var(--th-accent);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.15em;
  background: var(--th-accent-glow);
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bulk discount table */
.th-bulk-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  overflow: hidden;
}

.th-bulk-table th {
  background: var(--th-surface-alt);
  color: var(--th-text-faint);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.25rem;
  text-align: left;
}

.th-bulk-table td {
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--th-border);
  color: var(--th-text);
  font-size: 0.9rem;
}

.th-bulk-table tbody tr:hover td {
  background: rgba(0,174,239,0.04);
}

.th-bulk-table .th-bulk-price {
  color: var(--th-accent);
  font-weight: 700;
}

.th-bulk-table .th-bulk-save {
  color: var(--th-success);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Category cards */
.th-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.th-cat-card {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  overflow: hidden;
  transition: var(--th-transition-md);
  text-decoration: none !important;
  display: block;
}

.th-cat-card:hover {
  border-color: var(--th-accent);
  box-shadow: var(--th-shadow-accent);
  transform: translateY(-3px);
}

.th-cat-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid var(--th-border);
}

.th-cat-card-body {
  padding: 1rem 1.25rem;
}

.th-cat-card-title {
  color: var(--th-text) !important;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.th-cat-card-count {
  color: var(--th-text-faint);
  font-size: 0.8rem;
}

/* Info box */
.th-info-box {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-left: 4px solid var(--th-accent);
  border-radius: 0 var(--th-radius) var(--th-radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.th-info-box p {
  color: var(--th-text-muted);
  margin: 0;
  font-size: 0.9rem;
}

/* SKU display */
.th-sku {
  color: var(--th-text-faint) !important;
  font-size: 0.82rem !important;
  font-family: 'Courier New', monospace;
  margin-bottom: 0.5rem !important;
}

/* Inquiry button */
.th-inquiry-btn {
  background: transparent !important;
  border: 2px solid var(--th-accent) !important;
  color: var(--th-accent) !important;
}

.th-inquiry-btn:hover {
  background: var(--th-accent) !important;
  color: #fff !important;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.th-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.th-animate.th-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--th-bg);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--th-accent);
}

/* ============================================================
   LOADING / SPINNER
   ============================================================ */
.woocommerce .blockUI.blockOverlay::before {
  color: var(--th-accent) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .th-price-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

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

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

  .woocommerce div.product div.images {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr !important;
  }

  .th-stats-grid,
  .th-cat-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TH-NAV — Header (Logo links, Navigation rechts, eine Zeile)
   ============================================================ */

.th-header {
	background: var(--th-bg, #111111);
	align-items: center;
	padding: 1.25rem 2rem;
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--th-border, #2a2a2a);
}

.th-header__logo img {
	display: block;
	height: 44px;
	width: auto;
	object-fit: contain;
}

.th-nav {
	display: flex;
	align-items: center;
}

.th-nav__list {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 2.25rem;
	margin: 0;
	padding: 0;
}

.th-nav__list a {
	color: var(--th-white, #ffffff);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	transition: color 0.2s ease;
}

.th-nav__list a:hover,
.th-nav__list a:focus {
	color: var(--th-accent, #00AEEF);
	text-decoration: none;
}

.th-nav__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}

.th-nav__toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--th-white, #ffffff);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.th-nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.th-nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.th-nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
	.th-header { padding: 0.85rem 1.25rem; }
	.th-header__logo img { height: 34px; }

	.th-nav__toggle { display: flex; }

	.th-nav {
		position: fixed;
		top: 64px;
		left: 0;
		right: 0;
		background: var(--th-bg, #111111);
		border-top: 1px solid var(--th-border, #2a2a2a);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		z-index: 99;
	}

	.th-nav.is-open { max-height: 480px; }

	.th-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 0.5rem 1.25rem 1rem;
		width: 100%;
	}

	.th-nav__list li {
		width: 100%;
		border-bottom: 1px solid var(--th-border, #2a2a2a);
	}

	.th-nav__list a {
		display: block;
		padding: 0.9rem 0;
	}
}

/* ============================================================
   TH-FOOTER
   ============================================================ */

.th-footer {
	background: var(--th-surface, #1e1e1e);
	border-top: 1px solid var(--th-border, #2a2a2a);
	padding: 3rem 2rem;
}

.th-footer__inner {
	max-width: 1300px;
	margin: 0 auto;
	align-items: center;
	gap: 1.5rem;
}

.th-footer__logo img {
	height: 36px;
	width: auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
	opacity: 0.8;
}

.th-footer__copy {
	color: var(--th-text-muted, #9ca3af);
	font-size: 0.8rem;
	margin-top: 0.5rem;
}

.th-footer-nav__list {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

.th-footer-nav__list a {
	color: var(--th-text-muted, #9ca3af);
	text-decoration: none;
	font-size: 0.85rem;
	transition: color 0.2s ease;
}

.th-footer-nav__list a:hover,
.th-footer-nav__list a:focus {
	color: var(--th-accent, #00AEEF);
	text-decoration: none;
}
