/* ===== 三個女人烘焙坊 Three Women Bakery ===== */

:root {
  --cream: #FBF3E4;
  --cream-2: #F3E4CB;
  --brown: #5C3A21;
  --brown-light: #8B5E3C;
  --accent: #D98551;
  --accent-dark: #C06B3A;
  --text: #4A3728;
  --white: #FFFFFF;
  --shadow: 0 8px 24px rgba(92, 58, 33, 0.12);
  --radius: 18px;
  --bg-coffee: #3E2415;
  --bg-coffee-soft: #4E301C;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--cream);
  background: var(--bg-coffee);
  line-height: 1.8;
}

h1, h2, h3 {
  font-weight: 900;
  color: var(--cream);
  margin: 0 0 0.5em;
}

h2 { font-size: 2.1rem; }

.eyebrow-small {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 8px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(62, 36, 21, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--cream);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--cream);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--brown-light);
  color: var(--brown);
}

.btn-outline:hover { background: var(--cream-2); }

.btn-small { padding: 8px 18px; font-size: 0.9rem; }

.tracking .btn-outline,
.reviews .btn-outline {
  border-color: var(--cream-2);
  color: var(--cream);
}

.tracking .btn-outline:hover,
.reviews .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--cream);
}

/* Hero */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  background: radial-gradient(circle at top, var(--cream-2), var(--cream));
  position: relative;
}

