*{
  font-family: "IBM Plex Sans" !important;
}
h1, h2, h3, h4, h5, h6{
  font-family: "Space Grotesk" !important;
}
.cart-item__img{
  object-fit: contain !important;
  background: #ffffff !important;
}
footer{
  margin-bottom: -20px !important;
}
select.country-selector{
  padding-top: 0.55rem !important;
  padding-bottom: 0.50rem !important;
  line-height: 0.90rem !important;
  font-size: 14px !important;
  height: 35px !important;
}

/* ── HEADER FIX ── */
.headerNavbar {
  overflow: visible !important;
}

/* ════════════════════════════════════════
   DESKTOP CATEGORY MENU
════════════════════════════════════════ */
.categoryMenuSmall {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  padding: 0 0 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.categoryMenuSmall::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
  .categoryMenuSmall { display: none; }
}


.cat-menu-item {
  position: relative;
  flex-shrink: 0;
}
.cat-menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  text-decoration: none;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.cat-menu-item > a:hover,
.cat-menu-item.open > a {
  background: #f3f4f6;
  color: #1a1a1a;
}
.cat-menu-item > a.active {
  background: #1a1a1a;
  color: #fff;
}
.cat-menu-item > a.active svg { stroke: #fff; }

.cat-menu-chevron {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.cat-menu-item.open > a .cat-menu-chevron {
  transform: rotate(180deg);
}

.cat-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 6px;
  z-index: 999;
}
.cat-menu-item.open .cat-menu-dropdown { display: block; }

.cat-menu-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.cat-menu-dropdown a:hover {
  background: #f3f4f6;
  color: #1a1a1a;
}
.cat-menu-dropdown a.active {
  background: #edf3ed;
  color: #2c5f2e;
  font-weight: 600;
}

/* ════════════════════════════════════════
   MOBILE PANEL
════════════════════════════════════════ */
.cat-mobile-panel {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
}
.cat-mobile-panel.open { display: block; }

.cat-mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.cat-mobile-drawer {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* Header */
.cat-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1.5px solid #e5e7eb;
  flex-shrink: 0;
}
.cat-mobile-header span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cat-mobile-close {
  width: 32px; height: 32px;
  border: none; background: none;
  font-size: 22px; color: #6b7280;
  cursor: pointer; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cat-mobile-close:hover { background: #f3f4f6; }

/* Scrollable groups area */
.cat-mobile-groups {
  flex: 1;
  overflow-y: auto;
}

/* Root group */
.cat-mobile-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition: background .12s;
}
.cat-mobile-group-header:hover { background: #f9fafb; }
.cat-mobile-group-header svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
  transition: transform .2s;
  flex-shrink: 0;
}
.cat-mobile-group.open > .cat-mobile-group-header svg {
  transform: rotate(90deg);
}
.cat-mobile-group-children {
  display: none;
}
.cat-mobile-group.open > .cat-mobile-group-children {
  display: block;
}

/* Direct leaf under root group */
.cat-mobile-group-children > a {
  display: block;
  padding: 10px 20px 10px 28px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
  transition: background .12s;
}
.cat-mobile-group-children > a:hover { background: #f3f4f6; }
.cat-mobile-group-children > a.active {
  color: #2c5f2e;
  background: #edf3ed;
  font-weight: 600;
}

/* Subgroup header */
.cat-mobile-subgroup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 10px 28px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
  user-select: none;
  transition: background .12s;
}
.cat-mobile-subgroup-header:hover { background: #efefed; }
.cat-mobile-subgroup-header svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
  transition: transform .2s;
  flex-shrink: 0;
}
.cat-mobile-subgroup.open > .cat-mobile-subgroup-header svg {
  transform: rotate(90deg);
}
.cat-mobile-subgroup-children { display: none; }
.cat-mobile-subgroup.open > .cat-mobile-subgroup-children { display: block; }

/* Leaf under subgroup — još uvučenije */
.cat-mobile-subgroup-children a {
  display: block;
  padding: 9px 20px 9px 40px;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
  transition: background .12s, color .12s;
}
.cat-mobile-subgroup-children a:hover {
  background: #f3f4f6;
  color: #1a1a1a;
}
.cat-mobile-subgroup-children a.active {
  color: #2c5f2e;
  background: #edf3ed;
  font-weight: 600;
}

/* Footer nav */
.cat-mobile-footer-nav {
  border-top: 1.5px solid #e5e7eb;
  padding: 10px 0;
  background: #fafafa;
  flex-shrink: 0;
}
.cat-mobile-footer-nav a {
  display: block;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  transition: color .12s;
}
.cat-mobile-footer-nav a:hover { color: #1a1a1a; }
@media (max-width: 1024px) {
  .category-sidebar {
    display: none !important;
  }
}

/* ── Search Wrapper ────────────────────────────────────────────────────────── */
.search-wrapper {
    position: relative;
    max-width: 60%;
    margin: 0 auto;
}

/* ── Input ─────────────────────────────────────────────────────────────────── */
#search-input {
    width: 400px !important;
    padding: 13px 18px 13px 44px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: #1a1a1a;
    background: #ffffff;
    border: 1.5px solid #e3e3e0;
    border-radius: 10px;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    transition: border-color 0.18s, box-shadow 0.18s;
}

#search-input::placeholder {
    color: #b0afa9;
    font-weight: 400;
}

#search-input:focus {
    border-color: #c8c7c2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.08);
}

