/* 修正桌機版商品圖片容器 */
@media (min-width: 701px) {
  .product-modal {
    align-items: center;
  }
  .modal-gallery {
    align-self: center;
    height: auto;
    min-height: 0;
  }
  .modal-gallery #modalImage {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
/* 手機版圖片高度 */
@media (max-width: 700px) {
  .product-modal .modal-gallery {
    width: 100%;
    height: 220px;
  }
  .product-modal .modal-gallery #modalImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&family=Noto+Serif+TC:wght@400;500;600&display=swap');
:root{--milk:#fbf9f5;--cream:#f1e9df;--cocoa:#49372f;--rose:#a97870;--dusty:#d7aaa5;--muted:#8d8178;--line:#e4dbd1;--blue:#b9cdd3}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;background:var(--milk);color:var(--cocoa);font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif}
button,input,select{font:inherit}
button{cursor:pointer}
.countdown-bar{position:sticky;top:0;z-index:50;min-height:44px;padding:9px 16px;background:var(--rose);color:#fff;display:flex;align-items:center;justify-content:center;gap:13px;font-size:12px;letter-spacing:.04em}
.countdown-clock{font-variant-numeric:tabular-nums;font-weight:700;letter-spacing:.08em}
.site-header{height:76px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;background:var(--milk);border-bottom:1px solid var(--line)}
.brand{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--cocoa)}
.brand strong{font-family:Georgia,serif;font-size:32px;font-weight:500;letter-spacing:-.06em}
.brand span{font-size:9px;letter-spacing:.2em;color:var(--muted)}
.cart-header{border:1px solid var(--line);background:transparent;color:var(--cocoa);padding:10px 15px;border-radius:30px;font-size:11px}
.cart-header b,.cart-fab b{display:inline-grid;place-items:center;min-width:21px;height:21px;margin-left:6px;padding:0 5px;border-radius:50%;background:#fff;color:var(--rose)}
.hero{display:grid;grid-template-columns:.9fr 1.1fr;gap:5%;align-items:center;padding:48px 7% 58px}
.eyebrow{font-size:15px;letter-spacing:.2em;color:var(--rose);font-weight:700}
.hero h1{font-family:"Noto Serif TC",serif;font-size:clamp(34px,5vw,58px);font-weight:500;line-height:1.45;margin:15px 0}
.hero h1 em{font-style:normal;color:var(--rose)}
.hero-copy>p:not(.eyebrow){max-width:390px;color:var(--muted);font-size:13px;line-height:2}
.hero-link{display:inline-block;margin-top:16px;padding:12px 20px;background:var(--cocoa);color:#fff;text-decoration:none;font-size:11px;letter-spacing:.08em}
.hero-image{height:320px;position:relative;overflow:hidden;background:var(--cream)}
.hero-image img{width:100%;height:100%;object-fit:cover}
.hero-image span{position:absolute;right:18px;bottom:18px;color:#fff;font-family:Georgia,serif;font-size:20px;line-height:1.35;text-align:right;text-shadow:0 1px 8px #55463c}
.products-section{padding:48px 7% 76px;background:#f1ebe3}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:22px}
.section-heading h2,.closing-note h2{font-family:"Noto Serif TC",serif;font-size:30px;font-weight:500;margin:8px 0 0}
.section-hint{font-size:11px;color:var(--muted)}
.category-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:25px}
.category-tab{padding:9px 20px;border:1px solid #d7c9bb;border-radius:30px;background:transparent;color:var(--cocoa);font-size:12px}
.category-tab.active{background:var(--rose);border-color:var(--rose);color:#fff}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px}
.product-card{min-width:0;background:var(--milk);cursor:pointer;transition:transform .2s}
.product-card:hover{transform:translateY(-3px)}
.product-photo{position:relative;aspect-ratio:1/1.05;overflow:hidden;background:#e5ddd3}
.product-photo img{width:100%;height:100%;object-fit:cover;display:block}
.product-tag{position:absolute;top:12px;left:12px;padding:6px 9px;background:rgba(251,249,245,.92);font-size:9px;letter-spacing:.08em}
.product-info{padding:13px 14px 16px}
.product-info h3{font-family:"Noto Serif TC",serif;font-size:16px;font-weight:500;margin:0 0 6px}
.product-info p{margin:0;color:var(--muted);font-size:11px;line-height:1.7}
.product-price{margin-top:10px;font-size:13px;font-weight:700}
.loading,.no-products{grid-column:1/-1;text-align:center;padding:35px;color:var(--muted);font-size:12px}
.closing-note{text-align:center;padding:65px 20px}
.closing-note h2{line-height:1.7}
.closing-note>p:last-child{font-size:11px;color:var(--muted)}
footer{padding:28px 7%;background:var(--cocoa);color:#fff;display:flex;align-items:end;justify-content:space-between}
footer strong{font-family:Georgia,serif;font-size:25px;font-weight:500}
footer span{font-size:9px;letter-spacing:.16em;color:#d9cbc0}
.cart-fab{position:fixed;right:20px;bottom:20px;z-index:30;padding:13px 20px;border:0;border-radius:40px;background:var(--cocoa);color:#fff;box-shadow:0 7px 22px #49372f30;font-size:12px}
.campaign-bubble{position:fixed;right:22px;bottom:88px;z-index:45;width:min(320px,calc(100vw - 28px));padding:17px 18px;background:#fff;border:1px solid var(--line);border-radius:17px 17px 4px 17px;box-shadow:0 10px 35px #49372f26;opacity:0;visibility:hidden;transform:translateY(12px);transition:.25s}
.campaign-bubble.open{opacity:1;visibility:visible;transform:translateY(0)}
.bubble-head{display:flex;align-items:center;gap:9px}
.bubble-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--cocoa);color:white;font-family:Georgia,serif}
.bubble-head b{font-size:11px}.bubble-head small{display:block;margin-top:3px;color:var(--muted);font-size:9px}
.bubble-close{margin-left:auto;border:0;border-radius:50%;width:27px;height:27px;background:#f3eee8;color:var(--cocoa);font-size:18px}
.bubble-kicker{margin:15px 0 5px;color:var(--rose);font-size:9px;letter-spacing:.16em}
.campaign-bubble h3{margin:0 0 7px;font-family:"Noto Serif TC",serif;font-size:20px;font-weight:500}
.bubble-text,.campaign-bubble>p:not(.bubble-kicker){font-size:11px;line-height:1.8;color:var(--muted)}
.bubble-cta{width:100%;margin-top:10px;padding:11px;border:0;background:var(--rose);color:#fff;font-size:11px}
.bubble-mini{display:none;position:fixed;right:18px;bottom:88px;z-index:45;border:1px solid var(--line);border-radius:30px;background:#fff;color:var(--cocoa);padding:11px 15px;box-shadow:0 7px 22px #49372f22;font-size:11px}
.bubble-mini.visible{display:block}
.modal-backdrop{display:none;position:fixed;inset:0;z-index:60;padding:18px;background:#30251f99;align-items:center;justify-content:center}
.modal-backdrop.open{display:flex}
.product-modal,.cart-modal{position:relative;width:min(760px,100%);max-height:90vh;overflow:auto;background:var(--milk)}
.product-modal{display:grid;grid-template-columns:1fr 1fr}
.product-modal>img{width:100%;height:100%;min-height:400px;object-fit:cover}
.modal-content{padding:35px 28px}
.modal-content h2,.cart-modal h2{font-family:"Noto Serif TC",serif;font-weight:500;font-size:25px;margin:8px 0}
.modal-description{font-size:12px;color:var(--muted);line-height:1.8}
.modal-price{display:block;margin:14px 0 20px}
.modal-content label{display:block;margin:12px 0;font-size:11px;color:var(--muted)}
.modal-content select,.modal-content input{display:block;width:100%;margin-top:6px;padding:11px;border:1px solid var(--line);background:white;color:var(--cocoa)}
.primary-button{width:100%;margin-top:15px;padding:13px;border:0;background:var(--cocoa);color:white;font-size:12px}
.modal-close{position:absolute;right:12px;top:12px;z-index:2;width:34px;height:34px;border:0;border-radius:50%;background:#fff;color:var(--cocoa);font-size:20px}
.cart-modal{padding:32px;width:min(560px,100%)}
.cart-row{display:grid;grid-template-columns:65px 1fr auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}
.cart-row img{width:65px;height:70px;object-fit:cover}
.cart-row h3{font-family:"Noto Serif TC",serif;font-size:14px;font-weight:500;margin:0 0 5px}
.cart-row p{font-size:10px;color:var(--muted);margin:3px 0}
.cart-row input{width:52px;padding:6px;border:1px solid var(--line)}
.remove-item{border:0;background:none;color:var(--rose);font-size:10px;padding:4px 0}
.cart-total{text-align:right;padding:17px 0;font-weight:700}
.cart-empty{text-align:center;padding:28px 0;color:var(--muted);font-size:12px}
.cart-disclaimer{font-size:10px;line-height:1.8;color:var(--muted)}
@media(max-width:700px){
 .countdown-bar{gap:7px;font-size:10px;flex-wrap:wrap;padding:8px}
 .site-header{height:65px;padding:0 5%}
 .brand strong{font-size:28px}
 .hero{grid-template-columns:1fr;padding:32px 5% 38px;gap:24px}
 .hero-image{height:190px}
 .hero h1{font-size:32px}
 .products-section{padding:38px 5% 65px}
 .section-heading{align-items:start;flex-direction:column;gap:5px}
 .section-heading h2{font-size:25px}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 10px}
 .product-info{padding:11px 10px 13px}
 .product-info h3{font-size:14px}
 .product-price{font-size:12px}
 .category-tab{padding:8px 15px}
 .closing-note h2{font-size:24px}
 footer{padding:24px 5%}
 .cart-fab{left:12px;right:12px;bottom:12px;border-radius:6px}
 .campaign-bubble{right:12px;bottom:76px}
 .bubble-mini{right:14px;bottom:78px}
 .product-modal{display:block;max-width:440px}
 .product-modal>img{height:220px;min-height:0;display:block}
 .modal-content{padding:22px}
 .cart-modal{padding:25px 18px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* =========================
   購物車文字樣式
========================= */
/* 購物車提醒文字 */
.cart-disclaimer {
  display: block;
  width: 100%;
  text-align: center !important;
  margin: 24px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
/* 官方帳號提醒文字 */
.cart-contact-reminder {
  text-align: center !important;
  font-size: 15px;
  line-height: 1.9;
}
/* 購物車備註 */
.cart-contact-note {
  text-align: center !important;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
/* 商品詳情照片輪播 */
.modal-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f7f4ef;
}
.modal-gallery #modalImage {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
/* MAOPAW 重複浮水印 */
.image-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  overflow: hidden;
}
.image-watermark span {
  color: rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  transform: rotate(-28deg);
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  user-select: none;
}
/* 切換箭頭 */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #493d35;
  font-size: 27px;
  cursor: pointer;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-arrow:disabled {
  display: none;
}
/* 照片數量 */
.gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(40, 35, 32, 0.58);
  color: white;
  font-size: 12px;
}
/* =================================
   MAOPAW LOOKBOOK｜搜尋與排序
================================= */
.product-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  width: 100%;
}
/* 搜尋框 */
#productSearch {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px 0 46px;
  border: 1px solid #dfd3c7;
  border-radius: 5px;
  outline: none;
  background-color: #fbf9f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238d8178' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 18px;
  color: var(--cocoa);
  font-size: 12px;
  letter-spacing: .03em;
  transition: border-color .2s, box-shadow .2s;
}
#productSearch::placeholder {
  color: #a99d93;
}
#productSearch:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(169, 120, 112, .09);
}
/* 排序選單 */
#productSort {
  flex: 0 0 220px;
  height: 48px;
  padding: 0 38px 0 15px;
  border: 1px solid #dfd3c7;
  border-radius: 5px;
  outline: none;
  background-color: #fbf9f5;
  color: var(--cocoa);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
#productSort:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(169, 120, 112, .09);
}
/* 手機版 */
@media (max-width: 700px) {
  .product-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin-bottom: 22px;
  }
  #productSearch,
  #productSort {
    width: 100%;
    flex: none;
    height: 46px;
    font-size: 12px;
  }
}
/* ===== VIEW MORE ===== */
.load-more-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 0 48px;
  width: 100%;
}
.load-more-btn {
  min-width: 190px;
  padding: 14px 36px;
  border: 1px solid var(--cocoa);
  border-radius: 2px;
  background: transparent;
  color: var(--cocoa);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.load-more-btn:active {
  transform: scale(0.98);
}
.load-more-btn:hover {
  background: var(--cocoa, #806b5b);
  color: #fff;
}
.load-more-count {
  margin: 12px 0 0;
  color: #9b8c80;
  font-size: 11px;
  letter-spacing: 1px;
}
/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  right: 22px;
  z-index: 900;
  width: 42px;
  height: 42px;
  border: 1px solid var(--cocoa, #806b5b);
  border-radius: 50%;
  background: var(--milk, #f8f5ef);
  color: var(--cocoa, #806b5b);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--cocoa, #806b5b);
  color: #fff;
}
/* 手機版位置 */
@media (max-width: 768px) {
  .back-to-top {
    right: 14px;
  }
}
/* =================================
   MAOPAW LOOKBOOK｜文字尺寸統一優化
================================= */
/* 首頁介紹 */
.hero-copy>p:not(.eyebrow) {
  font-size: 15px;
}
/* 商品卡片 */
.product-info p {
  font-size: 13px;
  line-height: 1.8;
}
.product-price {
  font-size: 14px;
}
/* 分類按鈕 */
.category-tab {
  font-size: 13px;
}
/* 搜尋與排序 */
#productSearch,
#productSort {
  font-size: 14px;
}
/* 商品詳情 */
.modal-description {
  font-size: 14px;
  line-height: 1.9;
}
.modal-content label {
  font-size: 13px;
}
/* 購物車 */
.cart-row p {
  font-size: 12px;
  line-height: 1.7;
}
/* 活動提示泡泡 */
.bubble-text,
.campaign-bubble>p:not(.bubble-kicker) {
  font-size: 13px;
  line-height: 1.9;
}
/* 手機版商品卡片 */
@media (max-width: 700px) {
  .product-info p {
    font-size: 12px;
  }
  .product-price {
    font-size: 13px;
  }
  .modal-description {
    font-size: 14px;
  }
}
/* =========================
   購物車 CTA 按鈕
========================= */
.cart-contact-actions {
  margin-top: 18px;
}
.cart-contact-reminder {
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
  color: var(--cocoa);
  margin: 15px 0;
}
.cart-contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-contact-btn {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s ease;
}
.cart-contact-btn:hover {
  opacity: .85;
}
.cart-contact-btn.line {
  background: #06C755;
  color: #fff;
}
.cart-contact-btn.instagram {
  background: #D62976;
  color: #fff;
}
.cart-contact-note {
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 12px;
}
/* =========================
   15 分鐘限時截圖優惠
========================= */
.cart-offer-timer {
  margin: 22px 0 18px;
  padding: 22px 16px;
  text-align: center;
  background: #f5eee8;
  border: 1px solid #e5d5c9;
  border-radius: 8px;
}
.cart-offer-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #96715f;
  margin-bottom: 10px;
}
.cart-offer-timer h3 {
  font-size: 19px;
  font-weight: 700;
  color: #654638;
  margin: 0 0 12px;
}
.cart-offer-clock {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 3px;
  color: #a34f45;
  font-variant-numeric: tabular-nums;
}
.cart-offer-clock.expired {
  color: #999;
}
.cart-offer-status {
  font-size: 12px;
  color: #a34f45;
  font-weight: 700;
  margin: 10px 0;
}
.cart-offer-description {
  font-size: 12px;
  line-height: 1.8;
  color: #806d62;
  margin: 0;
}
