/** Shopify CDN: Minification failed

Line 1778:1 Expected "}" to go with "{"

**/
/* Product Overview Custom Styles - 完整重寫版本 */

/* ========================================
   基礎樣式和重置
   ======================================== */
:root {
  --header-height: var(--header-height, 80px);
}

.product-overview-custom-section {
  --primary-color: #2f6b62;
  --primary-hover: #33CFAE;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --border-color: #e0e0e0;
  --bg-light: #f8f9fa;
  --bg-card: #fafafa;
  --bg-card-hover: #EBF0EF;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  padding: 60px 0;
}

.product-overview-custom-section * {
  box-sizing: border-box;
}

/* 容器設定 */
.product-overview-custom-section .container,
.product-overview-custom-section .container-fluid,
.product-overview-custom-section .container-full {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (min-width: 1920px) {
  .product-overview-custom-section .container,
  .product-overview-custom-section .container-fluid {
    padding: 0 80px;
  }
}

.product-overview-custom-section .container-full {
  max-width: 100%;
  padding: 0;
}

/* ========================================
   標題區域
   ======================================== */
.product-overview-custom__header {
  padding: 60px 0;
  margin-bottom: 50px;
  text-align: center;
  background: transparent;
  border-radius: var(--border-radius);
}

.product-overview-custom__title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-family: var(--font-heading-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.product-overview-custom__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.product-overview-custom__subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--font-body-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* ========================================
   Tab Navigation - 桌面版
   ======================================== */
.product-overview-custom__tabs-wrapper {
  position: relative;
  background: transparent;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.product-overview-custom__tabs-navigation {
  display: flex;
  gap: 40px;
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  justify-content: center;
}

.product-overview-custom__tabs-navigation::-webkit-scrollbar {
  display: none;
}

.product-overview-custom__tab-link {
  padding: 10px 0;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-body-family, inherit);
  border-bottom: 2px solid transparent;
}

.product-overview-custom__tab-link:hover {
  color: var(--primary-color);
}

.product-overview-custom__tab-link.active {
  color: var(--primary-color);
  font-weight: 500;
  border-bottom-color: var(--primary-color);
}

/* ========================================
   搜尋功能 - 桌面版
   ======================================== */
.product-overview-custom__search-trigger {
  flex-shrink: 0;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  transition: all 0.3s;
  z-index: 1002;
  position: relative;
  margin-left: auto;
}

.product-overview-custom__search-trigger:hover {
  color: #2f6b62;
}

.product-overview-custom__search-trigger svg {
  width: 24px;
  height: 24px;
}

.product-overview-custom__search-container {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: 90%;
  max-width: 800px;
  background: white;
  z-index: 1015;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.product-overview-custom__tabs-wrapper.search-active .product-overview-custom__search-container {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.product-overview-custom__search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.product-overview-custom__search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-overview-custom__search-header {
  padding: 60px 20px 4px 20px;
  background: transparent;
  position: relative;
  border-radius: 12px 12px 0 0;
  z-index: 1016;
}

.product-overview-custom__search-close-bar {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1017;
}

.product-overview-custom__search-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  z-index: 1018;
}

.product-overview-custom__search-close:hover {
  background: #f0f0f0;
  color: #2f6b62;
}

.product-overview-custom__search-input-wrapper {
  position: relative;
  width: 100%;
  padding-right: 0;
  z-index: 1016;
}

.product-overview-custom__search-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
  font-family: var(--font-body-family);
  background-color: white;
  -webkit-appearance: none;
  z-index: 1016;
  position: relative;
}

.product-overview-custom__search-input:focus {
  border-color: #2f6b62;
  box-shadow: none;
  background-color: white;
}

.product-overview-custom__search-content {
  padding: 0 20px 20px;
  overflow-y: auto;
  background: white;
  border-radius: 0 0 12px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-height: 0;
  z-index: 1016;
}

.product-overview-custom__search-content::-webkit-scrollbar {
  display: none;
}

.product-overview-custom__search-suggestions {
  padding: 0;
}

/* ========================================
   搜尋結果樣式 - 桌面版
   ======================================== */
.product-overview-custom__search-section {
  margin-bottom: 5px;
}

.product-overview-custom__search-section-title {
  font-size: 14px;
  color: #999;
  margin: 15px 20px 10px;
  font-weight: 500;
}

.product-overview-custom__search-tips-carousel {
  background: transparent;
  border-radius: 8px;
  margin-bottom: 25px;
  position: relative;
  height: 24px;
  overflow: hidden;
}

.product-overview-custom__search-tip-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

.product-overview-custom__search-tip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

.product-overview-custom__search-tip.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.product-overview-custom__search-tip.leaving {
  opacity: 0;
  transform: translateY(-100%);
  visibility: visible;
}

.product-overview-custom__recent-searches {
  margin-bottom: 20px;
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}

.product-overview-custom__recent-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-overview-custom__recent-search svg {
  width: 24px;
  height: 24px;
  color: #999;
  flex-shrink: 0;
}

.product-overview-custom__search-result {
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.product-overview-custom__search-result-content {
  flex: 1;
    padding-right: 0;
  min-width: 0;
}

.product-overview-custom__search-result:hover {
  background: #f8f8f8;
}

.product-overview-custom__search-result::after {
  content: '→';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.2s;
  color: #2f6b62;
  font-size: 16px;
  display: none !important;

}

.product-overview-custom__search-result:hover::after {
  opacity: 1;
}

.product-overview-custom__search-result-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s;
}

.product-overview-custom__search-result:hover .product-overview-custom__search-result-title {
  color: #2f6b62;
}

.product-overview-custom__search-result-price {
  color: #333;
  margin-bottom: 4px;
}

.product-overview-custom__search-result-description {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-overview-custom__search-result-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-overview-custom__search-result-category {
  color: #2f6b62;
  font-weight: 500;
}

.product-overview-custom__search-highlight {
  background: #fff3cd;
  font-weight: 500;
  padding: 0 2px;
  border-radius: 2px;
}

.product-overview-custom__no-search-results {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 14px;
}

.product-overview-custom__search-loading {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 14px;
}

.product-overview-custom__search-suggestion {
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-overview-custom__search-suggestion:hover {
  background: #f8f8f8;
  color: #2f6b62;
}

.product-overview-custom__search-suggestion::before {
  content: '🔍';
  font-size: 16px;
  opacity: 0.6;
}

/* ========================================
   工具列樣式
   ======================================== */
.product-overview-custom__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.product-overview-custom__toolbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.product-overview-custom__column-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-overview-custom__column-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border: none;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.product-overview-custom__column-btn:hover,
.product-overview-custom__column-btn.active {
  background: var(--primary-color);
  color: white;
}

.product-overview-custom__column-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ========================================
   Tab Panels 和內容區域
   ======================================== */
.product-overview-custom__content {
  position: relative;
}

.product-overview-custom__tab-panel {
  display: none;
  width: 100% !important;
}

.product-overview-custom__tab-panel.active {
  display: block !important;
}

.product-overview-custom__products-container {
  width: 100% !important;
  background: transparent;
  border-radius: var(--border-radius);
}

/* ========================================
   產品網格和項目
   ======================================== */
.product-overview-custom-section .product-overview-custom__product-item {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.product-overview-custom-section .product-overview-custom__products-grid {
  display: grid !important;
  gap: 20px !important;
  margin-bottom: 40px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.product-overview-custom__tab-panel .product-overview-custom__products-grid {
  display: grid !important;
  gap: 20px !important;
  margin-bottom: 40px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.product-overview-custom__tab-panel .product-overview-custom__product-item {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* 桌面版欄數設定 */
@media (min-width: 1024px) {
  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-1,
  .product-overview-custom__tab-panel .product-overview-custom__products-grid.m-cols-1 {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-2,
  .product-overview-custom__tab-panel .product-overview-custom__products-grid.m-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-3,
  .product-overview-custom__tab-panel .product-overview-custom__products-grid.m-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-4,
  .product-overview-custom__tab-panel .product-overview-custom__products-grid.m-cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-5,
  .product-overview-custom__tab-panel .product-overview-custom__products-grid.m-cols-5 {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

/* 平板版 */
@media (min-width: 768px) and (max-width: 1023px) {
  .product-overview-custom-section .container,
  .product-overview-custom-section .container-fluid {
    padding: 0 40px;
  }

  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-1,
  .product-overview-custom__tab-panel .product-overview-custom__products-grid.m-cols-1 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  
  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-2,
  .product-overview-custom__tab-panel .product-overview-custom__products-grid.m-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-3,
  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-4,
  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-5,
  .product-overview-custom__tab-panel .product-overview-custom__products-grid.m-cols-3,
  .product-overview-custom__tab-panel .product-overview-custom__products-grid.m-cols-4,
  .product-overview-custom__tab-panel .product-overview-custom__products-grid.m-cols-5 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ========================================
   分頁樣式
   ======================================== */
.product-overview-custom__basic-pagination {
  text-align: center;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.pagination__prev,
.pagination__next {
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.pagination__prev:hover,
.pagination__next:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.pagination__current {
  font-weight: 500;
  color: var(--text-primary);
}

/* ========================================
   產品卡片樣式
   ======================================== */
.product-overview-custom__card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.product-overview-custom__card-link:hover {
  text-decoration: none;
  color: inherit;
}

.product-overview-custom__card-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.product-overview-custom__product-card {
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.product-overview-custom__product-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

/* 產品圖片區域 */
.product-overview-custom-section .product-overview-custom__product-media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1/1 !important;
  overflow: hidden !important;
  background: #f0f0f0 !important;
}

.product-overview-custom-section .product-overview-custom__product-image-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}

.product-overview-custom-section .product-overview-custom__product-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: var(--transition) !important;
  display: block !important;
}

.product-overview-custom-section .product-overview-custom__product-image--hover {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  opacity: 0 !important;
  transition: var(--transition) !important;
}

.product-overview-custom-section .product-overview-custom__product-card.has-second-image:hover .product-overview-custom__product-image--hover {
  opacity: 1 !important;
}

.product-overview-custom-section .product-overview-custom__card-link:hover .product-overview-custom__product-image:not(.product-overview-custom__product-image--hover) {
  transform: scale(1.05) !important;
}

/* 徽章樣式 */
.product-overview-custom__product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-overview-custom__product-badge {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  line-height: 1.2;
}

.product-overview-custom__product-badge--sale {
  background: #e74c3c;
}

/* 售罄覆蓋 */
.product-overview-custom__product-soldout {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.product-overview-custom__product-soldout span {
  background: white;
  color: #333;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
}

/* 快速操作按鈕 */
.product-overview-custom__product-actions-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}

.product-overview-custom__product-card:hover .product-overview-custom__product-actions-overlay {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.product-overview-custom__wishlist-btn,
.product-overview-custom__quickview-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.product-overview-custom__wishlist-btn:hover,
.product-overview-custom__quickview-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* 內容區域 */
.product-overview-custom__product-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  min-height: 200px;
}

.product-overview-custom__product-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-color);
  color: white;
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
  margin-bottom: 12px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-overview-custom__product-vendor {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

.product-overview-custom__product-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
  text-align: left;
  min-height: auto;
  transition: var(--transition);
}

.product-overview-custom__product-title-text {
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.product-overview-custom__card-link:hover .product-overview-custom__product-title {
  color: var(--primary-color);
}

.product-overview-custom__product-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-overview-custom__product-price {
  margin-top: auto;
  margin-bottom: 0;
  text-align: left;
  padding-top: 0;  /* ← 改为 0 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* 当描述存在且可见时才添加间距 */
.product-overview-custom__product-description + .product-overview-custom__product-price {
  padding-top: 12px;
}

/* 当描述被隐藏时，价格紧贴标题 */
.product-overview-custom__product-description:empty + .product-overview-custom__product-price,
.product-overview-custom__product-description[style*="display: none"] + .product-overview-custom__product-price,
.product-overview-custom__product-description:not(:empty):not([style*="display: block"]) + .product-overview-custom__product-price {
  padding-top: 8px;
}

.product-overview-custom__product-price-sale,
.product-overview-custom__product-price-regular,
.product-overview-custom__product-price-compare {
  display: block;
  width: 100%;
  text-align: left;
}

.product-overview-custom__product-price-sale {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
}

.product-overview-custom__product-price-compare {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-overview-custom__product-price-regular {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
}

/* ========================================
   分頁和載入更多
   ======================================== */
.product-overview-custom__pagination {
  margin-top: 40px;
  text-align: center;
}

.product-overview-custom__load-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.product-overview-custom__load-more:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.product-overview-custom__load-more.loading .product-overview-custom__spinner {
  display: block;
}

.product-overview-custom__spinner {
  display: none;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
   空狀態
   ======================================== */
.product-overview-custom__empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
}

/* ========================================
   動畫效果
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-overview-custom__product-card {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 0s !important;
}

.product-overview-custom__product-card.highlight {
  animation: highlightPulse 0.5s ease-out 3;
}

@keyframes highlightPulse {
  0% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(47, 107, 98, 0.6);
  }
  100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* ========================================
   Quick View Modal 樣式
   ======================================== */
.product-overview-custom__quickview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  box-sizing: border-box;
}

.product-overview-custom__quickview-modal.active {
  display: flex !important;
}

.product-overview-custom__quickview-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 40px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-overview-custom__quickview-modal.active .product-overview-custom__quickview-container {
  opacity: 1;
  transform: scale(1);
}

.product-overview-custom__quickview-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000000;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  color: #666;
  backdrop-filter: blur(10px);
}

.product-overview-custom__quickview-close:hover {
  background: white;
  transform: scale(1.1);
  color: #333;
}

.product-overview-custom__quickview-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.product-overview-custom__quickview-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  margin: 0;
}

/* Quick View 內容樣式重置 */
.product-overview-custom__quickview-content * {
  box-sizing: border-box;
}

/* 防止內容溢出 */
.product-overview-custom__quickview-content img {
  max-width: 100%;
  height: auto;
}

.product-overview-custom__quickview-content .product-media,
.product-overview-custom__quickview-content .product-info,
.product-overview-custom__quickview-content .product-form {
  max-width: 100%;
}

/* 隱藏可能導致滾動條的元素 */
.product-overview-custom__quickview-content::-webkit-scrollbar {
  width: 6px;
}

.product-overview-custom__quickview-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.product-overview-custom__quickview-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.product-overview-custom__quickview-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
/* ========================================
   可訪問性增強
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.product-overview-custom__tab-link:focus,
.product-overview-custom__search-trigger:focus,
.product-overview-custom__search-input:focus,
.product-overview-custom__add-to-cart:focus {
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  .product-overview-custom-section {
    --border-color: #000;
    --text-secondary: #000;
  }
}

/* ========================================
   手機版響應式設計 - 完全分離
   ======================================== */
@media (max-width: 768px) {
  .product-overview-custom-section {
    padding: 0;
  }

  .product-overview-custom-section .container,
  .product-overview-custom-section .container-fluid {
    padding: 0 12px;
  }

  .product-overview-custom__header {
    padding: 40px 0;
    margin-bottom: 30px;
    margin-top: calc(var(--header-height) - 20px);
  }

  .product-overview-custom__title {
    font-size: 2rem;
  }

  .product-overview-custom__subtitle {
    font-size: 16px;
  }

  /* 手機版 Tab Navigation - 保持水平佈局 */
  .product-overview-custom__tabs-wrapper {
  position: relative;
  background: white;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1; /* 確保整個容器 z-index 不要太高 */

  .product-overview-custom__tabs-navigation {
    display: flex;
    gap: 20px;
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    justify-content: flex-start;
  }

  .product-overview-custom__tabs-navigation::-webkit-scrollbar {
    display: none;
  }

  .product-overview-custom__tab-link {
    padding: 8px 4px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--font-body-family, inherit);
    border-bottom: 2px solid transparent;
    min-width: auto;
  }

  .product-overview-custom__tab-link:hover {
    color: var(--primary-color);
  }

  .product-overview-custom__tab-link.active {
    color: var(--primary-color);
    font-weight: 500;
    border-bottom-color: var(--primary-color);
  }

  /* 手機版搜尋按鈕 - 保持原樣式 */
  .product-overview-custom__search-trigger {
    position: relative;
    margin-left: 10px;
    flex-shrink: 0;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    z-index: 1; /* 從 1002 降到 1 */

  .product-overview-custom__search-trigger:hover {
    color: #2f6b62;
  }

  .product-overview-custom__search-trigger svg {
    width: 24px;
    height: 24px;
  }

  /* 手機版搜尋容器 - 居中彈窗 */
  .product-overview-custom__search-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: calc(100% - 2rem) !important;
    max-width: 400px !important;
    max-height: 90vh !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    z-index: 99999 !important; /* 降低 z-index，避免蓋過左側菜單 */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .product-overview-custom__tabs-wrapper.search-active .product-overview-custom__search-container {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* 手機版搜尋 Overlay */
  .product-overview-custom__search-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99998 !important; /* 降低 z-index */
    background: rgba(0, 0, 0, 0.3) !important;
    width: 100vw !important;
    height: 100vh !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
  }

  .product-overview-custom__search-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* 手機版搜尋 Header - 保持原樣式 */
  .product-overview-custom__search-header {
    padding: 60px 20px 4px 20px !important;
    background: white !important;
    position: relative !important;
    border-radius: 12px 12px 0 0 !important;
    z-index: 1016 !important;
  }

  /* 手機版關閉按鈕 - 保持原樣式 */
  .product-overview-custom__search-close-bar {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1017 !important;
  }

  .product-overview-custom__search-close {
    background: none !important;
    border: none !important;
    color: #666 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s !important;
    width: 32px !important;
    height: 32px !important;
    z-index: 1018 !important;
  }

  .product-overview-custom__search-close:hover {
    background: #f0f0f0 !important;
    color: #2f6b62 !important;
  }

  /* 手機版搜尋輸入框 - 保持原樣式 */
  .product-overview-custom__search-input-wrapper {
    position: relative !important;
    width: 100% !important;
    padding-right: 0 !important;
    z-index: 1016 !important;
  }

  .product-overview-custom__search-input {
    width: 100% !important;
    padding: 15px 20px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    outline: none !important;
    transition: all 0.3s !important;
    font-family: var(--font-body-family) !important;
    background-color: white !important;
    -webkit-appearance: none !important;
    z-index: 1016 !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .product-overview-custom__search-input:focus {
    border-color: #2f6b62 !important;
    box-shadow: none !important;
    background-color: white !important;
    transform: none !important;
  }

  /* 手機版搜尋內容區域 - 保持原樣式 */
  .product-overview-custom__search-content {
    padding: 0 20px 20px !important;
    overflow-y: auto !important;
    background: white !important;
    border-radius: 0 0 12px 12px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    flex: 1 !important;
    min-height: 0 !important;
    z-index: 1016 !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: calc(90vh - 140px) !important;
  }

  .product-overview-custom__search-content::-webkit-scrollbar {
    display: none;
  }

  /* 手機版搜尋結果 - 移除箭頭效果 */
  .product-overview-custom__search-result-content {
    flex: 1;
    padding-right: 0 !important; /* 手機版移除右邊距，給文字更多空間 */
    min-width: 0;
  }

  .product-overview-custom__search-result::after {
    display: none !important; /* 手機版完全移除箭頭 */
  }

  .product-overview-custom__search-result:hover::after {
    display: none !important;
  }

  /* 防止 body 滾動 */
  body.search-active {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* 手機版工具列 */
  .product-overview-custom__toolbar {
    justify-content: center;
    padding: 10px 0;
  }

  .product-overview-custom__toolbar-right {
    justify-content: center;
  }

  /* 手機版產品網格 */
  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-1,
  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-2,
  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-3,
  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-4,
  .product-overview-custom-section .product-overview-custom__products-grid.m-cols-5,
  .product-overview-custom__tab-panel .product-overview-custom__products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .product-overview-custom__product-content {
    padding: 12px;
  }

  .product-overview-custom__product-title {
    font-size: 16px;
  }

  .product-overview-custom__product-price-regular,
  .product-overview-custom__product-price-sale {
    font-size: 18px;
  }

  /* 手機版 Quick View Modal */
  .product-overview-custom__quickview-container {
    width: 95%;
    max-height: 95vh;
  }
  
  .product-overview-custom__quickview-content {
    padding: 20px;
  }
  
  .product-overview-custom__quickview-close {
    top: 10px;
    right: 10px;
  }
}

/* ========================================
   手機版列表樣式 - 左圖右文
   ======================================== */
@media (max-width: 768px) {
  /* 當設定為列表模式時的樣式 */
  .product-overview-custom-section.mobile-list-layout .product-overview-custom__products-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    border-bottom: 1px solid #f0f0f0;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__card-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 20px 16px;
    gap: 16px;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-media {
    width: 140px !important;
    min-width: 140px !important;
    height: 140px !important;
    aspect-ratio: 1/1 !important;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-content {
    flex: 1;
    padding: 0 !important;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    min-height: auto;
    line-height: 1.3;
    color: #2f6b62;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-title-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-category {
    font-size: 12px;
    padding: 4px 12px;
    margin-bottom: 8px;
    background: #2f6b62;
    color: white;
    display: inline-block;
    border-radius: 20px;
    font-weight: 500;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-price {
    margin-top: auto;
    padding-top: 0;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-price-regular,
  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-price-sale {
    font-size: 22px;
    font-weight: 700;
    color: #2f6b62;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-price-compare {
    font-size: 16px;
    color: #999;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-badges,
  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-actions-overlay,
  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-variants,
  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-inventory,
  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-vendor {
    display: none !important;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
  }

  .product-overview-custom-section.mobile-list-layout.hide-mobile-description .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-description {
    display: none !important;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-soldout {
    border-radius: 4px;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-soldout span {
    font-size: 14px;
    padding: 6px 12px;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card:hover {
    transform: none;
    box-shadow: none;
    background: rgba(47, 107, 98, 0.02);
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__card-link:hover .product-overview-custom__product-image:not(.product-overview-custom__product-image--hover) {
    transform: none !important;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-item:last-child .product-overview-custom__product-card.mobile-list-card {
    border-bottom: none;
  }
  
  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card.no-image .product-overview-custom__card-link {
    padding: 20px;
    min-height: auto;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__products-container {
    padding: 0;
    background: transparent;
  }

  .product-overview-custom-section.mobile-list-layout {
    background: #fafafa;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-image {
    border-radius: 4px;
    object-fit: cover;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-content {
    position: relative;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
  }

  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-item:first-child .product-overview-custom__product-card.mobile-list-card {
    border-top: 1px solid #f0f0f0;
  }
}

/* 平板裝置保持網格佈局 */
@media (min-width: 769px) {
  .product-overview-custom__product-card.mobile-list-card .product-overview-custom__card-link {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-media {
    width: 100% !important;
    height: auto !important;
    min-width: auto !important;
  }
  
  .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-content {
    padding: 20px !important;
  }
}

/* ========================================
   平板版樣式 (768px-1023px)
   ======================================== */
@media (min-width: 769px) and (max-width: 1023px) {
  .product-overview-custom__products-grid {
    gap: 20px;
  }
  
  .product-overview-custom__product-content {
    padding: 18px;
  }
  
  .product-overview-custom__product-title {
    font-size: 17px;
  }
}
/* ========================================
   修复：当没有描述时价格自动上移
   ======================================== */

/* 重置价格的默认 padding-top */
.product-overview-custom__product-price {
  padding-top: 0 !important;
}

/* 当描述存在时，添加间距 */
.product-overview-custom__product-description {
  margin-bottom: 12px;
}

/* 当标题后直接跟着价格（没有描述）时，添加适当间距 */
.product-overview-custom__product-title + .product-overview-custom__product-price {
  margin-top: 12px;
}

/* 当有描述时，价格的上边距由描述的 margin-bottom 提供 */
.product-overview-custom__product-description + .product-overview-custom__product-price {
  margin-top: 0;
}

/* 手机版列表布局的调整 */
@media (max-width: 768px) {
  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-title + .product-overview-custom__product-price {
    margin-top: 8px;
  }
  
  .product-overview-custom-section.mobile-list-layout .product-overview-custom__product-card.mobile-list-card .product-overview-custom__product-description {
    margin-bottom: 8px;
  }
}