.searchtop{
  background-color: var(--g-bg);
}
/*side*/
.frontend-category-sidebar {
  width: 100%;
}

.frontend-category-mobile {
  width: 100%;
}

.frontend-category-mobile .form-select {
  min-height: 44px;
  border-radius: 12px;
}

.frontmenu {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.frontmenu-item {
  display: flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
  color: #111;
  padding: 0px 0px;
  border: 0px solid #e5e7eb;
  border-radius: 0px;
  background: #fff;
  transition: all 0.2s ease;
}

.frontmenu-item:hover {
  color: var(--g-druga);
  border-color: rgba(198, 40, 40, 0.25);
  background: var(--g-bg);
}

.frontmenu-item.is-active {
  border-color: #c62828;
  background: rgba(198, 40, 40, 0.06);
  color: #c62828;
}

.frontmenu-item span {
  font-size: 0.82rem;
  line-height: 1.0;
  font-weight: 400;
}
/* =========================

   HEADER / TOP BAR

   ========================= */
.frontend-topbar-search {
  height: 60px;
  background-color: #ececec;
  display: flex;
  align-content: center;
  align-items: center;
}
.icona {
  width: 25px;
  height: 25px;
  color: #111;
  display: inline-block;
}
.icona:hover {
  color: #c62828;
}
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  margin-right: 5px;
  font-size: 10px;
}
.icon {
  color: #808080;
}
.icon-white {
  color: #ffffff;
}
.dropdown-menu.show {
  display: block;
  z-index: 99999;
}
.icon use {
  width: 14px;
  height: 14px;
  font-size: 10px;
}
.site-header, .navbar, .topbar {
  background: #3a3a3d !important;
  border-bottom: 0px solid rgba(255, 255, 255, 0.08);
  min-height: 68px;
}
.frontend-topbar {
  background: #3a3a3d !important;
  color: #ffffff;
  min-height: 20px;
  font-size: .72rem;
}
.site-header .container, .navbar .container, .topbar .container, .site-header .container-fluid, .navbar .container-fluid, .topbar .container-fluid {
  display: flex;
  align-items: center;
}
.navbar-brand img, .site-logo img {
  max-height: 42px;
  width: auto;
}
.site-header .form-control, .navbar .form-control, .topbar .form-control {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #fff;
  font-size: 14px;
}
.site-header .btn, .navbar .btn, .topbar .btn {
  min-height: 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
}
.site-header .btn-outline-light, .navbar .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.site-header .btn-outline-light:hover, .navbar .btn-outline-light:hover {
  background: #fff;
  color: var(--g-black);
}
/* Pretraga gore */
.header-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-search-row .form-control {
  min-width: 160px;
}
/* =========================

   MAIN WRAP

   ========================= */
.shop-page-wrap, .catalog-wrap, .products-layout {
  padding: 18px 0 28px;
}
.catalog-shell, .shop-shell {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #eceef1;
  border-radius: 26px;
  padding: 16px;
}
/* =========================

   LEFT SIDEBAR - BRANDS

   ========================= */
