@font-face { font-family: Ubuntu-R; src: url('../fonts/Ubuntu-R.woff'); }
@font-face { font-family: Ubuntu-M; src: url('../fonts/Ubuntu-M.woff'); }
@font-face { font-family: Roboto-Medium; src: url('../fonts/Roboto-Medium.woff'); }
@font-face { font-family: Roboto-Regular; src: url('../fonts/Roboto-Regular.woff'); }



/*************************
*******header******
**************************/
body {
    font-family: Roboto-Regular;
    font-size: 20px;
    overflow-x: hidden;
    width: 100%;
    background-color: #FAFAFA;
}
.body-no-scroll {
  overflow: hidden;
  height: 100vh;
}
#main-text{
    font-family: Roboto-Medium;
}
.overlay{
  background-color: rgba(0,0,0,0.7);
  padding-top:2em;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display:none;
}

#loadingGif{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}
.navbar {
    z-index: 1040; /* Ensure navbar is above the sticky message */
}
.navbar-brand{
    font-family: Ubuntu-M;
}
.main-logo {
    width: 35px; /* Change this to your desired width */
    height: auto; /* Keeps the aspect ratio */
}
.tecdoc-img {
    width: 120px; /* Change this to your desired width */
    height: auto; /* Keeps the aspect ratio */
}
.text-sm {
    font-size: 0.875rem !important; /* Equivalent to small text */
}
.viber-img{
    display: none;
}

.logo-bad {
    height: 54px;
    width: 140px;
}
.grid-item {
    font-size: 15px;
    font-weight: bold;
    border: 0.5px solid;
    border-color: #dde2eb;
    height: 150px !important;
}
.grid-item:hover {
    transform: scale(1.1); /* (110% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
    z-index: 100;
    background-color: #b2c6d4;
    cursor: pointer;
}
#main-image{
    background: linear-gradient(to right, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.7) 80%), url("../images/home/main-image.jpg") repeat 0 0;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    height: 500px !important;
}

.white {
    color: white;
}

.tire-card{
    width: 15rem;
}

#show-tire-filter{
    display: none;
}
.stamp-img:hover {
  transform: scale(1.1);
}

#footer {
  position: absolute;
  width: 100%;
  background: #314157;
}

.floating-cart {
    position: fixed;
    bottom: 20px; /* Distance from the bottom */
    right: 20px;  /* Distance from the right */
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.floating-cart img {
    width: 50px; /* Adjust size of cart icon */
    height: 50px;
}
.floating-cart img:hover {
    transform: scale(1.2);
}

.scroll-to-top {
    position: fixed;
    bottom: 90px; /* iznad floating-cart */
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #f2c446;
    color: #fff;
    font-size: 24px;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* sakrij dok se ne skroluje */
    z-index: 9999;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover {
    transform: scale(1.2);
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;

}
.custom-btn {
    background-color: #314157; /* Your custom background color */
    color: white;              /* Your custom text color */
    border: none;              /* Remove border if needed */
  }

.custom-btn:hover {
    background-color: #1d2633; /* Custom hover effect */
    color: white;              /* Your custom text color */
    border: none;
}
.custom-link {
    color: #ffffff; /* Default color */
    transition: color 0.3s; /* Smooth transition for color change */
    display: inline-block; /* Required for transform to work properly */
}

.custom-link:hover {
    color: #e0e0da; /* Color on hover */
    text-decoration: none; /* Remove underline */
    transform: scale(1.1);
}
.bounce {
            animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cart-card h4, p, h5 {
    height: auto; /* Adjust height if necessary */
    font-size: 0.9rem; /* Smaller text size */
}
.cart-mobile {
    font-size: 0.9rem;
}

.cart-card .card-header,
.cart-card .card-body,
.cart-card .card-footer {
    padding: 0.5rem; /* Smaller padding */
}

.hero-text {

    padding: 30px;
    border-radius: 10px;
}
.hero-text h1 {
    font-weight: bold;
}
.hero-text p {
    font-size: 18px;
    line-height: 1.6;
}

.card-img{
    max-width: 150px;  /* Adjust as needed */
    max-height: 150px; /* Adjust as needed */
    object-fit: contain; /* Keeps aspect ratio */
}
.table-smaller {
    font-size: 0.8rem; /* or px, like 12px */
}
.table-level-1:hover {
    background: #edddd5;
}
.table-level-2:hover {
    background: #f5efed;
}
.dropdown-menu {
    display: none; /* ostavi, prikazivanje ide preko JS */
    position: absolute;
    background-color: #fff; /* bela pozadina */
    border: 1px solid #ccc;
    z-index: 2000; /* dovoljno visoko da bude iznad sticky navbar-a i sticky-message */
    min-width: 180px; /* ako želiš */
    max-height: 200px;
    overflow-y: auto;
}
.dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
}
.dropdown-menu a:hover {
    color: #ffffff !important;
    text-shadow:
      -1px -1px 0 #bfbfbf,
       1px -1px 0 #bfbfbf,
      -1px  1px 0 #bfbfbf,
       1px  1px 0 #bfbfbf; /* simulacija crnog obruba */
}
.nav-item.dropdown {
    position: relative;
}
.navbar .nav-link:not(.nav-viber) {
  color: #212529 !important; /* osnovna boja */
  transition: all 0.2s ease;
}

.navbar .nav-link:not(.nav-viber):hover {
  color: #ffffff !important;
  text-shadow:
    -1px -1px 0 #bfbfbf,
     1px -1px 0 #bfbfbf,
    -1px  1px 0 #bfbfbf,
     1px  1px 0 #bfbfbf; /* simulacija crnog obruba */
}


.navbar-icon {
    color: #ffffff !important;
    text-shadow:
      -1px -1px 0 #bfbfbf,
       1px -1px 0 #bfbfbf,
      -1px  1px 0 #bfbfbf,
       1px  1px 0 #bfbfbf; /* simulacija crnog obruba */
}
/* Prvi navbar */
.navbar-main {
  height: 56px;   /* fiksna visina */
}

/* Drugi navbar */
.navbar-search {
  height: 44px;              /* fiksna visina */
  display: flex;             /* flex za centriranje sadržaja */
  align-items: center;       /* vertikalno centriranje */
  justify-content: center;
  padding: 0 0.5rem;         /* horizontalni padding */
  box-sizing: border-box;
  z-index: 1030;             /* po tvom inline stilu */
}

/* Form unutar navbar */
.navbar-search .form {
  width: 100%;
  margin: 0;
}

/* Input group */
.navbar-search .input-group {
  width: 100%;
  height: 100%;
}

/* Input polje */
.navbar-search .form-control {
  height: 32px;              /* stane u navbar */
  padding: 0 0.5rem;         /* prilagođeni padding */
  font-size: 0.9rem;
  box-sizing: border-box;
}

/* Button u input-group-append */
.navbar-search .input-group-text.btn {
  height: 32px;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#navbarSupportedContent, #searchNavbar{
    background-color: #f8f9fa;
    z-index: 1050;
}

.logos-container {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  align-items: center;
  position: relative;
  width: 100%;
  background: #fff;
}

.selected-vehicle-card {
    background-color: #edddd5 !important;
}

/* Auto-duplicated images scroll continuously */
.logos {
  display: flex;
  width: max-content;
  animation: scroll 15s linear infinite;
}

.logos img {
  height: 60px; /* Keep aspect ratio */
  width: auto;
  margin: 0 20px;
  object-fit: contain;
}


/* Keyframes with -100% ensures all images are seen before reset */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); } /* Moves entire length */
}

