:root {
  --if-ink: #101820;
  --if-paper: #fafafa;
  --if-steel: #57636c;
  --if-line: #c9d0cc;
  --if-copper: #c1622b;
  --if-copper-dark: #9b4a1e;
  --if-ice: #05a2de;
  --if-green: #2e9b54;
}

.if-wrap { width: min(1260px, calc(100% - 56px)); margin-inline: auto; }
.if-single-product { color: var(--if-ink); font-family: Inter, sans-serif; }
.if-single-product h1, .if-single-product h2, .if-single-product h3 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.025em; }
.if-breadcrumbs { display: flex; gap: 9px; align-items: center; padding: 24px 0; overflow-x: auto; color: var(--if-steel); font-size: 12px; white-space: nowrap; }
.if-breadcrumbs a { color: inherit; text-decoration: none; }
.if-breadcrumbs a:hover { color: var(--if-copper-dark); }
.if-breadcrumbs strong { color: var(--if-ink); font-weight: 500; }
.if-product-summary { padding: 15px 0 80px; }
.if-product-summary__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 7vw; }
.if-product-gallery {
  position: relative;
  min-width: 0;
}

.if-gallery-main {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 475px;
  padding: 50px;
  border: 1px solid var(--if-line);
  background: #f5f7f6;
  overflow: hidden;
}

.if-gallery-image-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 375px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.if-gallery-image-button img {
  display: block;
  width: 94%;
  max-height: 380px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.if-gallery-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 7px 10px;
  background: var(--if-copper);
  color: #fff;
  font: 600 10px "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.if-gallery-zoom {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--if-line);
  border-radius: 50%;
  background: #fff;
  color: var(--if-ink);
  font-size: 24px;
  cursor: zoom-in;
}

.if-gallery-zoom:hover {
  border-color: var(--if-ink);
}

.if-gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
 /* overflow-x: auto;
  scrollbar-width: thin;*/
}

.if-gallery-thumbnail {
  display: grid;
  place-items: center;
  flex: 0 0 86px;
  width: 86px;
  height: 76px;
  padding: 8px;
  border: 1px solid var(--if-line);
  background: #fff;
  cursor: pointer;
}

.if-gallery-thumbnail.is-active {
  border-color: var(--if-ink);
}

.if-gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

body.if-lightbox-open {
  overflow: hidden;
}

.if-gallery-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgb(16 24 32 / 96%);
  color: #fff;
}

.if-gallery-lightbox::backdrop {
  background: rgb(16 24 32 / 96%);
}

.if-gallery-lightbox__inner {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 90px;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 30px;
}

.if-gallery-lightbox__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.if-gallery-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  user-select: none;
}

.if-gallery-lightbox__counter {
  padding-top: 12px;
  color: rgb(255 255 255 / 75%);
  font-size: 13px;
}

.if-gallery-lightbox__close,
.if-gallery-lightbox__arrow {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.if-gallery-lightbox__close:hover,
.if-gallery-lightbox__arrow:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 18%);
}

.if-gallery-lightbox__close {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 30px;
}

.if-gallery-lightbox__arrow {
  width: 56px;
  height: 56px;
  font-size: 42px;
  line-height: 1;
}

.if-gallery-lightbox__arrow--previous {
  justify-self: start;
}

.if-gallery-lightbox__arrow--next {
  justify-self: end;
}

