/* ============================================================
   K MOTO — WooCommerce Dark Theme
   Ucitava se samo na shop / kategorija / single product stranicama
   (preko PHP snippeta, is_woocommerce()). NE ide u Additional CSS.
   ============================================================ */

:root {
  --km-bg:       #121215;
  --km-bg2:      #18181c;
  --km-bg3:      #1e1e23;
  --km-ac:       #C6D92C;
  --km-ac-dim:   rgba(198,217,44,.12);
  --km-ac-glow:  rgba(198,217,44,.55);
  --km-border:   rgba(255,255,255,.07);
  --km-border-h: rgba(198,217,44,.22);
  --km-text:     #ffffff;
  --km-text-dim: rgba(255,255,255,.55);
  --km-radius:   18px;
  --km-font:     'Poppins', sans-serif;
}

/* ── GLOBALNA POZADINA ── */
body,
.site-main,
.woocommerce-page .site-main,
.woocommerce .site-main {
  background: var(--km-bg) !important;
  color: var(--km-text) !important;
  font-family: var(--km-font) !important;
}

/* Shop wrapper */
.woocommerce,
.woocommerce-page {
  background: var(--km-bg) !important;
}

/* ── BREADCRUMB ── */
.woocommerce .woocommerce-breadcrumb,
.woocommerce-breadcrumb {
  color: var(--km-text-dim) !important;
  font-size: 12px !important;
  letter-spacing: .06em !important;
  font-family: var(--km-font) !important;
}
.woocommerce .woocommerce-breadcrumb a,
.woocommerce-breadcrumb a {
  color: var(--km-text-dim) !important;
  text-decoration: none !important;
  transition: color .2s !important;
}
.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--km-ac) !important;
}

/* ── PAGE TITLE (arhiva kategorije) ── */
.woocommerce-products-header__title,
.page-title,
h1.page-title {
  font-family: var(--km-font) !important;
  font-weight: 800 !important;
  letter-spacing: -.04em !important;
  color: var(--km-text) !important;
}

/* ── RESULTS COUNT + ORDERING ── */
.woocommerce-result-count {
  color: var(--km-text-dim) !important;
  font-family: var(--km-font) !important;
  font-size: 13px !important;
}

.woocommerce-ordering select,
.woocommerce form .select2-container--default .select2-selection--single,
select.orderby {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid var(--km-border) !important;
  border-radius: 999px !important;
  color: var(--km-text) !important;
  font-family: var(--km-font) !important;
  font-size: 13px !important;
  padding: 8px 36px 8px 16px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  transition: border-color .25s, background .25s !important;
  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 d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
}
.woocommerce-ordering select:hover,
select.orderby:hover {
  border-color: var(--km-border-h) !important;
  background-color: rgba(198,217,44,.06) !important;
}
.woocommerce-ordering select:focus,
select.orderby:focus {
  outline: none !important;
  border-color: var(--km-ac) !important;
  box-shadow: 0 0 0 3px rgba(198,217,44,.12) !important;
}

/* ── SIDEBAR / WIDGET FILTERI ── */
.widget_price_filter,
.widget_layered_nav,
.widget_layered_nav_filters,
.widget_rating_filter,
.woocommerce-widget-layered-nav,
.wc-block-components-price-slider,
aside.widget,
.shop-sidebar .widget,
.sidebar .widget,
#secondary .widget {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--km-border) !important;
  border-radius: var(--km-radius) !important;
  padding: 24px !important;
  margin-bottom: 16px !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: border-color .3s !important;
}
aside.widget::before,
#secondary .widget::before,
.shop-sidebar .widget::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(70% 60% at 50% 0%, rgba(198,217,44,.06), transparent 70%) !important;
  pointer-events: none !important;
}
aside.widget:hover,
#secondary .widget:hover {
  border-color: var(--km-border-h) !important;
}