.sticky-message {
    position: fixed;
    top: 99px;
    left: 0;
    right: 0;
    width: 100%; /* Ensure it takes the full width of the viewport */
    z-index: 1020; /* Ensure it stays above other content */
    background-color: #f8f9fa;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    display: none; /* Hidden by default */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Show the sticky message when cart items exist */
.sticky-message:not([hidden]) {
    display: block;
}

.sticky-message .alert {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1.1;
    margin-bottom: 0;
}


.flashing-message {
    animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

.custom-font-size {
    font-size: 1rem;
}

#timer {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 2.5s ease, transform 1.5s ease, visibility 0s linear 2.5s;
}

#timer.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s; /* odmah fade-in */
}

.banner-wrapper {
    max-width: 300px;
    width: 100%;        /* Zauzima dostupan prostor */
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0 auto;     /* Centrira wrapper */
}

.mobile-banner-wrapper {
    max-width: 600px;       /* ne prelazi širinu ekrana */            /* popunjava skoro celu širinu */
    max-height: 150px;      /* maksimalna visina */
    height: 100px;          /* osnovna visina */
    margin: 0 auto;         /* centriranje horizontalno */
    display: flex;
    justify-content: center; /* horizontalno centrirano */
    align-items: center;     /* vertikalno centrirano */
    overflow: hidden;        /* presecanje viška slike */
}

.banner-wrapper img, .mobile-banner-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* slika popunjava prostor, seče višak */
}

#autocomplete-results {
    max-height: 200px; /* Adjust height as needed */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Ensures smooth scrolling on mobile */
    position: absolute; /* Ensures it stays in place */
    background: white;
    z-index: 1000;
    border: 1px solid #ccc;
    list-style: none;
    padding: 0;
}