@media (max-width: 767px) {
  .if-gallery-main {
    min-height: 300px;
    padding: 30px;
  }

  .if-gallery-image-button {
    min-height: 240px;
  }

  .if-gallery-image-button img {
    max-height: 250px;
  }

  .if-gallery-lightbox__inner {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    padding: 16px 8px;
  }

  .if-gallery-lightbox__arrow {
    width: 44px;
    height: 44px;
    font-size: 34px;
  }

  .if-gallery-lightbox__close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .if-gallery-lightbox__figure img {
    max-height: calc(100vh - 80px);
  }
}
.if-product-brand-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.if-brand-pill { padding: 7px 10px; border: 1px solid var(--if-ink); color: var(--if-ink); font: 700 12px "Space Grotesk", sans-serif; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.if-stock { display: flex; align-items: center; gap: 7px; color: var(--if-steel); font-size: 12px; }
.if-stock i, .if-availability i { width: 7px; height: 7px; border-radius: 50%; background: var(--if-green); }
.if-stock.is-out-of-stock i { background: var(--if-copper); }
.if-stock .stock { margin: 0; color: inherit; }
.if-product-info .product_title { margin: 0 0 15px; font-size: clamp(32px, 3.1vw, 47px); line-height: 1.05; }
.if-product-identifiers { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 18px; border-bottom: 1px solid var(--if-line); color: var(--if-steel); font-size: 12px; }
.if-product-identifiers strong, .if-product-identifiers a { color: var(--if-ink); }
.if-product-lead { margin: 22px 0; color: var(--if-steel); font-size: 15px; }
.if-product-lead p:last-child { margin-bottom: 0; }
.if-product-info .woocommerce-product-rating { margin: 0 0 15px; }
.if-price-box { padding: 20px 22px; margin: 18px 0 16px; background: var(--if-paper); }
.if-price-label, .if-vat-note, .if-b2b-price-main p { margin: 0; color: var(--if-steel); font-size: 12px; }
.if-public-price { font: 700 34px "Space Grotesk", sans-serif; }
.if-public-price .amount { color: var(--if-ink); }
.if-b2b-price-main { display: flex; align-items: end; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--if-line); }
.if-b2b-price-main strong { font: 700 32px "Space Grotesk", sans-serif; }
.if-price-box dl { margin: 10px 0 0; }
.if-price-box dl > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12px; }
.if-price-box dt { color: var(--if-steel); }
.if-price-box dd { margin: 0; }
.if-price-total { padding-top: 9px !important; margin-top: 5px; border-top: 1px solid var(--if-line); font-weight: 600; }
.if-price-on-request { margin: 0; font: 700 25px "Space Grotesk", sans-serif; }
.if-guest-purchase { display: grid; grid-template-columns: 50px 1fr; gap: 14px; padding: 20px; border: 1px solid var(--if-line); }
.if-lock-icon { display: grid; place-items: center; width: 46px; height: 46px; background: var(--if-ink); color: #fff; font: 600 11px "IBM Plex Mono", monospace; }
.if-guest-purchase h2 { margin: 0 0 5px; font-size: 17px; }
.if-guest-purchase p { margin: 0; color: var(--if-steel); font-size: 12px; }
.if-guest-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.if-button, .if-b2b-purchase .single_add_to_cart_button, .if-related-products .button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 11px 20px; border: 1px solid transparent !important; border-radius: 2px !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.if-button--primary, .if-b2b-purchase .single_add_to_cart_button { background: var(--if-copper) !important; color: #fff !important; }
.if-button--primary:hover, .if-b2b-purchase .single_add_to_cart_button:hover { background: var(--if-copper-dark) !important; }
.if-button--outline { border-color: var(--if-ink) !important; color: var(--if-ink); }
.if-button--outline:hover { background: var(--if-ink); color: #fff; }
.if-b2b-purchase { padding: 18px; border: 1px solid var(--if-line); }
.if-availability { display: flex; margin-bottom: 14px; }
.if-availability span { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.if-b2b-purchase form.cart { display: flex; gap: 9px; margin: 0; }
.if-b2b-purchase form.cart .quantity { display: flex; border: 1px solid var(--if-line); }
.if-b2b-purchase .quantity .qty { width: 50px; min-height: 44px; padding: 0; border: 0; border-right: 1px solid var(--if-line); border-left: 1px solid var(--if-line); text-align: center; appearance: textfield; }
.if-qty-button { width: 38px; border: 0; background: #fff; font-size: 18px; cursor: pointer; }
.if-b2b-purchase .single_add_to_cart_button { flex: 1; }
.if-service-list { display: grid; gap: 7px; padding: 17px 0 0; margin: 0; color: var(--if-steel); font-size: 12px; list-style: none; }
.if-service-list span { margin-right: 7px; color: var(--if-copper); font-weight: 700; }
.if-key-specs { border-top: 1px solid var(--if-line); border-bottom: 1px solid var(--if-line);     background: 
color-mix(in srgb, var(--wp--preset--color--light-gray) 5%, #05a2de 3%);
    width: calc(100vw - 15px);
    left: 50%;
    position: relative;
    transform: translateX(-50%); }
.if-key-specs__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.if-key-specs article { padding: 26px 22px; border-left: 1px solid var(--if-line); }
.if-key-specs article:first-child { border-left: 0; }
.if-key-specs strong { font: 700 25px "Space Grotesk", sans-serif; }
.if-key-specs p { margin: 2px 0 0; color: var(--if-steel); font-size: 12px; }
.if-product-details { padding: 84px 0; }
.if-product-details .woocommerce-tabs ul.tabs { display: flex; gap: 2px; padding: 0 !important; margin: 0 !important; overflow-x: auto; border-bottom: 1px solid var(--if-line); list-style: none; }
.if-product-details .woocommerce-tabs ul.tabs::before, .if-product-details .woocommerce-tabs ul.tabs li::before, .if-product-details .woocommerce-tabs ul.tabs li::after { display: none !important; }
.if-product-details .woocommerce-tabs ul.tabs li { padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; }
.if-product-details .woocommerce-tabs ul.tabs a { display: block; padding: 14px 20px !important; border-bottom: 2px solid transparent; color: var(--if-steel) !important; font-size: 14px; font-weight: 600 !important; text-decoration: none; white-space: nowrap; }
.if-product-details .woocommerce-tabs ul.tabs li.active a { border-color: var(--if-copper); color: var(--if-ink) !important; }
.if-product-details .woocommerce-Tabs-panel { padding-top: 42px; color: var(--if-steel); }
.if-product-details .woocommerce-Tabs-panel > h2:first-child { color: var(--if-ink); font-size: 32px; }
.if-product-details table.shop_attributes { width: 100%; border-collapse: collapse; border-top: 1px solid var(--if-ink); }
.if-product-details table.shop_attributes th, .if-product-details table.shop_attributes td { padding: 13px 10px; border: 0; border-bottom: 1px solid var(--if-line); text-align: left; font-style: normal; }
.if-product-details table.shop_attributes tr:nth-child(even) { background: var(--if-paper); }
.if-related-products { padding: 82px 0; background: var(--if-paper); width: calc(100vw - 15px); position: relative; left: 50%; transform: translateX(-50%); }

.if-related-products li.product > a:first-child { color: var(--if-ink); text-decoration: none; }
.if-related-products li.product img { aspect-ratio: 1.08; width: 100% !important; margin: 0 0 18px !important; padding: 20px; object-fit: contain; background: color-mix(in srgb, var(--wp--preset--color--light-gray) 5%, #05a2de 3%); mix-blend-mode: multiply; }
.if-related-products li.product .woocommerce-loop-product__title { min-height: 60px; padding: 0 18px !important; margin: 0 0 8px !important; font-size: 16px !important; line-height: 1.35; }
.if-related-products li.product .price { display: block !important; padding: 0 18px; color: var(--if-ink) !important; }
.if-loop-price { display: block; font: 700 17px "Space Grotesk", sans-serif; }
.if-loop-price small { display: block; margin-top: 2px; color: var(--if-steel); font: 400 10px Inter, sans-serif; }
.if-related-products li.product > .button { margin: 15px 18px 0 !important; border-color: var(--if-ink) !important; background: #fff !important; color: var(--if-ink) !important; }
.if-related-products li.product > .button:hover { background: var(--if-ink) !important; color: #fff !important; }
.if-header-actions { display: flex; align-items: center; gap: 12px; }
.if-header-login, .if-header-account { display: flex; align-items: center; gap: 9px; color: var(--if-ink); text-decoration: none; }
.if-header-login__icon, .if-account-avatar { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: var(--if-paper); font: 600 11px "IBM Plex Mono", monospace; }
.if-account-avatar { background: var(--if-ink); color: #fff; }
.if-header-login span:last-child, .if-header-account span:last-child { font-size: 13px; font-weight: 600; line-height: 1.15; }
.if-header-login small, .if-header-account small { display: block; margin-bottom: 3px; color: var(--if-steel); font-size: 10px; font-weight: 400; }
.if-header-cart { position: relative; display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--if-line); border-radius: 50%; color: var(--if-ink); }
.if-header-cart svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.if-header-cart span { position: absolute; top: -5px; right: -4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--if-copper); color: #fff; font-size: 10px; }
@media (max-width: 980px) {

}
@media (max-width: 680px) {
  .if-wrap { width: 100%!important; }
  .if-product-summary { padding-top: 4px; padding-bottom: 55px; }
  .if-product-gallery .woocommerce-product-gallery__image { min-height: 300px; padding: 30px; }
  .if-product-gallery .woocommerce-product-gallery__image img { max-height: 250px; }
  .if-product-info .product_title { font-size: 32px; }
  .if-guest-purchase { grid-template-columns: 42px 1fr; }
  .if-guest-actions { flex-direction: column; }
  .if-button { width: 100%; }
  .if-b2b-price-main { align-items: flex-start; flex-direction: column; gap: 5px; }
  .if-b2b-purchase form.cart { flex-direction: column; }
  .if-b2b-purchase form.cart .quantity { height: 46px; }
  .if-b2b-purchase .quantity .qty { flex: 1; }
  .if-key-specs__grid { grid-template-columns: 1fr 1fr; }
  .if-key-specs article:nth-child(3) { border-left: 0; border-top: 1px solid var(--if-line); }
  .if-key-specs article:nth-child(4) { border-top: 1px solid var(--if-line); }
  .if-product-details { padding: 60px 0; }
  .if-product-details .woocommerce-tabs ul.tabs a { padding-inline: 12px !important; font-size: 13px; }
  .if-related-products { padding: 62px 15px; }
  .if-header-account span:last-child { display: none; }
  .if-product-summary__grid {grid-template-columns: 1fr!important;}
}

.related-header h2 {margin: 1rem 0 1.2rem;}
.if-related-products {    background: 
color-mix(in srgb, var(--wp--preset--color--light-gray) 5%, #05a2de 3%);}
/* =========================================================
   SADRŽAJ OPISA PROIZVODA
   ========================================================= */

.if-product-details #tab-description {
  color: var(--if-ink);
  font-size: 15px;
  line-height: 1.7;
}

/*
 * Uvodni naziv proizvoda.
 * Pokriva i običan <strong> i varijantu koju WordPress
 * automatski ubaci u <p>.
 */
.if-product-details #tab-description > strong:first-child,
.if-product-details #tab-description > p:first-child strong:only-child {
  display: block;
  margin-bottom: 22px;
  color: var(--if-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

/* =========================================================
   LISTA KARAKTERISTIKA
   ========================================================= */

.if-product-details #tab-description > ul:first-of-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  margin: 0 0 55px;
  border: 0;
  background: var(--if-line);
  list-style: none;
}

.if-product-details #tab-description > ul:first-of-type > li {
  position: relative;
  min-width: 0;
  padding: 20px 22px 20px 58px;
  margin: 0;
  background: #fff;
  color: var(--if-steel);
  line-height: 1.55;
}

/*
 * Narandžasti checkmark.
 * Za plavu varijantu zameni var(--if-copper) sa var(--if-ice).
 */
.if-product-details #tab-description > ul:first-of-type > li::before {
  content: "✓";
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(
    in srgb,
    var(--if-copper) 12%,
    transparent
  );
  color: var(--if-copper);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.if-product-details #tab-description > ul:first-of-type > li:hover {
  background: #fafbfa;
}

/*
 * Postojeći sadržaj ima svaki tekst liste unutar <strong>.
 * Ovako neće izgledati previše podebljano.
 */
.if-product-details #tab-description > ul:first-of-type > li strong {
  color: var(--if-ink);
  font-weight: 500;
}

/* =========================================================
   NASLOVI TEHNIČKIH SPECIFIKACIJA
   ========================================================= */

.if-product-details #tab-description h3 {
  position: relative;
  padding: 0 0 13px 18px;
  margin: 52px 0 20px;
  border-bottom: 1px solid var(--if-line);
  color: var(--if-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.if-product-details #tab-description h3::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 14px;
  left: 0;
  width: 4px;
  background: var(--if-copper);
}

/* Sakriva prazne h3 elemente koji postoje u starom sadržaju. */
.if-product-details #tab-description h3:empty {
  display: none;
}

/* =========================================================
   TABELE TEHNIČKIH SPECIFIKACIJA
   ========================================================= */

.if-product-details #tab-description table {
  width: 100% !important;
  height: auto !important;
  margin: 0 0 42px;
  border: 1px solid var(--if-line);
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
}

.if-product-details #tab-description table thead th {
  padding: 15px 18px;
  border: 0;
  background: var(--if-ice);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.if-product-details #tab-description table tbody tr {
  border-bottom: 1px solid var(--if-line);
}

.if-product-details #tab-description table tbody tr:last-child {
  border-bottom: 0;
}

.if-product-details #tab-description table tbody tr:nth-child(even) {
  background: #f5f7f6;
}

.if-product-details #tab-description table tbody tr:hover {
  background: color-mix(
    in srgb,
    var(--if-ice) 7%,
    white
  );
}

.if-product-details #tab-description table td {
  width: 50%;
  padding: 13px 18px;
  border: 0;
  vertical-align: top;
}

.if-product-details #tab-description table td:first-child {
  color: var(--if-steel);
  font-weight: 500;
}