/* Search ikona */
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #b0afa9;
    pointer-events: none;
    transition: color 0.18s;
}

@media (max-width: 768px) {
    .search-icon {
        left: 35px;
        top: 48%;
    }
}

.search-wrapper:focus-within .search-icon {
    color: #888;
}

/* ── Dropdown ──────────────────────────────────────────────────────────────── */
#search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    max-width: min(560px, 100vw - 32px);
    background: #ffffff;
    border: 1.5px solid #e8e7e3;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.10);
    overflow: hidden;
    z-index: 1000;
    display: none;
    animation: dropIn 0.16s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

#search-results.active {
    display: block;
}

/* ── Item ──────────────────────────────────────────────────────────────────── */
#search-results .search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f0;
    transition: background 0.12s;
}

#search-results .search-item:last-of-type {
    border-bottom: none;
}

#search-results .search-item:hover {
    background: #fafaf8;
}

#search-results .search-item:hover .item-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Thumbnail */
#search-results .item-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f5f5f3;
    border: 1px solid #eeede9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-results .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* Text */
#search-results .item-info {
    flex: 1;
    min-width: 0;
}

#search-results .item-name {
    font-size: 13.5px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#search-results .item-name strong {
    font-weight: 700;
    background: #f5f0dc;
    border-radius: 2px;
    padding: 0 1px;
}

#search-results .item-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

#search-results .item-group {
    font-size: 11.5px;
    color: #a0a09a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#search-results .item-code {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #c0bfb9;
    flex-shrink: 0;
}

/* Cijena */
#search-results .item-price {
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a1a;
    flex-shrink: 0;
    letter-spacing: -0.3px;
}

/* Strelica */
#search-results .item-arrow {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: #c0bfb9;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s, transform 0.15s;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
#search-results .search-footer {
    padding: 8px 14px;
    background: #fafaf8;
    border-top: 1px solid #f0f0ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#search-results .search-footer-count {
    font-size: 11.5px;
    color: #b0afa9;
}

#search-results .search-footer-hint {
    font-size: 11px;
    color: #c8c7c2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kbd {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    background: #eeecea;
    border: 1px solid #e0deda;
    border-radius: 3px;
    padding: 1px 5px;
    color: #888;
}

/* ── No results ────────────────────────────────────────────────────────────── */
#search-results .search-no-results {
    padding: 28px 20px;
    text-align: center;
    color: #b0afa9;
    font-size: 13.5px;
}

#search-results .search-no-results span {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

@media (max-width: 960px) {
  #search-input{padding: 13px 18px 13px 18px !important; width: 92vw !important;}
  .search-icon {display: none !important;}
}

.filter-sidebar{
      min-height: 200px !important;
}

.category-sidebar{
      min-height: 200px !important;
}
.pagination-btn.active{
  background: #11151f !important;
}