/* Widget naslovi (Cena, Kategorija, Status...) */
.widget-title,
.widgettitle,
h2.widgettitle,
h3.widget-title,
.woocommerce-widget-layered-nav h2,
aside .widget h2,
aside .widget h3 {
  font-family: var(--km-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: rgba(240,240,230,.45) !important;
  margin: 0 0 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}

/* Checkboxes u filterima — prljava bela */
.woocommerce-widget-layered-nav-list__item a,
.woocommerce ul.product_list_widget li a,
.widget_layered_nav ul li a,
.widget_layered_nav_filters ul li a {
  color: rgba(240,240,230,.75) !important;
  font-family: var(--km-font) !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: color .2s !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px 0 !important;
}
.widget_layered_nav ul li a:hover,
.woocommerce-widget-layered-nav-list__item a:hover {
  color: #fff !important;
}
.woocommerce-widget-layered-nav-list__item--chosen a {
  color: var(--km-ac) !important;
  font-weight: 600 !important;
}

/* Count badge u filteru */
.woocommerce-widget-layered-nav-list__item .count,
.widget_layered_nav ul li .count {
  color: rgba(255,255,255,.2) !important;
  font-size: 11px !important;
}

/* Sidebar naslovi sekcija (Filteri, Cena itd.) — prljava bela */
#secondary,
.shop-sidebar,
aside#secondary * {
  color: rgba(240,240,230,.8) !important;
}
#secondary h2,
#secondary h3,
#secondary label,
#secondary li,
#secondary p,
.shop-sidebar h2,
.shop-sidebar h3,
.shop-sidebar label {
  color: rgba(240,240,230,.8) !important;
  font-family: var(--km-font) !important;
}

/* Price slider */
.price_slider_wrapper .ui-widget-content {
  background: rgba(255,255,255,.1) !important;
  border: none !important;
  height: 3px !important;
  border-radius: 2px !important;
}
.price_slider_wrapper .ui-slider-range {
  background: var(--km-ac) !important;
}
.price_slider_wrapper .ui-slider-handle {
  background: var(--km-ac) !important;
  border: 2px solid var(--km-bg) !important;
  border-radius: 50% !important;
  width: 16px !important;
  height: 16px !important;
  top: -7px !important;
  box-shadow: 0 0 10px var(--km-ac-glow) !important;
  cursor: grab !important;
  transition: box-shadow .2s !important;
}
.price_slider_wrapper .ui-slider-handle:active { cursor: grabbing !important; }
.price_slider_wrapper .ui-slider-handle:hover {
  box-shadow: 0 0 18px var(--km-ac-glow) !important;
}

/* Price filter input */
.price_slider_amount .button,
.woocommerce .widget_price_filter .price_slider_amount .button {
  background: var(--km-ac) !important;
  color: #121215 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 8px 18px !important;
  font-family: var(--km-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: transform .3s cubic-bezier(.2,1.4,.4,1), box-shadow .3s !important;
}
.price_slider_amount .button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px -6px var(--km-ac-glow) !important;
}
.price_slider_amount {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 16px !important;
}
.price_slider_amount .price_label {
  font-size: 13px !important;
  color: var(--km-text-dim) !important;
  font-family: var(--km-font) !important;
}
.price_slider_amount .price_label span {
  color: var(--km-text) !important;
  font-weight: 600 !important;
}

/* ── PRODUCT KARTICE (samo na shop/kategorija stranicama, ne početna) ── */
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
ul.products {
  display: grid !important;
  gap: 16px !important;
}

body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
ul.products li.product {
  background: rgba(255,255,255,.025) !important;
  border: 1px solid var(--km-border) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  transition:
    transform .45s cubic-bezier(.2,1.4,.4,1),
    border-color .3s,
    box-shadow .4s !important;
  display: flex !important;
  flex-direction: column !important;
}
/* Top lime line akcenat */
body.post-type-archive-product ul.products li.product::after,
body.tax-product_cat ul.products li.product::after,
ul.products li.product::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 20% !important;
  right: 20% !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(198,217,44,.4), transparent) !important;
  opacity: 0 !important;
  transition: opacity .4s !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
ul.products li.product:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(198,217,44,.18) !important;
  box-shadow:
    0 20px 50px -16px rgba(0,0,0,.8),
    0 0 0 1px rgba(198,217,44,.08) !important;
}
body.post-type-archive-product ul.products li.product:hover::after,
body.tax-product_cat ul.products li.product:hover::after,
ul.products li.product:hover::after {
  opacity: 1 !important;
}

