.ljfmm-menu,
.ljfmm-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ljfmm-root {
  position: static !important;
}

.ljfmm-root-link {
  align-items: center;
  border: 0;
  border-radius: 20px;
  color: #fff !important;
  display: inline-flex;
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  gap: 0;
  line-height: 21px;
  min-height: 42px;
  padding: 5px 0;
  outline: 2px dotted transparent;
  outline-offset: 6px;
  position: relative;
  text-decoration: none !important;
  transition: outline-color 0.25s ease, background-color 0.25s ease;
}

/* Invisible bridge from the header trigger into the fixed panel. */
.ljfmm-root-link::before {
  content: "";
  height: 30px;
  left: -10px;
  position: absolute;
  right: -10px;
  top: 100%;
}

.ljfmm-root-icon {
  flex: 0 0 18px;
  filter: brightness(0) invert(1);
  height: 18px;
  margin-right: 7px;
  object-fit: contain;
  width: 18px;
}

.ljfmm-root-link::after {
  color: currentColor;
  content: "\f129";
  font-family: "woodmart-font";
  font-size: clamp(6px, 50%, 18px);
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  margin-left: 4px;
  order: 3;
}

.ljfmm-root-link:is(:hover, :focus-visible),
.ljfmm-root.is-open > .ljfmm-root-link {
  outline: 2px dotted rgb(255 255 255 / 92%) !important;
  color: #fff !important;
}

.ljfmm-dropdown {
  background: #fff;
  bottom: max(12px, env(safe-area-inset-bottom));
  border-radius: 20px;
  box-shadow: 0 0 3px rgb(0 0 0 / 15%);
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  left: var(--ljfmm-viewport-left, max(15px, calc((100vw - var(--wd-container-w, 1390px)) / 2 + 15px)));
  min-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed !important;
  right: auto;
  top: var(--ljfmm-viewport-top, 160px);
  transform: translateY(4px);
  transition: opacity 120ms cubic-bezier(0.19, 1, 0.22, 1), transform 120ms ease-out;
  visibility: hidden;
  width: var(--ljfmm-viewport-width, min(calc(100vw - 30px), calc(var(--wd-container-w, 1390px) - 30px)));
  z-index: 9999;
}

