* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #ffffff;
  color: #333333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background-color: #ffffff;
  border-bottom: 1px solid #f0ebe6;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hamburger-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #444;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.cart-icon {
  cursor: pointer;
  font-size: 1rem;
  color: #444;
}

/* Logo 樣式 */
.site-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 10px 0;
}

.logo-main {
  font-family: 'Caveat', cursive;
  font-size: 2.6rem;
  color: #b5836d;
  line-height: 1;
}

.logo-sub {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: #b5836d;
  margin-top: 4px;
}

/* ☰ 側邊選單與下拉菜單 */
.nav-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 270px;
  height: 100%;
  background-color: #f2ede9;
  z-index: 1002;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 12px rgba(0,0,0,0.08);
  overflow-y: auto;
  will-change: left;
}

.nav-menu.active {
  left: 0;
}

.nav-menu-header {
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
}

.nav-menu-header .close-btn {
  color: #666;
  font-size: 1.8rem;
  cursor: pointer;
}

.nav-menu-list {
  list-style: none;
}

.nav-menu-list a, .menu-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  color: #4a443f;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nav-menu-list a:hover,
.menu-parent:hover,
.nav-menu-list a.active {
  background-color: #e2dad5;
}

.toggle-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.submenu {
  list-style: none;
  background-color: #eaded8;
  display: none;
}

.has-submenu.open .submenu {
  display: block;
}

.has-submenu.open .toggle-icon {
  transform: rotate(180deg);
}

.submenu a {
  padding-left: 2.5rem !important;
  font-size: 0.88rem !important;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1001;
  display: none;
}

.nav-overlay.active {
  display: block;
}

/* 返回上一頁按鈕樣式 */
.btn-back {
  background-color: transparent;
  border: 1px solid #ddd;
  color: #4a443f;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background-color: #f2ede9;
  border-color: #b5aca6;
}

/* 主頁商品區塊 */
.products-section {
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 0 0.8rem;
}

.products-section h2 {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.filter-search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 0.6rem 0.6rem 2.2rem;
  border: 1px solid #e0d8d0;
  border-radius: 4px;
  background-color: #faf8f5;
  outline: none;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
}

.product-title-link {
  text-decoration: none;
  color: inherit;
}

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

.product-title {
  font-size: 0.82rem;
  color: #222;
  margin-bottom: 0.3rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 0.88rem;
  color:#222;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.btn-add-cart-text {
  width: 100%;
  background-color: #b5836d;
  color: #ffffff;
  border: none;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 0.8rem;
  transition: background-color 0.3s ease;
}

.btn-add-cart-text:hover {
  background-color: #292625;
}

/* 🛍️ 商品詳情頁 (product.html) 多圖樣式 */
.product-detail-container {
  max-width: 900px;
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
}

.detail-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .detail-wrapper {
    flex-direction: row;
    gap: 2.5rem;
  }
}

.detail-image-box {
  flex: 1;
}

.main-image-container img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

/* 多圖縮圖列表 */
.thumbnail-list {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.thumbnail-img {
  width: 65px;
  height: 85px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.thumbnail-img:hover,
.thumbnail-img.active {
  opacity: 1;
  border-color: #4a443f;
}

.detail-info-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.detail-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4a443f;
  margin-bottom: 1rem;
}

.detail-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.detail-option {
  margin-bottom: 1rem;
}

.detail-option label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.detail-option select, .detail-option input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #faf8f5;
}

.btn-detail-add-cart {
  background-color: #222;
  color: #ffffff;
  border: none;
  padding: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
}

.btn-detail-add-cart:hover {
  background-color: #4a443f;
}

