/*
Theme Name: Viag Shop AI Clone
Description: 基於 React AI 網站還原的 WooCommerce 佈景主題
Author: AI Assistant
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700;900&display=swap');

:root {
  --background: 210 60% 98%;
  --foreground: 215 30% 15%;
  --card: 0 0% 100%;
  --primary: 212 92% 45%;
  --primary-foreground: 0 0% 100%;
  --secondary: 212 100% 93%;
  --muted: 210 40% 95%;
  --muted-foreground: 215 20% 40%;
  --accent: 39 100% 55%;
  --destructive: 357 90% 55%;
  --price: 357 95% 50%;
  --border: 212 40% 88%;
  --radius: 0.5rem;
  --nav-height: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans TC', -apple-system, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* 核心按鈕樣式 */
.main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 1.5em;
  background: linear-gradient(to bottom, #3e96f7, #0500cf 200%);
  border-radius: 100px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}
.main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(62,150,247,0.35);
}

.text-price { color: hsl(var(--price)); font-weight: 700; }

/* 全局容器 */
.container { max-width: 1400px; margin: 0 auto; padding: 0 1rem; }
/* 頁首樣式還原 */
.viag-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: hsl(var(--primary));
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.top-bar {
    background-color: #3378ef;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    padding: 4px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.main-nav {
    height: 60px;
    background-color: #fff;
    border-bottom: 2px solid #f1f5f9;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: hsl(var(--primary));
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
}
.logo img { height: 30px; width: auto; }

.desktop-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}
.desktop-menu ul li a {
    color: #1e293b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
}
.desktop-menu ul li a:hover { color: hsl(var(--primary)); }
.desktop-menu ul li a::after {
    content: ''; position: absolute; left: 0; bottom: -5px;
    width: 0; height: 2px; background-color: hsl(var(--primary));
    transition: width 0.3s ease;
}
.desktop-menu ul li a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: #1e293b; font-size: 11px; font-weight: 600; gap: 4px;
    transition: color 0.3s;
}
.nav-icon-btn:hover { color: hsl(var(--primary)); }
.nav-icon-btn svg { width: 20px; height: 20px; }

.cart-btn { position: relative; }
.cart-count {
    position: absolute; top: -5px; right: 0;
    background-color: hsl(var(--price));
    color: #fff; font-size: 10px; font-weight: bold;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.buy-btn {
    background: hsl(var(--accent));
    color: #000; padding: 8px 20px; border-radius: 8px;
    font-weight: 700; text-decoration: none; font-size: 14px;
    transition: opacity 0.3s;
}
.buy-btn:hover { opacity: 0.8; }

/* 搜尋彈窗 */
.search-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
}
.search-modal-content {
    background: #fff; padding: 40px; border-radius: 15px;
    width: 90%; max-width: 600px; position: relative;
}
.close-search {
    position: absolute; top: 10px; right: 15px;
    font-size: 30px; background: none; border: none; cursor: pointer; color: #888;
}
.search-modal-content form { display: flex; gap: 10px; margin-top: 20px; }
.search-modal-content input {
    flex: 1; padding: 12px; border: 2px solid hsl(var(--border));
    border-radius: 8px; font-size: 16px;
}
.search-modal-content button {
    padding: 12px 30px; background: hsl(var(--primary));
    color: #fff; border: none; border-radius: 8px; font-weight: bold; cursor: pointer;
}

/* 隱藏手機版選單，當視窗小於 1024px 時 */
@media (max-width: 1024px) {
    .desktop-menu { display: none; }
}