.brand-sidebar, .sidebar-brands, .manufacturer-sidebar {
  background: #fff;
  border: 1px solid var(--g-border);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--g-shadow-sm);
}
.brand-sidebar .list-group, .sidebar-brands .list-group {
  gap: 8px;
}
.brand-sidebar .list-group-item, .sidebar-brands .list-group-item, .manufacturer-sidebar a, .manufacturer-sidebar li {
  min-height: var(--g-sidebar-item-h);
  display: flex;
  align-items: center;
  border: 1px solid var(--g-border);
  border-radius: 10px !important;
  padding: 0 14px;
  margin-bottom: 8px;
  background: #fff;
  color: var(--g-text);
  font-weight: 500;
  transition: all var(--g-transition);
}
.brand-sidebar .list-group-item:hover, .sidebar-brands .list-group-item:hover, .manufacturer-sidebar a:hover {
  border-color: rgba(214, 31, 38, 0.35);
  background: var(--g-red-soft);
  color: var(--g-red-hover);
  transform: translateX(2px);
}
.brand-sidebar .list-group-item.active, .sidebar-brands .list-group-item.active, .manufacturer-sidebar .active {
  background: var(--g-black);
  border-color: var(--g-black);
  color: #fff;
}
/* Scroll ako je puno marki */
.brand-sidebar, .sidebar-brands {
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.brand-sidebar::-webkit-scrollbar, .sidebar-brands::-webkit-scrollbar {
  width: 8px;
}
.brand-sidebar::-webkit-scrollbar-thumb, .sidebar-brands::-webkit-scrollbar-thumb {
  background: #d7dbe1;
  border-radius: 999px;
}
/* =========================

   PRODUCT AREA

   ========================= */
.products-panel, .catalog-panel, .products-area {
  background: #fff;
  border: 1px solid var(--g-border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--g-shadow-sm);
}
/* Ako koristiš bootstrap row/col kartice */
.products-panel .row, .catalog-panel .row, .products-area .row {
  --bs-gutter-x: 18px;
  --bs-gutter-y: 18px;
}
/* =========================

   PRODUCT CARD

   ========================= */
.product-card, .product-item, .catalog-item, .products-panel .card {
  border: 1px solid #e8ebef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform var(--g-transition), box-shadow var(--g-transition), border-color var(--g-transition);
  height: 100%;
}
.product-card:hover, .product-item:hover, .catalog-item:hover, .products-panel .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--g-shadow-md);
  border-color: rgba(214, 31, 38, 0.22);
}
/* Slika */
.product-card__image, .product-image, .products-panel .card img {
  display: block;
}
.product-image-wrap, .product-card__image, .products-panel .card .image-holder, .products-panel .card .card-img-top {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
  border-bottom: 1px solid #eef2f6;
  padding: 16px;
  border-radius: 14px;
  margin: 12px 12px 0;
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image-wrap img, .product-card__image img, .products-panel .card .card-img-top, .products-panel .card img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}
/* Tijelo */
.product-card__body, .product-info, .products-panel .card-body {
  padding: 12px 14px 14px;
}
/* Šifre gore */
.product-code-row, .product-meta-top, .products-panel .card .small, .products-panel .card small {
  color: var(--g-text-soft);
  font-size: 12px;
  line-height: 1.35;
}
/* Naziv vozila */
.product-vehicle, .product-card__vehicle, .products-panel .card h5, .products-panel .card .card-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--g-text);
  margin: 8px 0 8px;
  min-height: 38px;
}
/* Naziv dijela */
.product-name, .product-card__name {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: #2b2f36;
  min-height: 42px;
  margin-bottom: 10px;
}
/* Proizvodnja */
.product-years, .product-production {
  font-size: 12px;
  color: var(--g-text-soft);
  margin-top: auto;
  margin-bottom: 10px;
}
/* Gumb */
.product-card .btn, .product-item .btn, .catalog-item .btn, .products-panel .card .btn {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #6b7280;
  border-color: #6b7280;
  color: #fff;
}
.product-card .btn:hover, .product-item .btn:hover, .catalog-item .btn:hover, .products-panel .card .btn:hover {
  background: var(--g-druga);
  border-color: var(--g-druga);
  color: var(--g-text);
}
/* =========================

   TOOLBAR / SORT / RESULTS

   ========================= */
.catalog-toolbar, .products-toolbar, .shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.catalog-toolbar .form-select, .products-toolbar .form-select, .shop-toolbar .form-select {
  min-height: 40px;
  border-radius: 10px;
  min-width: 190px;
}
/* =========================

   PAGINATION

   ========================= */
.pagination {
  gap: 8px;
  margin-top: 22px;
}
.page-link {
  min-width: 40px;
  height: 40px;
  border-radius: 10px !important;
  border: 1px solid var(--g-border);
  color: var(--g-text);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-link:hover {
  border-color: var(--g-red);
  color: var(--g-red);
  background: #fff;
}
.page-item.active .page-link {
  background: var(--g-red);
  border-color: var(--g-red);
  color: #fff;
}
/* =========================

   PRODUCT DETAIL

   ========================= */
.product-detail-wrap, .single-product-wrap {
  background: #fff;
  border: 1px solid var(--g-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--g-shadow-sm);
}
.product-detail-title, .single-product-title {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.product-price, .single-product-price {
  font-size: 34px;
  font-weight: 900;
  color: var(--g-black);
}
.product-price .currency, .single-product-price .currency {
  color: var(--g-red);
}
/* =========================

   MOBILE

   ========================= */
@media (max-width: 1199px) {
  .brand-sidebar, .sidebar-brands {
    max-height: none;
  }
}
@media (max-width: 991px) {
  .catalog-shell, .shop-shell {
    border-radius: 18px;
    padding: 12px;
  }
  .brand-sidebar, .sidebar-brands, .manufacturer-sidebar, .products-panel, .catalog-panel, .products-area {
    border-radius: 16px;
  }
  .product-image-wrap, .product-card__image, .products-panel .card .image-holder, .products-panel .card .card-img-top {
    min-height: 132px;
  }
  .site-header .container, .navbar .container, .topbar .container {
    gap: 12px;
    flex-wrap: wrap;
  }
}
@media (max-width: 575px) {
  .product-card__vehicle, .products-panel .card h5, .products-panel .card .card-title {
    min-height: auto;
  }
  .product-name, .product-card__name {
    min-height: auto;
  }
  .site-header, .navbar, .topbar {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}