body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 20px;
  background: #f8fafc;
  color: #333;
}

header {
  padding: 15px 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: #4a4a4a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #f5e9d3;
}

/* GRID */
.container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* LESSON CARD */
.lesson-card {
  background: #fff;
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: .25s;
}
.lesson-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* IMAGE */
.img-div {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.lesson-desc p { margin: 5px 0; font-size: .95rem; }

/* BUTTONS */
button {
  border: none;
  cursor: pointer;
  transition: .25s;
}
.add-btn,
.view-cart-btn {
  background: #f5e9d3;
  color: #4a4a4a;
  width: 200px;
  height: 36px;
  border: 1px solid #e2d4bc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.add-btn:hover,
.view-cart-btn:hover { background: #d2b48c; }
.add-btn:disabled,
.view-cart-btn:disabled { background: #c5c5c5; cursor: not-allowed; }

/* SEARCH */
.search-box {
  width: 100%;
  max-width: 350px;
  padding: 8px 12px;
  margin: 15px auto;
  border: 1px solid #e2d4bc;
  border-radius: 6px;
  background: #faf8f4;
}

/* CART */
.cart-box {
  background: #fff;
  max-width: 800px;
  margin: 25px auto;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cart-list { list-style: none; padding: 0; }
.cart-list li {
  background: #f9fbff;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cart-list img {
  width: 130px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
}

/* SORT */
.sort-controls { display: flex; gap: 10px; }
.sort-controls select {
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #d6c7b4;
  background: #f5f0e9;
}

/* CHECKOUT */
.checkout-box {
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  margin-top: 20px;
}
.checkout-box input {
  width: 100%;
  padding: 8px;
  margin: 6px 0;
  border: 1px solid #e2d4bc;
  border-radius: 6px;
}
.checkout-btn {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  background: #d2b48c;
  color: #fff;
  font-weight: 600;
}
.checkout-btn:disabled { background: #ccc; }