/* 購物車 Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 1003;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 12px rgba(0,0,0,0.08);
  will-change: right;
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-body {
  padding: 1rem;
  flex-grow: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f2ede9;
}

.cart-item-info p {
  font-size: 0.8rem;
}

.cart-item-info span {
  font-size: 0.75rem;
  color: #777;
}

.cart-footer {
  padding: 1rem;
  border-top: 1px solid #eee;
  background: #f2ede9;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.btn-checkout {
  width: 100%;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0.7rem;
  border-radius: 4px;
  cursor: pointer;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1001;
  display: none;
}

.cart-overlay.active {
  display: block;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1005;
  justify-content: center;
  align-items: center;
}

.checkout-content {
  background: #fff;
  padding: 1.2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 440px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.payment-info-box {
  background-color: #f2ede9;
  padding: 0.8rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.qr-code-grid {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.qr-item {
  flex: 1;
  background: #fff;
  padding: 6px;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.qr-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.qr-item img {
  width: 100%;
  max-width: 90px;
  display: block;
  margin: 4px auto 0;
}

.form-group {
  margin-bottom: 0.7rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.btn-submit-order {
  width: 100%;
  background-color: #b5836d;
  color: #fff;
  border: none;
  padding: 0.7rem;
  border-radius: 4px;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 2rem 0;
  color: #999;
  font-size: 0.75rem;
}

/* Lightbox 放大圖片 Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.image-modal-content {
  max-width: 85%;
  max-height: 85%;
  border-radius: 6px;
  background-color: #fff;
  padding: 10px;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
}
/* 將主頁嘅加入購物車按鈕改為你鍾意嘅溫柔色調 */
.btn-add-cart-text {
  background-color: #b5836d !important; /* 呢度可以換你想要的色碼，例如 #b5836d 灰橙色 */
  color: #ffffff !important;         /* 字體顏色（如果背景淺色，可以改 #4a443f 深啡字） */
  border: none !important;
  transition: background-color 0.3s ease !important; /* <--- 喺呢度補返呢句！ */
}

/* 滑鼠放上去時嘅微調色 */
.btn-add-cart-text:hover {
  background-color: #292625 !important; 
}

#promo-banner {
  font-size: 1.1rem !important; /* 數字越大字越大，你可以試 1.2rem 或 1.3rem */
  padding: 12px 0 !important;
}
/* 將 ALPHA 改用手寫字體 */
h1 {
  font-family: 'Caveat', cursive !important;
  font-size: 2.5rem !important; /* 手寫字通常要放大少少先夠顯眼 */
  letter-spacing: 2px; /* 增加少少字距，更有質感 */
}
.color-btn {
  padding: 6px 14px;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

/* 當按鈕被選中時嘅靚靚外觀 */
.color-btn.active {
  border-color: #b5836d;
  background-color: #b5836d;
  color: #fff;
  font-weight: bold;
}
/* 套用 Arial Rounded MT Bold 圓碌碌可愛字體 */
body {
  font-family: "Arial Rounded MT Bold", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0.8px;
}

/* 確保商品標題、按鈕及導航列都全面轉用呢隻得意字體 */
.detail-title, .product-card h4, .navbar, button, input, textarea {
  font-family: "Arial Rounded MT Bold", "Microsoft JhengHei", sans-serif;
}

/* 1. 強制放大商品大標題，並套用圓碌碌字體 */
.detail-title {
  font-size: 1.8rem !important; /* 你可以隨便改數字，例如 1.8rem 或 2.2rem */
  font-family: "Arial Rounded MT Bold", "Microsoft JhengHei", sans-serif !important;
}

/* 2. 調整價錢大細 */
.detail-price {
  font-size: 1.5rem !important;
  font-family: "Arial Rounded MT Bold", "Microsoft JhengHei", sans-serif !important;
}

/* 3. 調整 Size / 描述大細 */
.detail-description {
  font-size: 1.0rem !important;
  font-family: "Arial Rounded MT Bold", "Microsoft JhengHei", sans-serif !important;
}

/* 4. 強制調整「顏色：」呢粒字嘅大細 */
.product-color-selector label {
  font-size: 1.3rem !important;
  font-family: "Arial Rounded MT Bold", "Microsoft JhengHei", sans-serif !important;
}

/* 5. 強制調整長方形顏色按鈕裡面嘅字體大細 */
.color-btn {
  font-size: 1.1rem !important;
  font-family: "Arial Rounded MT Bold", "Microsoft JhengHei", sans-serif !important;
}
/* 淨係轉「加入購物車」按鈕嘅背景色同文字顏色 */
.btn-detail-add-cart {
  background-color: #b5836d !important; /* 按鈕背景色（你可以隨便改色碼，例如 #d4a373、#e07a5f 等） */
  color: #ffffff !important;           /* 按鈕入面嘅文字顏色 (白色) */
  border: none !important;             /* 確保無多餘外框 */
}

/* 滑鼠移上去按鈕時嘅微調效果 */
.btn-detail-add-cart:hover {
  opacity: 0.9;
}
.color-btn.sold-out {
  opacity: 0.45;
  text-decoration: line-through;
  cursor: not-allowed;
  background: #f0f0f0 !important;
  color: #999 !important;
  border-color: #ddd !important;
}
.color-btn:disabled {
  pointer-events: none;
}