#carModelsTable tr, #carEnginesTable tr, #carModel:not(:disabled), #engineType:not(:disabled), .brand-image, .final_article_search, .universal, .category-modal, .vehicle-by-engine {
    cursor: pointer;
}

.suggestion img, .universal img {
    max-height: 140px;
}

.review-card{
    margin-right: 3px;
    border: none;
    cursor: pointer;
    min-height: 100%;
}
.review-header{
    background: #fff;
}
.review-footer{
    background: #fff;
}
.review-small-text{
    color: #b3b5b5;
    font-size:9pt;
}
.review-small-black{
    font-size:10pt;
}
/* General container styles */
.scrolling-wrapper-flexbox {
    white-space: nowrap; /* Prevents wrapping */
    overflow-x: auto; /* Enables horizontal scrolling */
    overflow-y: hidden; /* Prevents vertical scrollbars */
    display: flex;
    flex-wrap: nowrap;
    cursor: grab; /* Shows grab cursor */
    user-select: none; /* Prevents text selection while dragging */
    scroll-behavior: smooth; /* Smooth scrolling */
    -webkit-overflow-scrolling: touch; /* Enhances touch experience */
    scrollbar-width: none; /* Hides scrollbar for Firefox */
    -ms-overflow-style: none; /* Hides scrollbar for IE/Edge */
    animation-timing-function: linear;
    will-change: transform;
}

/* Hide scrollbar for WebKit-based browsers */
.scrolling-wrapper-flexbox::-webkit-scrollbar {
    display: none;
}

#scrolling-wrapper-reviews {
  position: relative;
  min-height: 100px;
}

#scrolling-wrapper-reviews::before,
#scrolling-wrapper-reviews::after {
  content: "";
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

#scrolling-wrapper-reviews::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0) 90%);
}

#scrolling-wrapper-reviews::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0) 90%);
}

.rounded-extra-lg {
  border-radius: 1.1rem !important; /* Povećajte ovu vrednost po želji */
}

.carousel-item {
  /* Ovo određuje minimalnu visinu slajdera na desktopu */
  height: 350px;
}

.carousel-item img {
  /* Osigurava da slika uvek pokrije ceo prostor */
  object-fit: cover;
  height: 100%;
}

.vehicle-choose-btn {
    min-width: 200px !Important;
    width: 70% !Important;
    height: 70px !Important;
    background-color: #314157 !Important;
    border-color: #314157 !Important;
}

.vehicle-choose-btn:hover {
    background-color: #1d2633 !Important;
    border-color: #1d2633 !Important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.vehicle-main-text {
    color: #42adf5;
}

#vehicleChooseCollapse {
    background-color: #f2f2f2;
    border-radius: 1.1rem;
}

.modal-content {
    background: #fcfcfc;
    border-radius: 0px !Important;
    outline: 15px solid rgba(49, 65, 87,0.5);
}


.modal-dialog {
    max-height: 80vh;
    margin: 40px auto;
}

.modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header,
.nav-tabs {
    flex-shrink: 0;
}

.modal-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 1 auto;
    padding-right: 10px;   /* rezerviše prostor za scrollbar */
    box-sizing: border-box; /* padding ne prelazi okvir */
    scrollbar-gutter: stable; /* moderni browseri, stabilan scroll */
}

.category-btn {
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
    background-color: #ffffff;
    border: 1px solid #314157;
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    border-color: #007bff;
    background-color: #f2f7ff; /* blagi plavi ton */
}

.category-btn:active {
    transform: scale(0.98);
}

.suggestion {
    overflow: hidden; /* da ne izlazi van */
}

.suggestion-inner {
    transition: transform 0.2s ease;
}

.suggestion:hover .suggestion-inner {
    transform: scale(1.1);
}

.universal {
    overflow: hidden; /* da ne izlazi van */
}

.universal-inner {
    transition: transform 0.2s ease;
}

.universal:hover .universal-inner {
    transform: scale(1.1);
}

.caret-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease-in-out;
}

button[data-toggle="collapse"]:not(.collapsed) .caret-icon {
    transform: rotate(180deg);
}

.custom-sub-btn {
    background-color: #e8e9eb;
    border: none;
    color: #2C3E50; /* Diskretna siva boja (text-muted) */
    font-size: 0.9rem; /* Malo manji font od glavnih dugmića */
    padding-left: 0.75rem;
    text-align: left;
}

/* Blagi hover efekat za bolji UX */
.custom-sub-btn:hover {
    background-color: #f8f9fa; /* Izuzetno blaga siva pozadina */
    color: #2C3E50;
}