/* Slika — transparentna pozadina, motor lebdi */
ul.products li.product .woocommerce-loop-product__link {
  display: block !important;
  text-decoration: none !important;
  background: transparent !important;
}
/* Ograničeno na shop/kategorija stranice — NE utiče na Elementor početnu */
body.post-type-archive-product ul.products li.product img,
body.tax-product_cat ul.products li.product img,
ul.products li.product img {
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  object-position: center center !important;
  padding: 0 !important;
  background: transparent !important;
  border-bottom: none !important;
  transition: transform .5s cubic-bezier(.2,1,.4,1) !important;
  display: block !important;
}
body.post-type-archive-product ul.products li.product:hover img,
body.tax-product_cat ul.products li.product:hover img,
ul.products li.product:hover img {
  transform: scale(1.06) translateY(-4px) !important;
}

/* Wrapper slike */
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__link,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__link,
ul.products li.product .woocommerce-loop-product__link {
  border-radius: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  display: block !important;
}

/* Sadržaj kartice */
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__link h2,
body.post-type-archive-product ul.products li.product h2.woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__link h2,
body.tax-product_cat ul.products li.product h2.woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__link h2,
ul.products li.product h2.woocommerce-loop-product__title {
  font-family: var(--km-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--km-text) !important;
  margin: 0 !important;
  padding: 16px 16px 6px !important;
  line-height: 1.25 !important;
  letter-spacing: -.02em !important;
  position: relative !important;
  z-index: 1 !important;
  border: none !important;
  background: transparent !important;
}

/* Kategorija tag unutar kartice — sakrij u potpunosti */
body.post-type-archive-product ul.products li.product .ast-woo-product-category,
body.post-type-archive-product ul.products li.product .posted_in,
body.post-type-archive-product ul.products li.product .woocommerce-loop-category__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__link + span,
body.post-type-archive-product ul.products li.product > span.woocommerce-loop-category__title,
body.post-type-archive-product ul.products li.product .product-categories,
body.post-type-archive-product ul.products li.product .woo-product-category,
body.post-type-archive-product ul.products li.product mark,
body.post-type-archive-product ul.products li.product .category,
body.tax-product_cat ul.products li.product .ast-woo-product-category,
body.tax-product_cat ul.products li.product .posted_in,
body.tax-product_cat ul.products li.product .woocommerce-loop-category__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__link + span,
body.tax-product_cat ul.products li.product > span.woocommerce-loop-category__title,
body.tax-product_cat ul.products li.product .product-categories,
body.tax-product_cat ul.products li.product .woo-product-category,
body.tax-product_cat ul.products li.product mark,
body.tax-product_cat ul.products li.product .category,
ul.products li.product .ast-woo-product-category,
ul.products li.product .posted_in,
ul.products li.product .woocommerce-loop-category__title,
ul.products li.product .woocommerce-loop-product__link + span,
ul.products li.product > span.woocommerce-loop-category__title,
ul.products li.product .product-categories,
ul.products li.product .woo-product-category,
ul.products li.product mark,
ul.products li.product .category {
  display: none !important;
}

/* Cena — lime, prominentna */
body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
ul.products li.product .price {
  font-family: var(--km-font) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--km-ac) !important;
  padding: 10px 16px 0 !important;
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
  letter-spacing: -.02em !important;
}
body.post-type-archive-product ul.products li.product .price ins,
body.tax-product_cat ul.products li.product .price ins,
ul.products li.product .price ins {
  text-decoration: none !important;
  color: var(--km-ac) !important;
}
body.post-type-archive-product ul.products li.product .price del,
body.tax-product_cat ul.products li.product .price del,
ul.products li.product .price del {
  color: rgba(255,255,255,.25) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
body.post-type-archive-product ul.products li.product .price .woocommerce-Price-currencySymbol,
body.tax-product_cat ul.products li.product .price .woocommerce-Price-currencySymbol,
ul.products li.product .price .woocommerce-Price-currencySymbol {
  font-size: .7em !important;
  font-weight: 600 !important;
  opacity: .7 !important;
}

/* Dugme — minimalno, elegantno */
body.post-type-archive-product ul.products li.product .button,
body.post-type-archive-product ul.products li.product a.button,
body.post-type-archive-product ul.products li.product .add_to_cart_button,
body.tax-product_cat ul.products li.product .button,
body.tax-product_cat ul.products li.product a.button,
body.tax-product_cat ul.products li.product .add_to_cart_button,
ul.products li.product .button,
ul.products li.product a.button,
ul.products li.product .add_to_cart_button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 14px 16px 16px !important;
  padding: 11px 20px !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 12px !important;
  color: rgba(255,255,255,.6) !important;
  font-family: var(--km-font) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 2 !important;
  transition:
    background .25s,
    border-color .25s,
    color .25s,
    transform .35s cubic-bezier(.2,1.4,.4,1) !important;
  width: calc(100% - 32px) !important;
}
body.post-type-archive-product ul.products li.product .button:hover,
body.post-type-archive-product ul.products li.product a.button:hover,
body.tax-product_cat ul.products li.product .button:hover,
body.tax-product_cat ul.products li.product a.button:hover,
ul.products li.product .button:hover,
ul.products li.product a.button:hover {
  background: rgba(198,217,44,.08) !important;
  border-color: rgba(198,217,44,.3) !important;
  color: var(--km-ac) !important;
  transform: none !important;
}

