
/* 全站字型僅定義一次，使用 Chocolate Classical Sans */
:root {
  --font-main: "Chocolate Classical Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  /* 調色盤 */
  --color-primary: #FDD9CD; /* 主色：淡杏粉 */
  --color-secondary: #FCF7F1; /* 次色：象牙白 */
  --color-accent1: #B9BEA5; /* 點綴色：石灰灰綠 */
  --color-accent2: #A7AAA4; /* 點綴色：灰綠 */
  --color-accent3: #9899A6; /* 點綴色：薰衣草灰 */
  --color-dark: #444444;    /* 深色：文字主要顏色 */
  --max-width: 1200px;      /* 內容區域最大寬度 */
  font-size: 16px;
}

html,
body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--color-secondary);
  color: var(--color-dark);
  line-height: 1.6;
}

/* 區域限制寬度並置中 */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* 導覽列樣式已移至 nav.css */

/* 行動裝置導覽列樣式已移至 nav.css */

/* 頁尾樣式已移至 footer.css */

/* Hero 區塊 */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 4rem 0 5rem 0;
  text-align: center;
  color: var(--color-dark);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent1);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: var(--color-accent2);
}

/* 產品列表 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .product-info {
  padding: 1rem;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.product-card .product-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.product-card .product-info p {
  flex-grow: 1;
  color: var(--color-accent3);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.product-card .price {
  font-weight: bold;
  margin: 0.5rem 0;
}

.product-card .actions {
  margin-top: auto;
}

/* 表單樣式 */
form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-accent2);
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

form button {
  background-color: var(--color-accent1);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

form button:hover {
  background-color: var(--color-accent2);
}

/* 購物車表格 */
table.cart {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

table.cart th,
table.cart td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-secondary);
}

table.cart th {
  background-color: var(--color-primary);
  color: var(--color-dark);
  font-weight: 600;
}

table.cart td.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-control button {
  background-color: var(--color-accent1);
  color: #fff;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.quantity-control button:hover {
  background-color: var(--color-accent2);
}

.cart-summary {
  text-align: right;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* FAQ 區塊 */
.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-accent2);
  padding-bottom: 0.75rem;
}
.faq-question {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-accent3);
}
.faq-question .icon {
  font-weight: 600;
  margin-right: 0.5rem;
}
.faq-answer {
  margin-top: 0.5rem;
  display: none;
  color: var(--color-dark);
}

/* 訂單完成頁面 */
.order-success {
  text-align: center;
  padding: 4rem 0;
}

.order-success h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.order-success p {
  font-size: 1.2rem;
}