/* 商品頁專用樣式 */

/* products／services 語系字型（與首頁略有不同，沿用既有設定） */
html[lang="en"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[lang="ja"] body {
  font-family: "MS PGothic", "Osaka", "Hiragino Kaku Gothic Pro", -apple-system, sans-serif;
}
html[lang="ko"] body {
  font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", -apple-system, sans-serif;
}

.category_nav {
  background: #FCFCEC;
  border: 1px solid #aaa;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5em;
}
.category_nav a {
  margin: 0 6px;
  white-space: nowrap;
}

/* 單項商品卡片樣式（古典企業風外框） */
.product_card {
  border: 1px solid #aaa;
  background: #fff;
  margin-top: 1.5em;
  margin-bottom: 2em;
}
.product_title {
  background: #FCFCEC;
  border-bottom: 1px solid #aaa;
  padding: 10px 14px;
  font-weight: bold;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.product_tag {
  display: inline-block;
  background: #D82828;
  color: #fff;
  font-size: 0.8rem;
  font-weight: normal;
  padding: 2px 8px;
  border-radius: 2px;
}
.product_tag.regular {
  background: #446688;
}
.product_body {
  display: flex;
  flex-direction: row;
  padding: 16px;
  gap: 20px;
}
.product_img_area {
  flex: 0 0 260px;
  max-width: 260px;
  text-align: center;
}
.product_img_box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f4f4f4;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product_img_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product_info_area {
  flex: 1;
  min-width: 0;
}
.price_special {
  color: #C00000;
  font-weight: bold;
  font-size: 1.2rem;
  margin-left: 6px;
}
.price_wholesale {
  color: #006600;
  font-size: 0.9rem;
  margin-top: 3px;
}
.order_action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75em;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dotted #ccc;
  font-size: 0.9rem;
}
.order_field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3em;
  margin: 0;
  min-width: 0;
}
.order_field_label {
  line-height: 1.3;
}
.order_action select,
.order_action input[type="number"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.3;
  padding: 0.4em 0.55em;
}
.order_row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6em 0.75em;
}
.order_field_qty {
  flex: 0 0 auto;
  width: 5.5em;
}
.order_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 40px;
  background: #E8F0FE;
  border: 1px solid #0000EE;
  color: #0000EE;
  padding: 6px 14px;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}
.order_btn:hover {
  background: #D2E3FC;
  text-decoration: none;
}
.cart-feedback {
  display: block;
  color: #006600;
}

@media (max-width: 900px) {
  .product_img_area { flex: 0 0 220px; max-width: 220px; }
}

@media (max-width: 767px) {
  .product_body {
    flex-direction: column;
    padding: 12px;
    gap: 14px;
  }
  .product_img_area {
    flex: auto;
    max-width: 100%;
  }
  .product_img_box {
    max-width: 320px;
    margin: 0 auto;
  }
  .spec_table th {
    width: 30%;
  }
}