.if-product-details #tab-description table td:last-child {
  color: var(--if-ink);
  font-weight: 600;
}

/* =========================================================
   MOBILNI PRIKAZ
   ========================================================= */

@media (max-width: 767px) {
  .if-product-details #tab-description {
    font-size: 14px;
  }

  .if-product-details #tab-description > ul:first-of-type {
    grid-template-columns: 1fr;
    margin-bottom: 42px;
  }

  .if-product-details #tab-description > ul:first-of-type > li {
    padding: 17px 16px 17px 52px;
  }

  .if-product-details #tab-description > ul:first-of-type > li::before {
    top: 17px;
    left: 16px;
  }

  .if-product-details #tab-description h3 {
    padding-left: 14px;
    margin-top: 42px;
    font-size: 20px;
  }

  .if-product-details #tab-description table {
    font-size: 13px;
  }

  .if-product-details #tab-description table thead th {
    padding: 13px 14px;
  }

  .if-product-details #tab-description table td {
    padding: 11px 12px;
  }
}

@media (max-width: 480px) {
  /*
   * Na veoma uskom ekranu naziv i vrednost idu jedan ispod drugog.
   */
  .if-product-details #tab-description table,
  .if-product-details #tab-description table tbody,
  .if-product-details #tab-description table tr,
  .if-product-details #tab-description table td {
    display: block;
    width: 100% !important;
  }

  .if-product-details #tab-description table thead {
    display: table;
    width: 100%;
  }

  .if-product-details #tab-description table tbody tr {
    padding: 11px 14px;
  }

  .if-product-details #tab-description table td {
    padding: 3px 0;
  }

  .if-product-details #tab-description table td:first-child {
    font-size: 12px;
  }

  .if-product-details #tab-description table td:last-child {
    font-size: 14px;
  }
}