.ljfmm-root.is-open > .ljfmm-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.ljfmm-tabs {
  background: #0059a6;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  scrollbar-color: rgb(0 0 0 / 12%) rgb(0 0 0 / 5%);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.ljfmm-tab {
  align-items: center;
  color: #fff !important;
  display: grid;
  font-family: "Work Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  line-height: 24px;
  min-height: 60px;
  padding: 18px 20px;
  text-decoration: none !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ljfmm-direct {
  grid-template-columns: 20px minmax(0, 1fr);
}

.ljfmm-direct > span:first-child {
  grid-column: 2;
}

.ljfmm-tab:is(:hover, :focus-visible, .is-active) {
  background: #fff;
  color: #333 !important;
  outline: none;
}

.ljfmm-tab-icon {
  height: 20px;
  object-fit: contain;
  width: 20px;
}

.ljfmm-tab:not(.is-active):not(:hover):not(:focus-visible) .ljfmm-tab-icon {
  filter: brightness(0) invert(1);
}

.ljfmm-chevron {
  font-size: 0;
  line-height: 1;
}

.ljfmm-chevron::before {
  content: "\f113";
  font-family: "woodmart-font";
  font-size: 10px;
  font-weight: 400;
}

.ljfmm-panels {
  background: #fff;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px;
  scrollbar-color: rgb(0 0 0 / 12%) rgb(0 0 0 / 5%);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.ljfmm-panel[hidden] {
  display: none !important;
}

/* Match the padding of the production Elementor blocks without loading them. */
.ljfmm-panel.is-products { padding: 35px; }
/* WoodMart's product panes reserve a 5px classic scrollbar gutter. */
.ljfmm-panel.is-products .ljfmm-grid { width: calc(100% - 5px); }
.ljfmm-panel.is-categories .ljfmm-grid:has(> .ljfmm-card:nth-child(7)) {
  width: calc(100% - 5px);
}
.ljfmm-panel.is-categories[data-ljfmm-slug="orink-toneri"] .ljfmm-grid,
.ljfmm-panel.is-categories[data-ljfmm-slug="erich-krause"] .ljfmm-grid {
  width: calc(100% - var(--ljfmm-three-row-gutter, 5px)) !important;
}
.ljfmm-panel.is-categories { padding: 30px 40px; }
.ljfmm-panel[data-ljfmm-slug="orink-toneri"],
.ljfmm-panel[data-ljfmm-slug="etikete-trake-i-deklaracije"],
.ljfmm-panel[data-ljfmm-slug="kancelarijski-materijal"] { padding: 30px 50px; }
.ljfmm-panel[data-ljfmm-slug="erich-krause"] { padding: 40px 20px 30px 40px; }
.ljfmm-panel[data-ljfmm-slug="tehnika"] { padding: 50px 70px 30px; }
.ljfmm-panel[data-ljfmm-slug="higijena"] { padding: 0 20px 30px; }

.ljfmm-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ljfmm-tabs::-webkit-scrollbar,
.ljfmm-panels::-webkit-scrollbar {
  width: 5px;
}

.ljfmm-tabs::-webkit-scrollbar-track,
.ljfmm-panels::-webkit-scrollbar-track {
  background: rgb(0 0 0 / 5%);
}

.ljfmm-tabs::-webkit-scrollbar-thumb,
.ljfmm-panels::-webkit-scrollbar-thumb {
  background: rgb(0 0 0 / 12%);
}

.ljfmm-card {
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 50px;
  box-shadow: 1px 1px 2px rgb(0 0 0 / 12%);
  color: #333 !important;
  display: block;
  min-width: 0;
  overflow: hidden;
  position: relative;
  text-decoration: none !important;
}

.ljfmm-card-media {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 0;
  position: absolute;
}

.ljfmm-card-media img {
  /* WoodMart's category-image wrapper uses a -1px margin on every edge. */
  flex-shrink: 0;
  height: calc(100% + 2px);
  max-width: none;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0, 0, 0.44, 1.18);
  width: calc(100% + 2px);
}

.ljfmm-card-content {
  bottom: 15px;
  display: block;
  left: 20px;
  position: absolute;
  right: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.ljfmm-card-title {
  bottom: 100%;
  display: block;
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  left: 0;
  line-height: 10px;
  position: absolute;
  right: 0;
}

.ljfmm-card-count {
  color: var(--color-gray-500, #767676);
  display: block;
  font-size: 16px;
  line-height: 25.6px;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ljfmm-card:is(:hover, :focus-visible) .ljfmm-card-media img {
  transform: scale(1.1);
}

.ljfmm-card:is(:hover, :focus-visible) .ljfmm-card-content {
  transform: translateY(0);
}

.ljfmm-card:is(:hover, :focus-visible) .ljfmm-card-count {
  opacity: 1;
  transform: translateY(0);
}

.ljfmm-panel.is-products .ljfmm-grid {
  gap: 30px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ljfmm-product {
  color: #333 !important;
  display: flex;
  flex-direction: column;
  font-family: "Work Sans", Arial, Helvetica, sans-serif;
  isolation: isolate;
  min-width: 0;
  padding-bottom: 0;
  position: relative;
  text-decoration: none !important;
  transform: translateY(0);
  transition: transform 0.3s ease;
  z-index: 0;
}

/* Lift the entire stacking context, including its overhanging hover shell. */
.ljfmm-product:focus-within { z-index: 1; }
.ljfmm-product:hover { z-index: 2; }

.ljfmm-product::before {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 10px rgb(0 0 0 / 15%);
  content: "";
  inset: -15px -15px -37px;
  opacity: 0;
  position: absolute;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: -1;
}

.ljfmm-product::after {
  border-top: 1px solid rgb(0 0 0 / 10.6%);
  content: "";
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  transition: opacity 0.3s ease;
}

.ljfmm-product:is(:hover, :focus-within)::after {
  opacity: 1;
}

.ljfmm-product:is(:hover, :focus-within) {
  outline: none;
  transform: translateY(-5px);
}

.ljfmm-product:is(:hover, :focus-within)::before {
  opacity: 1;
  transform: scale(1);
}

.ljfmm-product-media {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.ljfmm-product-image-link {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  margin-inline: auto;
  width: 100%;
}

.ljfmm-product-media .ljfmm-product-image {
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.5s cubic-bezier(0, 0, 0.44, 1.18);
  width: 100%;
}

.ljfmm-product-media.is-changing .ljfmm-product-image {
  opacity: 0.35;
}

.ljfmm-gallery-zones {
  display: flex;
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.ljfmm-gallery-zones > span {
  flex: 1 1 0;
}

.ljfmm-gallery-pagination {
  align-items: center;
  bottom: 0;
  display: flex;
  filter: invert(90%);
  gap: 4px;
  justify-content: center;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
  z-index: 4;
}

.ljfmm-gallery-pagination > span {
  background: #242424;
  flex: 1 1 0;
  height: 4px;
  opacity: 0.2;
  transition: opacity 0.25s ease;
}

.ljfmm-gallery-pagination > span.is-active {
  opacity: 0.6;
}

.ljfmm-product:is(:hover, :focus-within) .ljfmm-gallery-pagination {
  opacity: 1;
  visibility: visible;
}

.ljfmm-quick-view {
  background: #fff;
  border-radius: calc(20px / 1.2);
  box-shadow: 1px 1px 1px rgb(0 0 0 / 10%);
  opacity: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
  z-index: 6;
}

/* Beat WoodMart's .wd-action-btn > a sizing without changing theme controls. */
.ljfmm-quick-view.wd-action-btn > a {
  align-items: center;
  background: transparent;
  color: #333 !important;
  display: flex;
  height: 45px;
  justify-content: center;
  text-decoration: none !important;
  width: 50px;
}

.ljfmm-quick-view .wd-action-icon::before {
  content: "\f130";
  font-family: "woodmart-font";
  font-size: 20px;
}

.ljfmm-product:is(:hover, :focus-within) .ljfmm-quick-view {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.ljfmm-product-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.ljfmm-product-title {
  color: #333 !important;
  display: block;
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4em;
  margin-block: -0.2em;
  max-height: 1.4em;
  min-height: 1.4em;
  overflow: hidden;
  text-decoration: none !important;
}

.ljfmm-stock {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-block: -0.2em;
}

.ljfmm-stock::before {
  font-family: "woodmart-font";
  font-size: 16px;
  line-height: inherit;
  margin-right: 0.3em;
}

.ljfmm-stock.is-in-stock::before {
  color: #25d600;
  content: "\f107";
}

.ljfmm-stock.is-out-of-stock::before {
  color: #c62828;
  content: "\00d7";
}

.ljfmm-product-button {
  align-items: center;
  background: #00adef;
  border-radius: 35px;
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  height: 42px;
  line-height: 1.2;
  margin-top: 12px;
  min-height: 42px;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background-color 0.25s ease, color 0.25s ease;
  width: 100%;
}

.ljfmm-product-button::before {
  align-items: center;
  content: "\f11a";
  display: flex;
  font-family: "woodmart-font";
  font-size: 20px;
  font-weight: 900;
  inset: 0;
  justify-content: center;
  position: absolute;
  transform: translateY(100%);
  transition: opacity 0.15s ease, transform 0.25s ease;
}

.ljfmm-product-button-label {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: inherit;
  transition: opacity 0.15s ease, transform 0.25s ease;
}

.ljfmm-product-button:is(:hover, :focus-visible) {
  background: rgb(255 181 54);
  color: #fff;
}

.ljfmm-product-button:is(:hover, :focus-visible)::before {
  transform: translateY(0) translateZ(0);
}

.ljfmm-product-button:is(:hover, :focus-visible) .ljfmm-product-button-label {
  transform: translateY(-100%) translateZ(0);
}

.ljfmm-product :is(.ljfmm-product-image-link, .ljfmm-product-title, .ljfmm-product-button, .ljfmm-quick-view > a):focus-visible {
  outline: 2px dotted #0059a6;
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .ljfmm-menu {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ljfmm-dropdown,
  .ljfmm-tab,
  .ljfmm-card-content,
  .ljfmm-card-count,
  .ljfmm-card-media img,
  .ljfmm-product,
  .ljfmm-product::before,
  .ljfmm-product::after,
  .ljfmm-product-button,
  .ljfmm-product-button::before,
  .ljfmm-product-button-label,
  .ljfmm-product-image,
  .ljfmm-gallery-pagination,
  .ljfmm-gallery-pagination > span,
  .ljfmm-quick-view {
    transition: none;
  }
}
