* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #f8f8f8, #f1f1f1);
  color: #222;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.page-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 12px;
}

.page-header::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #11c84f, #7ee39f);
}

.page-header h1 {
  margin: 0 0 10px;
  font-size: 38px;
}

.sub-text {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.search-box {
  max-width: 520px;
  margin: 0 auto 24px;
}

.search-box input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

.item-card {
  width: 240px;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  border: 1px solid #eee;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: 0.2s;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.item-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  background: #eee;
  display: block;
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.item-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  height: 50px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-price {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
  color: #ff6a00;
  letter-spacing: 0.5px;
}

.counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.count-btn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #2f2f2f, #111);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.count-number {
  display: inline-block;
  min-width: 52px;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
}

.total-box {
  margin-top: 40px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.total-label {
  margin: 0 0 8px;
  font-size: 16px;
  color: #777;
}

.total-price {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  color: #111;
}

.next-area {
  margin-top: 28px;
  text-align: center;
}

.next-btn {
  min-width: 240px;
  padding: 16px 30px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #18d45a, #10b549);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(17,200,79,0.28);
}

.selected-box {
  max-width: 900px;
  margin: 0 auto 32px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 24px;
}

.selected-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.selected-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.selected-image {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
  display: block;
}

.selected-info {
  flex: 1;
}

.selected-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.selected-text {
  margin: 4px 0;
  font-size: 16px;
}

.selected-subtotal {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: bold;
}

.form-box {
  margin-top: 40px;
  background: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input,
select {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .page {
    padding: 24px 14px 36px;
  }

  .item-card {
    width: 46%;
    min-width: 160px;
    padding: 14px;
  }

  .item-title {
    font-size: 16px;
    height: 44px;
  }

  .item-price {
    font-size: 22px;
  }

  .total-price {
    font-size: 32px;
  }

  .next-btn {
    width: 100%;
    min-width: auto;
  }
}