/*
 Theme Name:   Woodmart TEHES
 Description:  Woodmart child theme for TEHES.SI Rezervni deli
 Author:       TEHES
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ---------- Barve in osnova ---------- */
body {
  --wd-primary-color: #da2000;
  --wd-alternative-color: #2b2b2b;
  --wd-link-color-hover: #da2000;
}
:root {
  --wd-primary-color: #da2000;
  --wd-alternative-color: #2b2b2b;
  --wd-link-color: #2b2b2b;
  --wd-link-color-hover: #da2000;
  --tehes-red: #da2000;
  --tehes-red-dark: #b81a00;
  --tehes-dark: #262626;
  --tehes-ink: #333;
  --tehes-muted: #6b6f76;
  --tehes-line: #e6e8eb;
  --tehes-soft: #f5f6f7;
  --tehes-radius: 10px;
  --wd-brd-radius: 8px;
}
body { color: #4a4d52; }
h1, h2, h3, h4, h5, h6, .title, .wd-entities-title { color: var(--tehes-dark); letter-spacing: -.01em; }

/* ---------- Glava ---------- */
.whb-top-bar { font-size: 13px; }
.whb-top-bar a, .whb-top-bar .tehes-topbar a { color: #fff; }
.whb-top-bar .tehes-topbar span + span { margin-left: 18px; }
.whb-general-header { border-bottom: 1px solid var(--tehes-line); }
.whb-header-bottom { background: var(--tehes-soft); border-bottom: 1px solid var(--tehes-line); }
.whb-header-bottom .wd-header-cats { font-weight: 600; }
.whb-header-bottom .wd-header-nav .wd-nav > li > a { font-weight: 600; text-transform: none; font-size: 14px; }
.wd-search-form .searchform input[type=text] { font-size: 15px; }
.tehes-help-link { font-size: 14px; font-weight: 600; white-space: nowrap; }
.tehes-help-link a { color: var(--tehes-red); }

/* ---------- Naslov strani (drobtinice) ---------- */
.wd-page-title { background-color: var(--tehes-soft) !important; }
.wd-page-title .title, .wd-page-title .yoast-breadcrumb, .wd-page-title .wd-breadcrumbs, .wd-page-title a, .wd-page-title span { color: var(--tehes-dark) !important; }
.wd-page-title .wd-page-title-bg { opacity: 0 !important; }
.wd-page-title .container { padding-top: 6px; padding-bottom: 6px; }

/* ---------- Kartice izdelkov ---------- */
.wd-product .product-wrapper { border-radius: var(--tehes-radius); }
.wd-product .wd-entities-title { font-size: 14px; line-height: 1.35; font-weight: 600; }
.wd-product .wd-product-sku, .product .sku_wrapper { font-size: 12px; color: var(--tehes-muted); letter-spacing: .02em; }
.wd-product .price, .wd-product .price .amount { font-weight: 700; color: var(--tehes-dark); }
.tehes-availability { font-size: 12px; font-weight: 600; }
.single-product .product_title { font-size: 28px; }
.single-product .price { font-size: 28px; font-weight: 700; color: var(--tehes-dark); }
.single-product .single_add_to_cart_button { min-height: 52px; font-weight: 700; }

/* ---------- Domača stran ---------- */
.tehes-home { color: #4a4d52; }
.tehes-home .tehes-wrap { max-width: 1222px; margin: 0 auto; padding: 0 15px; }
.website-wrapper { overflow-x: clip; }
.home .main-page-wrapper { padding-top: 0; margin-top: 0; }
.home .page-title, .home .wd-page-title { display: none; }
.tehes-hero { width: 100vw; margin-left: calc(50% - 50vw); background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 60%, #3a1a14 100%); color: #fff; padding: 64px 0 56px; border-radius: 0; margin-bottom: 0; }
.tehes-hero h1 { color: #fff; font-size: 44px; line-height: 1.1; margin: 0 0 14px; font-weight: 800; max-width: 760px; }
.tehes-hero h1 em { font-style: normal; color: #ff5a3c; }
.tehes-hero p.lead { font-size: 18px; color: #d9dbde; max-width: 640px; margin: 0 0 28px; }
.tehes-hero-search { display: flex; max-width: 720px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.tehes-hero-search input[type=search] { flex: 1; border: 0; background: transparent; box-shadow: none; font-size: 17px; height: 52px; padding: 0 16px; color: var(--tehes-dark); min-width: 0; }
.tehes-hero-search button { border: 0; background: var(--tehes-red); color: #fff; font-weight: 700; font-size: 16px; padding: 0 28px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tehes-hero-search button:hover { background: var(--tehes-red-dark); }
.tehes-hero .hint { margin-top: 14px; font-size: 14px; color: #b7bbc1; }
.tehes-hero .hint a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tehes-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tehes-chips a { background: rgba(255,255,255,.1); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 14px; border: 1px solid rgba(255,255,255,.18); }
.tehes-chips a:hover { background: var(--tehes-red); border-color: var(--tehes-red); }

.tehes-section { padding: 56px 0 8px; }
.tehes-section h2 { font-size: 28px; margin: 0 0 6px; font-weight: 800; }
.tehes-section .sub { margin: 0 0 26px; color: var(--tehes-muted); }
.tehes-section .head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.tehes-section .head a.more { font-weight: 600; color: var(--tehes-red); }

.tehes-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tehes-tile { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--tehes-line); border-radius: var(--tehes-radius); padding: 20px 10px 16px; color: var(--tehes-dark); transition: all .18s; }
.tehes-tile svg { width: 54px; height: 54px; stroke: var(--tehes-dark); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; transition: stroke .18s; }
.tehes-tile strong { font-size: 14.5px; line-height: 1.25; }
.tehes-tile small { color: var(--tehes-muted); font-size: 12.5px; margin-top: 3px; }
.tehes-tile:hover { border-color: var(--tehes-red); box-shadow: 0 8px 22px rgba(0,0,0,.08); transform: translateY(-2px); color: var(--tehes-dark); }
.tehes-tile:hover svg { stroke: var(--tehes-red); }

.tehes-brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tehes-brands a { display: flex; align-items: center; justify-content: center; min-height: 58px; background: var(--tehes-soft); border-radius: 8px; font-weight: 700; color: var(--tehes-dark); letter-spacing: .01em; transition: all .18s; }
.tehes-brands a:hover { background: var(--tehes-dark); color: #fff; }

.tehes-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tehes-parts a { display: flex; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--tehes-line); border-radius: 8px; color: var(--tehes-dark); font-weight: 600; }
.tehes-parts a span { color: var(--tehes-muted); font-weight: 400; }
.tehes-parts a:hover { border-color: var(--tehes-red); color: var(--tehes-red); }

.tehes-usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tehes-usp { padding: 22px; border-radius: var(--tehes-radius); background: var(--tehes-soft); }
.tehes-usp strong { display: block; color: var(--tehes-dark); font-size: 16px; margin-bottom: 6px; }
.tehes-usp p { margin: 0; font-size: 14px; }

.tehes-cta { margin: 56px 0 56px; background: var(--tehes-dark); color: #fff; border-radius: 14px; padding: 36px 40px; display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.tehes-cta h2 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.tehes-cta p { margin: 0; color: #cfd2d6; }
.tehes-cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.tehes-btn { display: inline-block; padding: 14px 26px; border-radius: 8px; font-weight: 700; background: var(--tehes-red); color: #fff; }
.tehes-btn:hover { background: var(--tehes-red-dark); color: #fff; }
.tehes-btn.ghost { background: transparent; border: 2px solid rgba(255,255,255,.4); }
.tehes-btn.ghost:hover { border-color: #fff; background: transparent; }

/* ---------- Noga ---------- */
.tehes-footer { background: var(--tehes-dark); color: #b9bdc2; font-size: 14px; padding: 48px 0 28px; }
.tehes-footer .tehes-wrap { max-width: 1222px; margin: 0 auto; padding: 0 15px; }
.tehes-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.tehes-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .06em; }
.tehes-footer a { color: #b9bdc2; }
.tehes-footer a:hover { color: #fff; }
.tehes-footer ul { list-style: none; margin: 0; padding: 0; }
.tehes-footer li { margin: 0 0 8px; }
.tehes-footer .logo { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.tehes-footer .logo b { color: #ff5a3c; }
.tehes-footer .legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid #3b3b3b; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Mobilno ---------- */
@media (max-width: 1024px) {
  .tehes-tiles, .tehes-brands { grid-template-columns: repeat(3, 1fr); }
  .tehes-usps, .tehes-parts { grid-template-columns: repeat(2, 1fr); }
  .tehes-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tehes-hero { padding: 36px 0 32px; }
  .tehes-hero h1 { font-size: 30px; }
  .tehes-hero p.lead { font-size: 16px; }
  .tehes-hero-search { flex-direction: column; gap: 6px; }
  .tehes-hero-search input[type=search] { height: 48px; }
  .tehes-hero-search button { height: 48px; }
  .tehes-section { padding-top: 36px; }
  .tehes-section h2 { font-size: 23px; }
  .tehes-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tehes-tile svg { width: 44px; height: 44px; }
  .tehes-brands { grid-template-columns: repeat(2, 1fr); }
  .tehes-usps, .tehes-parts, .tehes-footer-grid { grid-template-columns: 1fr; }
  .tehes-cta { padding: 26px 22px; }
}

/* Gumbi in značke v blagovni rdeči */
.wd-search-form .searchsubmit, .searchform .searchsubmit { background-color: var(--tehes-red) !important; color: #fff !important; }
.wd-tools-count, .cart-widget-count, .wd-cart-number { background-color: var(--tehes-red) !important; }
.wd-nav > li.current-menu-item > a, .wd-nav > li > a:hover { color: var(--tehes-red) !important; }
.btn-color-primary, .button.alt, .single_add_to_cart_button, .checkout-button, #place_order { background-color: var(--tehes-red) !important; border-color: var(--tehes-red) !important; color: #fff !important; }
.btn-color-primary:hover, .button.alt:hover, .single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover { background-color: var(--tehes-red-dark) !important; border-color: var(--tehes-red-dark) !important; }

/* ---------- Kontakt ---------- */
.tehes-contact-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.tehes-contact-cols.two { grid-template-columns: repeat(2, 1fr); }
.tehes-contact-box { background: var(--tehes-soft); border-radius: var(--tehes-radius); padding: 22px; }
.tehes-contact-box h2 { font-size: 18px; margin: 0 0 12px; }
.tehes-contact-box p { margin: 0 0 10px; }
.tehes-contact-box table { width: 100%; border: 0; margin: 0; }
.tehes-contact-box td { border: 0; padding: 3px 0; }
.tehes-contact-box td:last-child { text-align: right; font-weight: 600; }
@media (max-width: 1024px) { .tehes-contact-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tehes-contact-cols, .tehes-contact-cols.two { grid-template-columns: 1fr; } }

/* ---------- Izbira aparat > znamka > vrsta dela ---------- */
.tehes-ymm { margin: 0 0 28px; }
.tehes-ymm-path { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; }
.tehes-ymm-path li { display: flex; flex-direction: column; gap: 2px; }
.tehes-ymm-path span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #777; }
.tehes-ymm-path a { display: inline-flex; align-items: center; gap: 8px; background: #262626; color: #fff; border-radius: 20px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.tehes-ymm-path a:hover { background: #da2000; color: #fff; }
.tehes-ymm-path a i { font-style: normal; opacity: .7; }
.tehes-ymm-step { font-size: 20px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.tehes-ymm-step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #da2000; color: #fff; font-size: 15px; }
.tehes-ymm-tiles, .tehes-ymm-tiles.parts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tehes-ymm-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 12px; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; text-align: center; color: #262626; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tehes-ymm-tile:hover { border-color: #da2000; box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-2px); color: #da2000; }
.tehes-ymm-tile img { max-height: 44px; width: auto; object-fit: contain; }
.tehes-ymm-tile strong { font-size: 15px; line-height: 1.25; }
.tehes-ymm-tile small { font-size: 12px; color: #888; }
@media (max-width: 1024px) { .tehes-ymm-tiles, .tehes-ymm-tiles.parts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tehes-ymm-tiles, .tehes-ymm-tiles.parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tehes-ymm-tile strong { overflow-wrap: anywhere; }
/* Woodmart da before_shop_loop vsebino v orodno vrstico - izbira gre nad njo, čez celo širino */
.shop-loop-head:has(.tehes-ymm) { flex-wrap: wrap; align-items: center; column-gap: 15px; }
.shop-loop-head > .wd-shop-tools:has(.tehes-ymm) { display: contents; }
.shop-loop-head .tehes-ymm { order: -1; flex: 0 0 100%; width: 100%; }
.shop-loop-head:has(.tehes-ymm) > .wd-shop-tools:first-child { margin-right: auto; }
/* Nizka pasica z naslovom strani (več prostora za izbiro) */
.wd-page-title { padding-top: 8px !important; padding-bottom: 8px !important; }
.wd-page-title .container { padding-top: 0 !important; padding-bottom: 0 !important; }
.wd-page-title .entry-title, .wd-page-title h1.title { font-size: 24px !important; line-height: 1.2 !important; }
.wd-page-title .wd-back-btn { transform: scale(.7); }
.wd-content-layout { padding-top: 14px !important; }
.tehes-ymm-path { margin-bottom: 10px; }
.tehes-ymm-path span { display: none; }
.tehes-ymm-path a { padding: 4px 12px; font-size: 13px; }
.tehes-ymm-step { margin-bottom: 8px; font-size: 17px; }
.tehes-ymm-step b { width: 26px; height: 26px; font-size: 13px; }
.tehes-ymm-tiles.parts .tehes-ymm-tile { min-height: 60px; padding: 8px; gap: 2px; }
@media (max-width: 600px) { .wd-page-title .entry-title, .wd-page-title h1.title { font-size: 21px !important; } }
.tehes-cookies { width: 100%; font-size: 14px; }
.tehes-cookies code { font-size: 12px; white-space: normal; word-break: break-word; }

/* ---------- Domača stran, različica 2: ploščice aparatov v črnem pasu ---------- */
.tehes-hero--tiles { padding: 30px 0 34px; }
.tehes-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 26px; }
.tehes-hero--tiles .tehes-hero-text { flex: 1 1 420px; }
.tehes-hero--tiles h1 { font-size: 32px; margin: 0 0 6px; max-width: none; }
.tehes-hero--tiles .hint { margin-top: 0; }
.tehes-hero--tiles .tehes-hero-search { flex: 1 1 520px; max-width: 620px; }
.tehes-hero-label { color: #d9dbde; font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.tehes-hero--tiles .tehes-tiles { grid-template-columns: repeat(8, 1fr); gap: 10px; }
.tehes-hero--tiles .tehes-tile { border-color: transparent; padding: 16px 8px 12px; }
.tehes-hero--tiles .tehes-tile svg { width: 46px; height: 46px; margin-bottom: 8px; }
.tehes-hero--tiles .tehes-tile:hover { border-color: var(--tehes-red); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
@media (max-width: 1024px) {
  .tehes-hero-top { flex-direction: column; align-items: stretch; gap: 16px; }
  .tehes-hero--tiles .tehes-hero-search { max-width: none; }
  .tehes-hero--tiles .tehes-tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .tehes-hero--tiles { padding: 22px 0 24px; }
  .tehes-hero--tiles h1 { font-size: 24px; }
  .tehes-hero--tiles .tehes-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tehes-hero--tiles .tehes-tile { padding: 12px 4px 10px; }
  .tehes-hero--tiles .tehes-tile svg { width: 36px; height: 36px; }
  .tehes-hero--tiles .tehes-tile strong { font-size: 12.5px; }
}

/* ---------- Izbira aparat > znamka > vrsta dela v temnem pasu (kot domača stran) ---------- */
.tehes-ymm-page .wd-page-title { display: none !important; }
.tehes-ymm-page .wd-content-layout { padding-top: 0 !important; }
.shop-loop-head .tehes-ymm, .tehes-ymm { width: 100vw; max-width: 100vw; flex: 0 0 100vw; margin: 0 0 24px calc(50% - 50vw); background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 60%, #3a1a14 100%); color: #fff; padding: 26px 0 30px; }
.tehes-ymm-inner { max-width: 1222px; margin: 0 auto; padding: 0 15px; }
.tehes-ymm-title { color: #fff; font-size: 30px; line-height: 1.15; font-weight: 800; margin: 0 0 12px; }
.tehes-ymm .tehes-ymm-path a { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.tehes-ymm .tehes-ymm-path a:hover { background: #da2000; border-color: #da2000; }
.tehes-ymm .tehes-ymm-step { color: #d9dbde; font-size: 15px; font-weight: 600; margin: 4px 0 12px; }
.tehes-ymm .tehes-ymm-step b { width: 24px; height: 24px; font-size: 12px; }
.tehes-ymm .tehes-ymm-tiles, .tehes-ymm .tehes-ymm-tiles.parts { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.tehes-ymm .tehes-ymm-tile { border-color: transparent; }
.tehes-ymm .tehes-ymm-tile:hover { border-color: #da2000; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
@media (max-width: 1024px) {
  .tehes-ymm .tehes-ymm-tiles, .tehes-ymm .tehes-ymm-tiles.parts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tehes-ymm-title { font-size: 22px; }
  .shop-loop-head .tehes-ymm, .tehes-ymm { padding: 18px 0 22px; }
  .tehes-ymm .tehes-ymm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tehes-ymm .tehes-ymm-tiles.parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ikone vrst delov (enak slog kot ploščice aparatov) */
.tehes-ymm-tiles.parts .tehes-ymm-tile { min-height: 0; padding: 14px 6px 10px; gap: 2px; }
.tehes-ymm-tile svg { width: 42px; height: 42px; stroke: var(--tehes-dark, #262626); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; transition: stroke .18s; }
.tehes-ymm-tile:hover svg { stroke: #da2000; }
.tehes-ymm-tiles.parts .tehes-ymm-tile strong { font-size: 14px; }
@media (max-width: 600px) { .tehes-ymm-tile svg { width: 34px; height: 34px; } }
/* oznaka »Ni na zalogi« na karticah: v eni vrstici */
.product-labels.labels-rounded { width: auto !important; max-width: calc(100% - 14px); }
.product-labels .product-label.out-of-stock { width: auto !important; max-width: none !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; padding: 4px 10px !important; border-radius: 12px !important; white-space: nowrap; font-size: 11px !important; line-height: 1.2 !important; }

/* ---------- Kartice izdelkov: tanka obroba, svetlo sivo ozadje seznama ---------- */
body.woodmart-archive-shop .main-page-wrapper { background: #f3f4f6; }
.products .product-grid-item .product-wrapper { background: #fff; border: 1px solid #e2e4e8; border-radius: 8px; padding: 10px 10px 14px; height: 100%; transition: box-shadow .18s, border-color .18s; }
.products .product-grid-item:hover .product-wrapper { border-color: #cfd3d9; box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.products .product-grid-item .product-element-top { border-radius: 6px; overflow: hidden; }

/* ---------- Navodila (tipske ploščice) in povpraševanje ---------- */
.tehes-navodila h3 { font-size: 19px; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 2px solid #da2000; display: inline-block; }
.tehes-navodila-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tehes-navodila-grid a { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e2e4e8; border-radius: 8px; padding: 8px; }
.tehes-navodila-grid img { max-height: 200px; width: auto; max-width: 100%; object-fit: contain; float: none !important; margin: 0 !important; }
.tehes-povp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: start; }
.tehes-povp-form { background: #fff; border: 1px solid #e2e4e8; border-radius: 10px; padding: 22px; }
.tehes-povp-lead { font-size: 16px; font-weight: 600; }
.tehes-povp-guide h2 { font-size: 22px; margin: 0 0 8px; }
.tehes-povp-guide .tehes-navodila h3 { font-size: 17px; margin-top: 20px; }
.tehes-povp-guide .tehes-navodila-grid img { max-height: 150px; }
.tehes-hint { display: block; color: #777; font-size: 12px; margin-top: 4px; }
@media (max-width: 1024px) { .tehes-povp { grid-template-columns: 1fr; } .tehes-povp-form { position: static; } }
@media (max-width: 600px) { .tehes-navodila-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* slike navodil: brez povezav, manjše */
.tehes-nav-img { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e2e4e8; border-radius: 8px; padding: 8px; }
.tehes-nav-img img { max-height: 150px; width: auto; max-width: 100%; object-fit: contain; }
.tehes-povp-guide .tehes-nav-img img { max-height: 120px; }

/* ---------- Domača stran: priljubljene kategorije + prodaja rezervnih delov ---------- */
.tehes-feat-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tehes-feat-cols h2 { font-size: 22px; margin: 0 0 14px; }
.tehes-feat-list { display: flex; flex-direction: column; gap: 8px; }
.tehes-feat-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e2e4e8; border-radius: 8px; padding: 10px 16px; color: #262626; transition: border-color .15s, box-shadow .15s; }
.tehes-feat-row:hover { border-color: #da2000; box-shadow: 0 6px 18px rgba(0,0,0,.07); color: #da2000; }
.tehes-feat-row .ic { flex: 0 0 48px; height: 48px; border-radius: 50%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.tehes-feat-row svg { width: 30px; height: 30px; fill: none; stroke: #262626; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tehes-feat-row:hover svg { stroke: #da2000; }
.tehes-feat-row strong { flex: 1; font-size: 15px; }
.tehes-feat-row small { color: #888; font-size: 13px; }
.tehes-feat-row i { font-style: normal; font-size: 22px; color: #bbb; }
.tehes-feat-text { background: #f3f4f6; border-radius: 10px; padding: 22px; }
.tehes-feat-text p { color: #444; }
.tehes-feat-text a.tehes-feat-link { color: #da2000; font-weight: 700; }
@media (max-width: 1024px) { .tehes-feat-cols { grid-template-columns: 1fr; } }

/* ---------- Stran Blagovne znamke ---------- */
.tehes-znamke { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1024px) { .tehes-znamke { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tehes-znamke { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Drobna vrstica znamk na vrhu ---------- */
.tehes-brand-bar { display: none; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; }
.tehes-brand-bar.is-placed { display: block; }
.tehes-brand-bar-in { max-width: 1222px; margin: 0 auto; padding: 3px 15px; font-size: clamp(8.5px, 0.78vw, 10px); line-height: 1.6; letter-spacing: 0; color: #9aa0a6; white-space: nowrap; overflow-x: auto; scrollbar-width: none; text-align: center; }
.tehes-brand-bar-in::-webkit-scrollbar { display: none; }
.tehes-brand-bar a { color: #8a9096; }
.tehes-brand-bar a:hover { color: #da2000; }
.tehes-brand-bar span { margin: 0; color: #cdd1d5; }
@media (max-width: 1024px) { .tehes-brand-bar-in { text-align: left; font-size: 10px; } }

/* ---------- Odzivni popravki (woo-68) ---------- */
/* domača stran: iskalnik v temnem pasu – v glavi je iskalnik že na vseh širinah ≤1024 */
.tehes-hero-search { align-items: center; }
.tehes-hero-search button { height: 52px; flex: 0 0 auto; }
@media (max-width: 1024px) {
  .tehes-hero--tiles .tehes-hero-search, .tehes-hero--tiles .hint { display: none !important; }
  .tehes-hero-top { margin-bottom: 18px; }
}
/* kartice izdelkov: koda in razpoložljivost berljivi na telefonu */
.wd-product .tehes-sku { font-size: 12px; }
.wd-product .tehes-availability { font-size: 12px; }
@media (max-width: 600px) {
  .wd-product .tehes-sku, .wd-product .tehes-availability { font-size: 11.5px; line-height: 1.35; }
}
/* izbira vrste dela na telefonu: 3 v vrsto namesto 2 (krajše drsenje) */
@media (max-width: 600px) {
  .tehes-ymm .tehes-ymm-tiles.parts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tehes-ymm-tiles.parts .tehes-ymm-tile { padding: 10px 4px 8px; }
  .tehes-ymm-tiles.parts .tehes-ymm-tile svg { width: 28px; height: 28px; margin-bottom: 4px; }
  .tehes-ymm-tiles.parts .tehes-ymm-tile strong { font-size: 12px; line-height: 1.2; word-break: break-word; hyphens: auto; }
}
/* staff iskanje: tabela se drsi vodoravno, ne razbije strani */
.tehes-staff-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tehes-staff-table a { font-size: 12px; }
/* stolpec z naslovom v črnem pasu se ≤1024 ne sme raztegniti na 420 px višine */
@media (max-width: 1024px) {
  .tehes-hero--tiles .tehes-hero-text { flex: 0 0 auto; }
}
/* povpraševanje: obrazec ima isti uvodni stavek kot okvir nad njim – podvojeno */
.tehes-povp-form .wpcf7-form > p:first-of-type { display: none; }
/* logotip SVG: brez lastne širine bi se v glavi skrčil na 0 */
.site-logo .wd-logo img[src*="tehes-logo"] { width: 100%; height: auto; }
.tehes-footer .logo img { display: block; width: 230px; max-width: 100%; height: auto; }
.wd-copyrights .wd-col-start { font-size: 13px; line-height: 1.6; }
.wd-copyrights .tehes-copy-note { display: block; opacity: .75; font-size: 12px; }
.tehes-footer .legal .tehes-copy-note { display: block; opacity: .7; font-size: 12px; margin-top: 3px; }
.tehes-footer .legal > span:last-child { text-align: right; }
@media (max-width: 600px) { .tehes-footer .legal > span:last-child { text-align: left; } }

/* ---------- Piljenje (woo-94) ---------- */
/* kartice v isti vrstici so enako visoke (mreža jih je poravnala na vrh) */
.wd-products.wd-grid-g { align-items: stretch; }
.products .product-grid-item { display: flex; }
.products .product-grid-item .product-wrapper { width: 100%; }
.wd-carousel-item > .wd-product { height: 100%; }
/* na karticah ni oznake »Ni na zalogi« (razpoložljivost je v vrstici »Dobavljivo …«); na strani artikla ostane */
.wd-product .product-labels .product-label.out-of-stock { display: none !important; }
/* domača stran: okvir »Prodaja rezervnih delov« enako visok kot seznam kategorij */
.tehes-feat-cols { align-items: stretch; }
/* gumb »Povprašaj za ta del« na strani artikla brez zaloge */
.tehes-povprasi { margin: 14px 0 6px; }
.tehes-povprasi .tehes-povprasi-btn { min-height: 48px; padding: 0 26px; font-weight: 700; display: inline-flex; align-items: center; background: #da2000 !important; border-color: #da2000 !important; color: #fff !important; }
.tehes-povprasi .tehes-povprasi-btn:hover { background: #b81b00 !important; border-color: #b81b00 !important; }
