/* styles.css — 商城風格：自然暖調 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
  background: #f6f2ec;
  color: #2c2c2c;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* navbar */
.navbar {
  background: #fff;
  border-radius: 40px;
  margin: 16px 0 24px;
  padding: 0 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.02);
}
.navbar .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 60px;
}
.logo { font-weight: 500; font-size: 20px; letter-spacing: -0.3px; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.search {
  border: 1px solid #ddd6ce;
  border-radius: 40px;
  padding: 8px 16px;
  background: #f6f2ec;
  font-size: 14px;
}
.cart-icon { font-size: 22px; cursor: default; }

/* banner */
.banner {
  position: relative;
  height: 200px;
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 40px;
  background: #d9cec2;
}
.banner-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #c7b8a9, #e5d9ce);
  opacity: 0.7;
}
.banner-text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%; padding: 0 36px;
}
.banner-text h2 { font-weight: 400; font-size: 26px; color: #2c2c2c; }
.banner-text p { color: #3d352e; margin: 6px 0 12px; }
.btn-outline-light {
  background: transparent;
  border: 1px solid #2c2c2c;
  color: #2c2c2c;
  padding: 8px 20px;
  border-radius: 40px;
  text-decoration: none;
  width: fit-content;
  font-weight: 400;
  transition: 0.15s;
}
.btn-outline-light:hover { background: #2c2c2c; color: #fff; }

/* products */
.products { margin: 40px 0; }
.products h2 { font-weight: 400; font-size: 22px; margin-bottom: 20px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.card img { width: 100%; height: 140px; object-fit: cover; border-radius: 16px; margin-bottom: 10px; }
.card h3 { font-weight: 400; font-size: 16px; }
.price { color: #8b6f50; font-weight: 500; margin: 6px 0; }
.btn-card {
  background: #f3efe9;
  border: none;
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 400;
  cursor: pointer;
  transition: 0.15s;
}
.btn-card:hover { background: #d9cec2; }

/* recommend */
.recommend { margin: 40px 0; }
.recommend h2 { font-weight: 400; font-size: 22px; margin-bottom: 16px; }
.rec-list { display: flex; flex-direction: column; gap: 14px; }
.rec-item {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-radius: 24px; padding: 12px 16px;
}
.rec-item img { width: 80px; height: 80px; border-radius: 16px; object-fit: cover; }
.rec-item div { flex: 1; }
.rec-item h3 { font-weight: 400; font-size: 16px; }
.rec-item p { font-size: 14px; color: #5a5047; }
.btn-small {
  background: #e3dbd1; border: none;
  padding: 4px 16px; border-radius: 40px;
  cursor: pointer; margin-top: 4px;
}

/* Footer 樣式 */
footer {
  margin-top: 50px;
  border-top: 1px solid #ddd6ce;
  padding: 30px 0 16px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-inner h4 {
  font-weight: 400;
  margin-bottom: 6px;
  color: #2c2c2c;
}

.footer-inner p {
  color: #5a5047;
  font-size: 14px;
  line-height: 1.6;
}

/* ul 保持原來樣式 */
.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-inner li {
  color: #5a5047;
  margin: 4px 0;
}

.footer-inner a {
  color: #5a5047;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: #8b6f50;
}

.footer-bottom {
  text-align: center;
  color: #88807a;
  font-size: 13px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ddd6ce;
}

/* 手機版響應 */
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .footer-inner ul {
    padding: 0;
  }
}

