/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/


/* 加入購物車按鈕加入成功狀態 */
.product-btn.added {
  background: #28a745;
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 0 0 0 rgba(40,167,69,0.7);
  animation: addedPulse 1.2s ease-out;
}
@keyframes addedPulse {
  0% { box-shadow: 0 0 0 0 rgba(40,167,69,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(40,167,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(40,167,69,0); }
}

/* 購物車徽章跳動動畫 */
#cartCount.cart-badge-pulse {
  animation: cartPulse 0.8s ease;
}
@keyframes cartPulse {
  0% { transform: scale(1); background: #dc3545; }
  40% { transform: scale(1.25); background: #c82333; }
  100% { transform: scale(1); background: #dc3545; }
}

/* 兩段式加入：數量輸入面板 */
.product-card .qty-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-card .qty-input {
  width: 72px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}
.product-card .qty-confirm {
  border: none;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
}
.product-card .qty-cancel {
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  padding: 6px 10px;
  border-radius: 4px;
}
@media (max-width: 576px) {
  .product-card .qty-input { width: 56px; }
}


/* 產品卡片底部保持橫向排版且不換行 */
.product-footer {
  flex-wrap: nowrap;
  column-gap: 8px;
}
.product-price {
  font-size: 0.9rem;
}

/* 兩段式加入：數量面板強制橫列且精簡尺寸 */
.product-card .qty-prompt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
/* 兩位數寬度的精簡數量框（置中） */
.product-card .qty-input {
  width: 40px !important;
  padding: 2px 4px !important;
  text-align: center;
  font-size: 12px !important;
}
@media (max-width: 576px) {
  .product-card .qty-input {
    width: 34px !important;
    padding: 2px 4px !important;
    font-size: 12px !important;
  }
}
.product-card .qty-confirm,
.product-card .qty-cancel {
  padding: 4px 8px;
  font-size: 13px;
}

@media (max-width: 576px) {
  .product-card .qty-input { width: 48px; padding: 3px 6px; font-size: 12px; }
  .product-card .qty-confirm,
  .product-card .qty-cancel { padding: 3px 6px; font-size: 12px; }
  .product-price { font-size: 0.85rem; }
}


/* 修復：滾動後（sticky header）桌機點不到漢堡鍵
   原因：.is-expanded-menu .sticky-header #header-wrap 沒有 z-index，會被內容覆蓋
   解法：提升 sticky header 疊層，確保在所有內容之上 */
.is-expanded-menu .sticky-header #header-wrap {
  z-index: 1000 !important;
}