/* Badge */
body.post-type-archive-product ul.products li.product .onsale,
body.tax-product_cat ul.products li.product .onsale,
ul.products li.product .onsale {
  background: var(--km-ac) !important;
  color: #121215 !important;
  font-family: var(--km-font) !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  border-radius: 6px !important;
  padding: 3px 10px !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.6 !important;
}



/* ── PAGINACIJA ── */
.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul {
  border: none !important;
  display: flex !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}
.woocommerce-pagination ul li,
.woocommerce nav.woocommerce-pagination ul li {
  border: none !important;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--km-border) !important;
  border-radius: 10px !important;
  color: var(--km-text-dim) !important;
  font-family: var(--km-font) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all .25s !important;
  padding: 0 !important;
}
.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--km-ac-dim) !important;
  border-color: var(--km-border-h) !important;
  color: var(--km-ac) !important;
}
.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--km-ac) !important;
  border-color: var(--km-ac) !important;
  color: #121215 !important;
  font-weight: 700 !important;
}

/* ── OFFSET ZA TRANSPARENTNI HEADER (Blocksy) ── */
/* Transparentan header lezi preko sadrzaja, pa spustamo ceo <main> da breadcrumb ne bude ispod logotipa.
   Ako treba vise/manje razmaka, menja se samo ova vrednost. */
body.single-product main#main,
body.single-product .site-main {
  padding-top: 120px !important;
}
@media (max-width: 999px) {
  body.single-product main#main,
  body.single-product .site-main {
    padding-top: 90px !important;
  }
}
@media (max-width: 689px) {
  body.single-product main#main,
  body.single-product .site-main {
    padding-top: 75px !important;
  }
}

/* ── PRODUCT SINGLE PAGE ── */

/* Radijalni ambient glow na celoj single stranici */
body.single-product {
  background: var(--km-bg) !important;
  position: relative !important;
}
.woocommerce div.product {
  background: transparent !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Slika proizvoda — rounded, blagi border, glow na hover */
.woocommerce div.product .woocommerce-product-gallery {
  position: relative !important;
}
.woocommerce div.product .woocommerce-product-gallery__wrapper {
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.03) !important;
  transition: border-color .4s, box-shadow .4s !important;
}
.woocommerce div.product .woocommerce-product-gallery__wrapper:hover {
  border-color: rgba(198,217,44,.2) !important;
  box-shadow:
    0 0 0 1px rgba(198,217,44,.08),
    0 30px 80px -20px rgba(0,0,0,.7) !important;
}
.woocommerce div.product .woocommerce-product-gallery__image img,
.woocommerce div.product .woocommerce-product-gallery img {
  border-radius: 18px !important;
  display: block !important;
}

/* Naziv */
.woocommerce div.product .product_title {
  font-family: var(--km-font) !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 800 !important;
  letter-spacing: -.04em !important;
  color: var(--km-text) !important;
  line-height: 1.1 !important;
}

/* Cena */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--km-ac) !important;
  font-family: var(--km-font) !important;
  font-weight: 800 !important;
  font-size: 28px !important;
  letter-spacing: -.03em !important;
}