.hero-photo {
  padding: 130px 0 90px;
  background-image: url('/images/hero-collage.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: var(--bg-coffee);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 18, 10, 0.55) 0%, rgba(30, 18, 10, 0.72) 100%);
}

.hero-photo .hero-inner {
  position: relative;
  z-index: 1;
}

.hero-photo .hero-eyebrow,
.hero-photo .hero-sub,
.hero-photo .hero-meta {
  color: var(--white);
}

.hero-photo h1 {
  color: var(--white);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hero-photo .urgency-badge {
  color: var(--cream);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.btn-on-photo {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.btn-on-photo:hover { background: rgba(255, 255, 255, 0.28); }

.hero-eyebrow {
  letter-spacing: 2px;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.urgency-badge {
  display: inline-block;
  color: var(--brown);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 { font-size: 3.4rem; margin-bottom: 12px; letter-spacing: -1px; }

.hero-sub {
  font-size: 1.15rem;
  color: var(--brown-light);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--brown);
}

.hero-line-btn {
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
}

.hero-line-btn:hover { background: var(--accent-dark); }

/* Sections */
.section { padding: 70px 0; }

.section-note {
  color: var(--cream-2);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: -6px;
  margin-bottom: 28px;
}

/* Story */
.story-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.story-text { flex: 1 1 400px; }

.story-signature {
  font-weight: 700;
  color: var(--cream-2);
  margin-top: 20px;
}

.story-visual {
  flex: 1 1 320px;
}

.story-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(92, 58, 33, 0.18);
  border: 6px solid var(--white);
}

/* Products */
.products { background: var(--bg-coffee-soft); }

.products .section-note { font-size: 1.2rem; text-align: center; }

.products-subheading {
  text-align: center;
  font-size: 1.6rem;
  margin: 8px 0 24px;
}

.products-showcase-photo {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(92, 58, 33, 0.18);
  margin-bottom: 20px;
}

.grid {
  display: grid;
  gap: 24px;
}

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(92, 58, 33, 0.2);
}

.card .icon { font-size: 2.6rem; margin-bottom: 10px; }

.card-photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(92, 58, 33, 0.15);
}

.card h3 { font-size: 1.25rem; margin-bottom: 6px; color: var(--brown); }

.card .price {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card .desc { font-size: 1rem; color: var(--brown-light); }

.product-detail {
  text-align: left;
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.detail-line {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.5;
}

.detail-line:last-child { margin-bottom: 0; }

.detail-weight { word-break: keep-all; }

.detail-label {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

.detail-note {
  font-size: 0.92rem;
  color: var(--brown-light);
  margin: 8px 0 0;
  font-style: italic;
}

.badge-demo {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--cream-2);
  color: var(--brown-light);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* Order */
.order-columns {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.order-form {
  display: grid;
  gap: 16px;
  flex: 1 1 480px;
  max-width: 560px;
  background: var(--white);
  color: var(--text);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

label { font-weight: 700; display: block; margin-bottom: 6px; }

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--cream-2);
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { resize: vertical; min-height: 90px; }

/* 商品卡片本身就是訂購項目（.order-item-row 疊加在 .card 上，只當資料標記用，
   視覺樣式交給 .card 負責，這裡只放卡片內特有的口味選單/數量列） */
.card.order-item-row {
  cursor: default;
}

.card.in-cart {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 30px rgba(217, 133, 81, 0.35);
}

.card .flavor-select {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.85rem;
  border-radius: 10px;
  background: var(--cream);
  margin-bottom: 12px;
  border: 1.5px solid var(--cream-2);
}

.card-qty-control {
  justify-content: center;
  margin-top: 6px;
}

/* 訂購表單裡的「已選品項」摘要 */
.order-summary-list {
  display: grid;
  gap: 8px;
  background: var(--cream);
  border-radius: 12px;
  padding: 14px 16px;
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.9rem;
}

.order-summary-empty {
  color: var(--brown-light);
  font-size: 0.9rem;
  margin: 0;
}

/* 數量加減按鈕 */
.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover { background: var(--accent-dark); }
.qty-btn:active { transform: scale(0.92); }

.order-item-row .qty-input {
  width: 40px;
  text-align: center;
  padding: 6px 2px;
  flex-shrink: 0;
  background: var(--white);
  font-weight: 700;
}

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 12px 18px;
  border-radius: 12px;
}

/* 取貨方式選項 */
.shipping-methods {
  display: grid;
  gap: 10px;
}

.shipping-method-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1.5px solid var(--cream-2);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
}

.shipping-method-option input[type="radio"] {
  width: auto;
  accent-color: var(--accent);
}

.shipping-method-option.selected {
  border-color: var(--accent);
  background: var(--white);
}

/* 訂單金額總覽（滑動時常駐顯示，客人隨時看得到目前金額） */
.order-total-box {
  background: var(--white);
  border-radius: 14px;
  padding: 16px 20px;
  display: grid;
  gap: 8px;
  position: sticky;
  bottom: 14px;
  box-shadow: 0 10px 28px rgba(92, 58, 33, 0.22);
  border: 2px solid var(--cream-2);
  z-index: 5;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  color: var(--brown-light);
  font-weight: 600;
}

.order-total-grand {
  border-top: 1.5px dashed var(--cream-2);
  padding-top: 8px;
  color: var(--brown);
  font-weight: 900;
  font-size: 1.2rem;
}

.order-result {
  max-width: 560px;
  margin-top: 28px;
  background: var(--white);
  color: var(--text);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.order-result h3 { color: var(--brown); }

.order-result pre {
  white-space: pre-wrap;
  background: var(--cream);
  padding: 16px;
  border-radius: 12px;
  font-family: inherit;
}

.order-result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hidden { display: none !important; }

.coupon-row {
  display: flex;
  gap: 8px;
}

.coupon-row input { flex: 1; }

.coupon-message {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 6px 0 0;
  min-height: 1.2em;
}

.coupon-message.success { color: #2E7D32; }
.coupon-message.error { color: #B3341A; }

.line-fallback-note {
  font-size: 0.8rem;
  color: var(--brown-light);
  margin-top: 14px;
}

.line-fallback-note a { color: var(--accent-dark); font-weight: 700; }

.order-payment-reminder {
  margin-top: 20px;
  background: var(--cream);
  border: 2px dashed var(--accent);
  border-radius: 14px;
  padding: 18px 20px;
}

.order-payment-title {
  font-weight: 800;
  color: var(--brown);
  margin: 0 0 10px;
}

.order-payment-reminder ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order-payment-reminder li {
  font-weight: 700;
  margin-bottom: 6px;
}

.order-payment-note {
  font-size: 0.85rem;
  color: var(--brown-light);
  margin: 12px 0 0;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.faq-item {
  background: var(--white);
  color: var(--text);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 12px 0 0;
  color: var(--brown-light);
}

/* Reviews */
.reviews { text-align: center; }

.review-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0 32px;
  text-align: left;
}

.review-quote {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--brown);
  position: relative;
}

.review-quote::before {
  content: '“';
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

/* Bulk / corporate orders */
.bulk {
  text-align: center;
  background: var(--bg-coffee-soft);
}

.bulk .section-note {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Closing CTA */
.closing-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--cream), var(--cream-2));
}

.closing-cta h2 { font-size: 2.4rem; }

.closing-cta p {
  color: var(--brown-light);
  font-size: 1.1rem;
  margin-bottom: 26px;
}

/* Info */
.info { background: var(--bg-coffee-soft); }

.info-inner {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.info-details { flex: 1 1 320px; }

.info-details ul { list-style: none; padding: 0; margin: 0 0 20px; }

.info-details li { margin-bottom: 10px; font-weight: 600; }

.social-links {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
  color: var(--brown);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.social-links a[aria-label="Facebook"]:hover { background: #1877F2; color: var(--white); }
.social-links a[aria-label="Instagram"]:hover { background: #C13584; color: var(--white); }
.social-links a[aria-label="LINE"]:hover { background: #06C755; color: var(--white); }

.social-links a:hover { transform: translateY(-2px); }

/* 反詐騙宣導 */
.antifraud {
  background: var(--bg-coffee-soft);
  text-align: center;
  padding: 50px 0;
}

.antifraud-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 420px;
  margin: 0 auto 20px;
}

.antifraud-divider::before,
.antifraud-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream);
  opacity: 0.3;
}

.antifraud-divider span {
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
}

.antifraud p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--cream-2);
  line-height: 1.9;
}

.payment-info {
  background: var(--brown);
  color: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 300px;
  max-width: 360px;
}

.payment-info h3 { color: var(--white); }

.payment-info li { color: var(--cream); }

.payment-info-note {
  color: var(--cream);
  font-size: 0.9rem;
  margin: 14px 0 10px;
}

.payment-info-line-btn {
  border-color: var(--cream);
  color: var(--white);
}

.payment-info-line-btn:hover { background: rgba(255, 255, 255, 0.12); }

.pickup-note-wrap {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.pickup-note-text { margin: 0; font-weight: 700; color: var(--brown); }

.field-hint {
  font-size: 0.85rem;
  color: var(--brown-light);
  margin: 6px 0 0;
  font-weight: 500;
}

.placeholder-note {
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.info-map {
  flex: 1 1 320px;
  min-height: 320px;
}

.info-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 浮動購物車列 */
.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--brown);
  color: var(--white);
  padding: 12px 14px 12px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  font-weight: 700;
  white-space: nowrap;
}

.cart-bar .btn { padding: 8px 18px; }

@media (max-width: 520px) {
  .cart-bar {
    left: 16px;
    right: 16px;
    transform: none;
    justify-content: space-between;
  }
}

/* Footer */
.site-footer {
  padding: 28px 0;
  text-align: center;
  color: var(--cream-2);
  font-size: 0.9rem;
}

/* Member page */
.member-section { display: flex; justify-content: center; }

.member-inner { max-width: 460px; width: 100%; }

.member-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--cream-2);
  font-weight: 700;
  cursor: pointer;
  color: var(--brown-light);
}

.tab-btn.active { background: var(--accent); color: var(--white); }

.member-form {
  display: grid;
  gap: 14px;
  background: var(--white);
  color: var(--text);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-error {
  color: #B3341A;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.points-card {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 26px;
  border-radius: var(--radius);
  margin: 20px 0;
}

.points-value { font-size: 2.2rem; font-weight: 900; margin: 4px 0 0; }

.points-progress-text {
  font-size: 0.85rem;
  margin: 12px 0 6px;
  opacity: 0.95;
}

.points-progress-track {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.points-progress-fill {
  background: var(--white);
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 0.4s ease;
}

.freejar-banner {
  background: #FFF4E6;
  border: 2px dashed var(--accent);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: center;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 20px;
  line-height: 1.7;
}

.coupon-list { list-style: none; padding: 0; display: grid; gap: 12px; margin-bottom: 24px; }

.coupon-list li {
  background: var(--white);
  color: var(--text);
  border: 2px dashed var(--accent);
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
}

.coupon-list .coupon-code {
  display: block;
  font-size: 0.85rem;
  color: var(--brown-light);
  font-weight: 500;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-coffee);
    flex-direction: column;
    padding: 20px 24px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 600px) {
  .hero-photo { padding: 70px 0 50px; }
  .hero h1 { font-size: 2.1rem; }
  .urgency-badge { font-size: 0.8rem; }
}
