* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(141, 47, 66);
  color: rgb(200, 190, 180);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  background-color: rgb(119, 64, 75);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}
header h1 {
  font-size: 34px;
  margin-top: 10px;
  color: rgb(200, 190, 180);
}

header a {
  margin-right: 15px;
  text-decoration: none;
  color: rgb(200, 190, 180);
  font-weight: bold;
  font-size: 25px;
}

header a:hover {
  text-decoration: underline;
}

/*start styke products cards*/
#product-list,
#cart-container,
#product-detail {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.product-card {
  background-color: rgb(119, 64, 75);
  color: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: inline-block;
  width: 250px;
  vertical-align: top;
  margin-right: 20px;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  max-width: 100%;
  border-radius: 8px;
}

.product-card h2 {
  font-size: 20px;
  margin: 10px 0 5px;
}

.product-card p {
  font-size: 14px;
  color: #666;
}

.product-card strong {
  display: block;
  margin: 10px 0;
}

.product-card button,
.product-card a {
  display: inline-block;
  background-color: #3b3636;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 8px;
}

.product-card button:hover,
.product-card a:hover {
  background-color: #5f574f;
}
/*end styke products cards*/

/*start style product*/
.product-detail-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background-color: rgb(119, 64, 75);
  color: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-image img {
  max-width: 350px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.product-info {
  flex: 1;
}

.product-info h2 {
  margin-top: 0;
  font-size: 28px;
}

.product-info p {
  font-size: 16px;
  line-height: 1.6;
}

.product-info strong {
  display: block;
  margin-top: 15px;
  font-size: 20px;
}

.product-info button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #3b3636;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.product-info button:hover {
  background-color: #5f574f;
}
/*end style product*/

/*start style cart*/
#cart-container ul {
  list-style: none;
  padding-left: 0;
}

#cart-container li {
  padding: 10px;
  margin-bottom: 10px;
  background-color: rgb(119, 64, 75);
  border-left: 5px solid #3b3636;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#cart-container button {
  background-color: #3b3636;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}

#cart-container button:hover {
  background-color: #5f574f;
}
/*end style cart*/

/*start style check out */
.order-summary {
  background-color: rgb(119, 64, 75);
  color: white;
  padding: 25px;
  border-radius: 10px;
  max-width: 500px;
  margin: 30px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-summary h2 {
  text-align: center;
  margin-bottom: 15px;
  color: rgb(56, 7, 7);
}

.order-summary ul {
  list-style: none;
  padding: 0;
}

.order-summary li {
  margin-bottom: 10px;
  font-size: 16px;
}

.total-amount {
  margin-top: 20px;
  font-size: 18px;
  color: white;
}

form {
  background-color: rgb(119, 64, 75);
  color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  margin: auto;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

form input {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 14px;
}

form button {
  background-color: #3b3636;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
}

form button:hover {
  background-color: #5f574f;
}
/*end style checkout*/

/*start to style success*/
.success-message {
  text-align: center;
  font-size: 22px;
  color: rgb(56, 7, 7);
  margin-top: 50px;
}

.success-message h1 {
  font-size: 2.5rem;
}

.success-message p {
  font-size: 1.2rem;
}

.success-message button {
  background-color: #3b3636;
  color: white;
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}
.success-message button:hover {
  background-color: #5f574f;
}
/*end style success*/


@media (max-width: 768px) {
  .product-detail-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .product-image img {
    max-width: 100%;
  }

  .product-info {
    width: 100%;
  }

  .product-info h2 {
    font-size: 24px;
  }

  .product-info p {
    font-size: 15px;
  }

  .product-info strong {
    font-size: 18px;
  }

  .product-info button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  header h1 {
    font-size: 28px;
  }

  header a {
    font-size: 20px;
  }

  .product-card {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .product-card h2 {
    font-size: 18px;
  }

  .product-card p {
    font-size: 12px;
  }

  .product-card strong {
    font-size: 16px;
  }
}