
 .container{
min-height: 100vh;  
max-width: 100%;
gap:10px;
}

.backbutton {
    font-size: 180%;
    padding:4px;
    color: #ffffff;
    text-decoration: none;
    background-color:  #ba9841;
    border-radius: 10px;
   
}

.backbutton:hover {
  text-decoration: underline;
}

main {
  background-color: hsl(270, 48%, 83%);
  background-image: url(img/background.jpeg);
  background-size: 50%;
  padding: 5%;
  height: fit-content;
  border-radius: 20px;
  box-shadow: 10px 10px 9px #ba9841;
  border-right: solid #fbe8ab;
  border-bottom: solid #fbe8ab;
  margin-top: 10px;
 
  
}
.titleimg {
  max-width: 100%;

}

.title {
    background-color:hsl(270, 48%, 83%);
    text-align: center;
    border-radius: 20px;
    padding:10px;
    display: flex;
    flex-direction: column;
    margin-top: 10px;

  
}

.title p {
  padding:5px;
}



.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.item-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  overflow: auto;
}

.image-wrapper {
  position: relative;/* your border color */
  padding: 8px;   
  border-radius: 20px;
}

.image-wrapper img {
    max-height: 200px;
    width: auto;
}

.item-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}



.item-info h2 {
  margin-top: 0.5rem;
}

.price {
  font-size: 0.9rem;
  color: #444;
}



@media (max-width: 768px) {
  nav {
    justify-content: center; /* center nav container itself */
  }


  .rating img.scale {
  width: 38%;          /* Responsive width */
  height: auto;        /* Keep aspect ratio */
  flex-shrink: 0;      /* Don't shrink on small screens */
  padding: 10px;
  object-fit: contain; /* Ensures the image fits within bounds nicely */
}


     @media (max-width: 600px) {
    .container {
    flex-direction: column;
    gap:0
    }  

.shop-grid {
    display: flex;
    flex-direction: column;
}
  }
} 