body {
  margin: 0;
  font-family: "Georgia", serif;
  color: #2a4d5f;
  background-color: #f7f9fa;
}

.jcb-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid #d8e2e8;
}

.jcb-logo {
  font-size: 1.3rem;
  font-weight: bold;
}

.jcb-menu {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.jcb-menu a {
  text-decoration: none;
  color: #2a4d5f;
  font-size: 1rem;
}

.jcb-menu a:hover,
.jcb-menu a:focus {
  color: #4b7c8c;
}

.page {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px 24px;
}

.panel {
  background: #fff;
  border: 1px solid #d8e2e8;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-row input,
.search-row select,
.form-grid input,
.form-grid textarea,
.form-grid select,
button {
  font: inherit;
}

.search-row input,
.search-row select,
.form-grid input,
.form-grid textarea,
.form-grid select {
  border: 1px solid #c2d2da;
  border-radius: 8px;
  padding: 10px;
}

button,
.btn-link {
  background: #4b7c8c;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button.secondary,
.btn-link.secondary {
  background: #678d99;
}

button.danger {
  background: #b85a5a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  background: #fff;
  border: 1px solid #d8e2e8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #eef4f7;
}

.card-body {
  padding: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.buy-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buy-size-btn {
  text-align: center;
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
}

.muted {
  color: #5f7783;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e3ecef;
  padding: 10px;
}

.notice {
  padding: 10px;
  border-radius: 8px;
  background: #e8f2f6;
  border: 1px solid #c8dbe4;
  margin: 8px 0;
}

.notice.error {
  background: #fdeeee;
  border-color: #f3c1c1;
  color: #7a2e2e;
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-top: 2px solid #d8e2e8;
}

@media (max-width: 700px) {
  .jcb-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

.purchase-preview {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 18px;
  align-items: start;
  margin: 18px 0 10px;
}

.purchase-preview img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d8e2e8;
  background: #eef4f7;
}

@media (max-width: 760px) {
  .purchase-preview {
    grid-template-columns: 1fr;
  }

  .purchase-preview img {
    max-width: 100%;
  }
}
