@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f8f5f1;
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: #262626;
  font-size: 16px;
  overflow-x: hidden;
}

/* CONTAINER */
.container {
  display: flex;
  padding: 20px 40px;
}

.category {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(38, 38, 38, 0.1);
  height: max-content;

  opacity: 0;
  transform: translateX(100px);
  animation: fadeRight 0.8s ease forwards;
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(100px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Search Bar Container */
.category .search-bar {
  margin: 20px 0;
  width: 100%;
  max-width: 500px;
}

.category .search-bar input {
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  border: 2px solid #d9b68c; 
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  background-color: #fffdf9;
  color: #262626;
}

.category .search-bar input:focus {
  border-color: #262626;
  box-shadow: 0 4px 10px rgba(38,38,38,0.2);
}

.category .search-bar input::placeholder {
  color: #262626  ;
  opacity: 0.7;
}

.menu li {
  list-style-type: none;
  cursor: pointer;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 6px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(38, 38, 38, 0.2);
  color: #262626;
}

.menu li:hover {
  background-color: #262626; 
  color: #fff; 
  box-shadow: 0 4px 10px rgba(38, 38, 38, 0.15); 
}

/* SHOP SECTION */
.shop-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 16px;
}

.product-container {
  flex: 1 1 275px; 
  max-width: 370px;
  height: 450px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  opacity: 0;
  transform: translateY(100px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.img-container {
  flex: 1;
  border-bottom: 1px solid #444;
  padding: 12px;
  background: white;
  color: #313131;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.4);
}

.img-container img {
  width: 100%;
  max-height: 250px;
  border-radius: 4px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.img-container img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
  border-radius: 8px;
}

.description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.description h2 {
  font-weight: 400;
}

.description p {
  font-size: 24px;
  text-decoration: underline;
}

.product-rate img {
  height: 28px;
}

.product-rate {
  display: flex;
  font-size: 22px;
}

.product-container button {
  width: 100%;
  padding: 16px;
  border: none;
  background: linear-gradient(135deg, #3a3a3a, #1e1e1e);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.product-container button:hover {
  background: linear-gradient(135deg, #555, #2c2c2c);
  transform: scale(1.02);
}