.public-shop-page {
  min-height: 70vh;
  padding: 54px max(20px, 6vw) 72px;
  background: #f7faf7;
}
html[lang="ja"] .public-shop-page {
  font-family: "Noto Sans JP", "Noto Sans", "Malgun Gothic", sans-serif;
}
html[lang="th"] .public-shop-page {
  font-family: "Noto Sans Thai", "Noto Sans", "Malgun Gothic", sans-serif;
}
html[lang="id"] .public-shop-page,
html[lang="vi"] .public-shop-page {
  font-family: "Noto Sans", "Malgun Gothic", sans-serif;
}
.ps-wrap {
  width: min(1160px, 100%);
  margin: 0 auto;
}
.ps-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.ps-head h1 {
  margin: 0;
  color: #18343b;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
}
.ps-head p {
  margin: 8px 0 0;
  color: #6f7b7c;
}
.ps-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #cfded7;
  border-radius: 4px;
  background: #fff;
  color: #22444d;
  font-weight: 700;
  cursor: pointer;
}
.ps-btn.primary {
  border-color: #2d5661;
  background: #2d5661;
  color: #fff;
}
.ps-btn.soft {
  border-color: #dbe7dc;
  background: #eff6ef;
}
.ps-btn.danger {
  border-color: #b42318;
  background: #b42318;
  color: #fff;
}
.ps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.ps-card {
  overflow: hidden;
  border: 1px solid #e1e9e5;
  border-radius: 8px;
  background: #fff;
}
.ps-product-img {
  display: block;
  aspect-ratio: 1 / 1;
  background: #eef4ef;
}
.ps-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.ps-product-body {
  padding: 16px;
}
.ps-product-body h2 {
  min-height: 48px;
  margin: 0 0 10px;
  color: #203f47;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.ps-product-body h2 a {
  color: inherit;
}
.ps-price {
  margin: 0 0 14px;
  color: #18343b;
  font-size: 20px;
  font-weight: 800;
}
.ps-detail-link {
  display: inline-flex;
  margin-top: 12px;
  color: #2d5661;
  font-size: 14px;
  font-weight: 800;
}
.ps-buy-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
}
.ps-detail {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(380px, 460px);
  gap: 28px 34px;
  align-items: start;
  justify-content: center;
  margin-bottom: 22px;
}
.ps-detail-media {
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  border: 1px solid #e1e9e5;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}
.ps-detail-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f4f8f5;
}
.ps-detail-info {
  width: 100%;
  max-width: 460px;
  border: 1px solid #e1e9e5;
  border-radius: 8px;
  background: #fff;
  padding: 26px;
}
.ps-detail-code {
  margin: 0 0 8px;
  color: #708286;
  font-size: 13px;
  font-weight: 800;
}
.ps-detail-info h2 {
  margin: 0 0 22px;
  color: #18343b;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.ps-detail-price {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0 0 22px;
}
.ps-detail-price dt {
  color: #60777d;
  font-weight: 800;
}
.ps-detail-price dd {
  margin: 0;
  color: #18343b;
  font-weight: 800;
}
.ps-detail-buy {
  display: grid;
  gap: 14px;
}
.ps-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ps-detail-desc {
  line-height: 1.75;
  color: #355961;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.ps-origin-detail {
  margin-bottom: 22px;
}
.ps-origin-detail h2 {
  margin: 8px 0 10px;
  color: #18343b;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 0;
}
.ps-origin-detail a {
  color: #2d5661;
  font-weight: 800;
}
.ps-detail-image-stack {
  display: grid;
  gap: 0;
  justify-items: center;
  overflow: hidden;
  background: #fff;
}
.ps-detail-image-stack img {
  width: min(100%, 980px);
  height: auto;
  border: 0;
  background: #fff;
}
.ps-buy-row input,
.ps-field input,
.ps-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8e3df;
  border-radius: 4px;
  padding: 0 12px;
  background: #fff;
}
.ps-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}
.ps-address-row .ps-btn {
  min-height: 42px;
  padding: 0 12px;
}
.ps-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
}
.ps-tabs a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid #dce8e4;
  border-radius: 999px;
  background: #fff;
  color: #42626a;
  font-weight: 700;
}
.ps-tabs a.active {
  border-color: #2d5661;
  background: #2d5661;
  color: #fff;
}
.ps-panel {
  border: 1px solid #e1e9e5;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}
.ps-alert-success,
.ps-alert-error,
.ps-alert-info {
  margin-bottom: 18px;
  font-weight: 800;
}
.ps-alert-success {
  color: #18343b;
}
.ps-alert-error {
  color: #b42318;
}
.ps-alert-info {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  border: 1px solid #d8e3df;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  color: #22444d;
}
.ps-alert-info span {
  font-weight: 600;
}
.ps-alert-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ps-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.ps-section-title {
  margin: 0 0 18px;
  color: #18343b;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}
.ps-info-list {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 0;
}
.ps-info-list dt {
  color: #60777d;
  font-weight: 700;
}
.ps-info-list dd {
  min-width: 0;
  margin: 0;
  color: #1f3f47;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}
.ps-profile-addresses {
  margin-top: 18px;
}
.ps-muted {
  color: #6f7b7c;
}
.ps-address-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ps-address-card {
  border: 1px solid #e1e9e5;
  border-radius: 6px;
  padding: 16px;
  background: #fbfdfb;
}
.ps-address-card strong,
.ps-address-card span {
  display: inline-block;
  margin-right: 8px;
  color: #18343b;
}
.ps-address-card p {
  margin: 10px 0;
  color: #2f535b;
  line-height: 1.55;
}
.ps-address-card small {
  color: #77898d;
}
.ps-form {
  display: grid;
  gap: 14px;
}
.ps-field span,
.ps-check span {
  display: block;
  margin-bottom: 6px;
  color: #355961;
  font-weight: 700;
}
.ps-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #405e66;
}
.ps-check input {
  margin-top: 6px;
}
.ps-terms {
  max-height: 150px;
  overflow: auto;
  border: 1px solid #e1e9e5;
  border-radius: 6px;
  padding: 14px;
  background: #fbfdfb;
  color: #5f7377;
  font-size: 14px;
}
.ps-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.ps-table th,
.ps-table td {
  border-bottom: 1px solid #e3ebe7;
  padding: 14px 12px;
  text-align: center;
}
.ps-table th {
  color: #274d56;
  background: #f0f6f2;
}
.ps-table td.left {
  text-align: left;
}
.ps-inline-form {
  display: inline;
  margin: 0;
}
.ps-inline-form .ps-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.ps-status-cancel {
  color: #8a3a34;
  font-weight: 800;
}
.ps-summary {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 18px;
  color: #18343b;
  font-size: 18px;
  font-weight: 800;
}
.ps-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}
.ps-empty {
  padding: 42px 20px;
  border: 1px solid #e1e9e5;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  color: #6f7b7c;
}
.public-shop-footer {
  margin-top: 0;
}
@media (max-width: 900px) {
  .public-shop-page {
    padding: 32px 16px 56px;
  }
  .ps-head {
    display: block;
  }
  .ps-actions {
    margin-top: 14px;
  }
  .ps-grid,
  .ps-profile-grid,
  .ps-address-list,
  .ps-detail,
  .ps-checkout {
    grid-template-columns: 1fr;
  }
  .ps-detail-actions {
    grid-template-columns: 1fr;
  }
  .ps-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .ps-summary {
    display: block;
    text-align: right;
  }
}
