body { font-family: sans-serif; padding: 20px; margin: 0; }

.product-detail-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  box-shadow none !important;
  background: none !important;
  border: none !important;
}



.product-left {
  flex: 1;
  max-width: 50%;
}

.product-left img {
  max-width: 100%;
  height: auto;
  min-width: 0;
  object-fit: contain;
}


.product-right {
  flex: 1;
  max-width: 50%;
  font-size: 16px;
  line-height: 1.6;
  min-width: 0;
}


.page-wrapper {
  max-width: 800px;
  margin: 0 auto;
}


.container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

  .content-wrapper {
  width: 100%;               /* 撐滿可用寬度（配合響應式） */
  max-width: 800px;          /* 限制最大寬度為 800px */
  margin: 0 auto;            /* 左右自動置中 */
  padding: 20px;             /* 內邊距讓內容不貼邊 */
  line-height: 1.8;          /* 提升可讀性 */
  box-sizing: border-box;    /* 讓 padding 不額外撐寬度 */
  text-align: center;        /* 可選：讓文字預設置中 */
  text-decoration: none;
}  


ul {
  list-style: none;
  padding-left: -30;
  margin-left: 0;
}

.sidebar a {
  text-decoration: none;
  color: inherit; /* 讓連結用跟文字一樣的顏色 */
  list-style: none;
  text-align: left; 
}

.title-logo {
  font-weight: 800;
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  margin: 0 auto;         /* 左右自動＝水平置中 */
  text-align: center;       /* ? 這句很重要：讓段落靠左對齊 */
  line-height: 0;       /* 可選：增強可讀性 */ 
  text-decoration: none;
}

.sidebar {
  font-weight: 100;
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-size: 20px;
  max-width: 800px;       /* 控制整段文章區塊寬度 */
  margin: 0 auto;         /* 左右自動＝水平置中 */
  padding: 0px;
  text-align: left;       /* ? 這句很重要：讓段落靠左對齊 */
  line-height: 1.2;       /* 可選：增強可讀性 */ 
  text-decoration: none;
  list-style: none;
  width: 150px;
}
.main-content {
  flex: 1; 
  max-width: 800px; /* 若有設定過限制，可改成 100% */
  margin: 0 auto;
}


.sidebar ul {
  list-style: none;
  padding-left: 0;
}
.sidebar li {
  margin-bottom: 0.5rem;
  list-style: none;
}

.product-card img {
  box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}

.product-grid {
  width: 630px;
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 每列 5 個 */
}

.product-card h2 {
  text-align: center;
  margin: 8px 0 4px; /* 可微調上下間距 */
  font-size: 22px;
  font-weight: normal;
}

.product-card p {
  text-align: center;
  margin: 0;
  font-size: 15px;
  color: #555;
  margin-bottom: 12px;
  
}

.product-card {
  padding: 10px;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.product-card a {
  text-decoration: none;
  color: inherit; /* 避免變藍色 */
}

.detail-box {
  display: block;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 12px;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

.product-detail-container img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 4px; /* 可選：讓陰影看起來柔和 */
}



@media (max-width: 200px) {
  .container {
    flex-direction: column;
  }
  .script-leftside {
    width: 100%;
    padding-right: 0;
  }
}