/* Opis / bullet lista */
.woocommerce div.product .woocommerce-product-details__short-description {
  color: rgba(255,255,255,.65) !important;
  font-family: var(--km-font) !important;
  line-height: 1.8 !important;
  font-size: 14px !important;
}
.woocommerce div.product .woocommerce-product-details__short-description ul li {
  color: rgba(255,255,255,.65) !important;
  padding: 3px 0 !important;
}
.woocommerce div.product .woocommerce-product-details__short-description ul li::marker {
  color: var(--km-ac) !important;
}

/* SKU / Category metapodaci */
.woocommerce div.product .product_meta {
  color: rgba(255,255,255,.3) !important;
  font-family: var(--km-font) !important;
  font-size: 12px !important;
  letter-spacing: .06em !important;
}
.woocommerce div.product .product_meta a {
  color: rgba(198,217,44,.5) !important;
  text-decoration: none !important;
}

/* Separator linije i razmaci oko dugmeta */
.woocommerce div.product form.cart {
  border-top: none !important;
  border-bottom: none !important;
  padding: 4px 0 !important;
  margin: 4px 0 !important;
}
/* Linija ispod dugmeta koju tema dodaje */
.woocommerce div.product .product_meta {
  border-top: none !important;
  padding-top: 8px !important;
  margin-top: 0 !important;
}
/* Ukloni sve hr/separator elemente oko forme */
.woocommerce div.product form.cart + * {
  margin-top: 8px !important;
}
.woocommerce div.product .woocommerce-product-details__short-description + hr,
.woocommerce div.product form.cart + hr,
.woocommerce div.product hr {
  display: none !important;
}

/* Single — glavno dugme */
.woocommerce div.product form.cart .single_add_to_cart_button {
  background: var(--km-ac) !important;
  color: #121215 !important;
  font-family: var(--km-font) !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  border: none !important;
  padding: 16px 40px !important;
  font-size: 15px !important;
  letter-spacing: .02em !important;
  transition: transform .35s cubic-bezier(.2,1.4,.4,1), box-shadow .3s !important;
  width: 100% !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 36px -10px var(--km-ac-glow) !important;
  background: #d4e840 !important;
}

/* Ostala dugmad na stranici */
.woocommerce #respond input#submit,
.woocommerce a.button:not(.single_add_to_cart_button),
.woocommerce button.button:not(.single_add_to_cart_button) {
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.7) !important;
  font-family: var(--km-font) !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  padding: 12px 28px !important;
  font-size: 13px !important;
  transition: background .25s, color .25s !important;
}
.woocommerce a.button:not(.single_add_to_cart_button):hover {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}

/* Tab-ovi na single */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  background: transparent !important;
  border-bottom: 1px solid var(--km-border) !important;
  padding: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--km-text-dim) !important;
  font-family: var(--km-font) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 12px 20px !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom: 2px solid var(--km-ac) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--km-text) !important;
  font-weight: 600 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce div.product .woocommerce-tabs .panel {
  background: transparent !important;
  color: var(--km-text-dim) !important;
  font-family: var(--km-font) !important;
  padding: 24px 0 !important;
}

/* ── SHOP HERO — gradijent iza naslova kao na Distributeri ── */
.woocommerce-products-header,
.page-header,
.ast-archive-description,
.woocommerce-archive-description {
  position: relative !important;
  overflow: visible !important;
}

/* Naslov i breadcrumb iznad gradijenta */
.woocommerce-products-header *,
.page-header *,
.ast-archive-description * {
  position: relative !important;
  z-index: 1 !important;
}

/* Fallback — ako tema nema products-header wrapper, targetuj body */
body.tax-product_cat .ast-container > *:first-child,
body.post-type-archive-product .ast-container > *:first-child {
  position: relative !important;
}
/* ── SCROLL REVEAL ANIMACIJA (JS-driven, CSS-fallback visible) ── */
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
ul.products li.product {
  opacity: 1;
  transform: translateY(0);
  transition:
    border-color .3s,
    box-shadow .4s,
    transform .45s cubic-bezier(.2,1.4,.4,1),
    opacity .6s cubic-bezier(.16,1,.3,1) !important;
}
/* Klasa koju JS dodaje za staggered ulaz */
body.post-type-archive-product ul.products li.product.km-hidden,
body.tax-product_cat ul.products li.product.km-hidden,
ul.products li.product.km-hidden {
  opacity: 0 !important;
  transform: translateY(24px) !important;
}
body.post-type-archive-product ul.products li.product.km-visible,
body.tax-product_cat ul.products li.product.km-visible,
ul.products li.product.km-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
ul.products li.product:hover {
  transform: translateY(-8px) !important;
}