/* =========================================================
   ZAJEDNIČKI WOOCOMMERCE PRODUCT GRID
   ========================================================= */

.woocommerce ul.products {
  display: grid !important;

  /*
   * Maksimalno četiri proizvoda u redu:
   *
   * 4 proizvoda = po 1/4 kontejnera
   * 3 proizvoda = po 1/3 kontejnera
   * 2 proizvoda = po 1/2 kontejnera
   */
  grid-template-columns:
    repeat(auto-fit, minmax(min(100%, 270px), 1fr));

  gap: 1px;
  padding: 1px !important;
  margin: 0 !important;
  border: 0;
  background: var(--if-line);
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

/* Kartica proizvoda */

.woocommerce ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
  overflow: hidden;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.woocommerce ul.products li.product:hover {
  z-index: 2;
  background: #fafbfa;
  box-shadow: 0 12px 32px rgb(16 24 32 / 10%);
}

/*
 * Postojeći WooCommerce link se razvlači preko cele kartice.
 */
.woocommerce ul.products li.product
a.woocommerce-LoopProduct-link {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding-bottom: 20px;
  color: var(--if-ink);
  text-decoration: none;
}

/* Slika proizvoda */

.woocommerce ul.products li.product
a.woocommerce-LoopProduct-link img {
  display: block;
  width: 100% !important;
  aspect-ratio: 1.08;
  padding: 24px;
  margin: 0 0 20px !important;
  background: color-mix(in srgb, var(--wp--preset--color--light-gray) 5%, #05a2de 3%);
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 240ms ease;
}

.woocommerce ul.products li.product:hover
a.woocommerce-LoopProduct-link img {
  transform: scale(1.035);
  background: color-mix(in srgb, var(--wp--preset--color--light-gray) 10%, #05a2de 6%);
}

/* Naziv proizvoda */

.woocommerce ul.products li.product
.woocommerce-loop-product__title {
  min-height: 64px;
  padding: 0 20px !important;
  margin: 0 0 10px !important;
  color: var(--if-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

/* Cena */

.woocommerce ul.products li.product .price {
  display: block !important;
  padding: 0 20px;
  margin: 0 !important;
  color: var(--if-ink) !important;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px !important;
  font-weight: 650;
  border-top: 1px solid var(--wp--preset--color--light-gray);
  padding-top: 25px;
}

.woocommerce ul.products li.product .price small,
.woocommerce ul.products li.product .if-loop-price small {
  display: block;
  margin-top: 3px;
  color: var(--if-steel);
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 400;
}

/* Akcijska cena */

.woocommerce ul.products li.product .price del {
  margin-right: 6px;
  color: var(--if-steel);
  font-size: 13px;
  opacity: 0.75;
}

.woocommerce ul.products li.product .price ins {
  color: var(--if-copper);
  text-decoration: none;
}

/* Sale oznaka */

.woocommerce ul.products li.product .onsale {
  z-index: 3;
  top: 16px !important;
  right: auto !important;
  left: 16px !important;
  min-width: 0;
  min-height: 0;
  padding: 7px 10px;
  margin: 0 !important;
  border-radius: 0;
  background: var(--if-copper);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

/* Strelica */

.woocommerce ul.products li.product
.if-product-card-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: auto 20px 0 auto;
  border: 1px solid var(--if-line);
  border-radius: 50%;
  background: #fff;
  color: var(--if-ink);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.if-product-card-arrow {
  position: absolute;
      right: 0;
    bottom: 20px;
}

.woocommerce ul.products li.product:hover
.if-product-card-arrow {
  border-color: var(--if-copper);
  background: var(--if-copper);
  color: #fff;
  transform: translateX(3px);
}

/*
 * Ako tema ipak negde ispiše button, sakrij ga.
 */
.woocommerce ul.products li.product > .button,
.woocommerce ul.products li.product
.add_to_cart_button {
  display: none !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199px) {
  .woocommerce ul.products {
    grid-template-columns:
      repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }
}

@media (max-width: 767px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce ul.products li.product
  a.woocommerce-LoopProduct-link img {
    padding: 16px;
    margin-bottom: 16px !important;
  }

  .woocommerce ul.products li.product
  .woocommerce-loop-product__title {
    min-height: 58px;
    padding-inline: 14px !important;
    font-size: 14px !important;
  }

  .woocommerce ul.products li.product .price {
    padding-inline: 14px;
    font-size: 15px !important;
  }

  .woocommerce ul.products li.product
  .if-product-card-arrow {
    width: 38px;
    height: 38px;
    margin-right: 14px;
  }
}

@media (max-width: 479px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .woocommerce ul.products li.product
  .woocommerce-loop-product__title {
    min-height: 0;
  }
}