* {
    margin: 0;
    box-sizing: border-box;
    transition: 0.25s all;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.card {
    background-color: #1e293b !important; /* Grigio bluastro scuro */
    color: #f8fafc !important;
}


main {
  min-height: 100vh;
}

.card-img-top {
  object-fit: contain;
}

.no-scrollbar::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.category {
    width: 10rem;
    display: none;
}

.foto {
  width: 8rem;
  aspect-ratio: 1/1;
  object-fit: cover;
}

nav {
  padding: 0.25rem 0 !important;
}
.searchbar {
  padding: 0.25rem 0;
}

.border-opacity-0 {
  border-color: transparent;
}
/* .border-opacity-0:hover {
  border-color: white !important;
} */

.navbar.bg-dark {
    background-color: #0f172a !important; /* Stesso colore del body */
    border-bottom: 1px solid #1e293b; /* Linea di divisione sottile */
}
#navbarNavDropdown {
    background-color: #0f172a !important;
}

.carousel {
}

.img-prodotto {
  height: 160px; 
  object-fit: contain;
}

nav .bi:not(nav form .bi) {
    font-size: 1.3rem;
}

nav .nav-link {
  position: relative;
}
nav .nav-link::before {
  content: '';
  inset: 0;
  margin: auto;
  width: 0;
  height: 100%;
  background: rgb(157, 66, 66);
  box-shadow: inset 0 0 1rem black;
  opacity: 0.2;
  position: absolute;
  transition: width 1s, height 1s;
}
nav .nav-link:hover::before {
  width: 100%;
}
nav .nav-link:active {
  filter: invert();
}
nav .nav-link:active:before {
  width: 0;
  height: 0;
  border-radius: 25%;
  transition: width 0.2s, height 0.2s;
  background-color: rgb(110, 110, 177);
}

button:has(.bi-cart-plus) {
  border: 0.1rem transparent;
}

button:has(.bi-cart-plus:hover) {
  border: 0.1rem white;
}


.hidden {
  display: none !important;
}
input.hidden:checked + .cartItem > .border-opacity-0 {
  border-color: white !important;
}

.profileImg {
  width: 1.9rem;
  height: 100%;
}

@media (max-width: 768px) {
  nav .bi:not(nav form .bi, .nav-link .bi) {
    font-size: 2rem;
  }
  .nav-item {
    font-size: 1.2rem;
    padding: 1.5rem 0;
  }
  .profileImg {
    width: 2rem;
    height: 2rem;
  }
  nav form .bi, .nav-link .bi {
    font-size: 1.2rem;
  }
  nav {
    padding: 0.5rem 0 !important;
  }
  .searchbar {
    padding: 0.5rem 0;
  }
}


/* @media (max-width: 767px) {
    .cart-checkout {
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        background: red;
    }
} */