/* ── MISC FIXES ── */
/* Ukoni beli outline koji neke teme dodaju */
.woocommerce *:focus { outline-color: var(--km-ac) !important; }
.woocommerce input,
.woocommerce textarea,
.woocommerce select {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid var(--km-border) !important;
  border-radius: 10px !important;
  color: var(--km-text) !important;
  font-family: var(--km-font) !important;
}
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
  border-color: var(--km-ac) !important;
  box-shadow: 0 0 0 3px rgba(198,217,44,.12) !important;
  outline: none !important;
}
/* Notifikacije */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: rgba(255,255,255,.04) !important;
  border-top-color: var(--km-ac) !important;
  color: var(--km-text) !important;
  font-family: var(--km-font) !important;
  border-radius: 0 0 12px 12px !important;
}

/* ── RELATED / UPSELL / CROSS-SELL NASLOVI ── */
.related.products > h2,
.related.products .ct-module-title,
.related > h2,
.upsells.products > h2,
.upsells.products .ct-module-title,
.up-sells > h2,
.cross-sells > h2,
section.related h2,
section.upsells h2,
.ct-related-products h2,
.ct-related-products .ct-module-title {
  color: rgba(255, 255, 255, .88) !important;
  font-family: var(--km-font) !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
}


/* ── LIME GLOW NA VRHU STRANICE (shop, kategorije, single product) ── */
/* CSS se ucitava samo na WooCommerce stranicama, pa body::before ne dira ostatak sajta.
   Glow je iznad sadrzaja (screen blend) da ga ne prekrije pozadina naslovne sekcije arhive. */
body {
  position: relative !important;
}
body::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(1200px, 100%) !important;
  height: 620px !important;
  background: radial-gradient(ellipse 55% 70% at 50% 0%,
    rgba(198,217,44,.17) 0%,
    rgba(198,217,44,.07) 45%,
    transparent 78%) !important;
  pointer-events: none !important;
  mix-blend-mode: screen !important;
  z-index: 1 !important;
}
/* Wrapperi sadrzaja moraju biti providni da bi se glow video */
body .site-main,
body #main-container,
body #main,
body .site-content,
body .woocommerce-page .site-main {
  background: transparent !important;
}

/* ── TAB "PREUZIMANJA" (katalozi delova) ── */
.km-download-lead {
  color: rgba(255, 255, 255, .85) !important;
  font-size: 17px !important;
  text-align: center !important;
  margin: 0 0 28px !important;
}
.download-buttons-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 18px !important;
  padding-bottom: 8px !important;
}
.download-buttons-wrapper .download-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  min-width: 280px !important;
  padding: 20px 34px !important;
  border-radius: 14px !important;
  border: 0 !important;
  font-family: var(--km-font) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), box-shadow .3s, filter .25s !important;
}
.download-buttons-wrapper .download-btn span {
  color: inherit !important;
}
.download-buttons-wrapper .download-btn svg {
  flex: none !important;
  color: inherit !important;
}
/* Motor — lime */
.download-buttons-wrapper .motor-btn {
  background: var(--km-ac) !important;
  color: #121215 !important;
  box-shadow: 0 14px 34px -14px rgba(198, 217, 44, .6) !important;
}
/* Karoserija — prljavo bela */
.download-buttons-wrapper .body-btn {
  background: rgba(255, 255, 255, .9) !important;
  color: #121215 !important;
  box-shadow: 0 14px 34px -14px rgba(255, 255, 255, .35) !important;
}
.download-buttons-wrapper .download-btn:hover {
  transform: translateY(-3px) !important;
  filter: brightness(1.06) !important;
}
@media (max-width: 689px) {
  .download-buttons-wrapper .download-btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}