/* ==========================================
   RetroSpin 唱片行 - 70年代經典復古風格
   所有程式碼皆使用繁體中文註解，適合初學者學習。
   ========================================== */
:root {
    /* 核心復古配色系統 */
    --bg-dark: #fbf9f4;       /* 溫暖象牙米色 (主背景) */
    --bg-card: #ffffff;       /* 奶油白 (卡片與區塊背景) */
    --bg-glass: rgba(251, 249, 244, 0.9); /* 半透明米色 */
    
    /* 復古強調色 (70s 經典色盤) */
    --retro-brown: #3d251e;   /* 深巧克力棕 (主要文字與邊框色) */
    --retro-orange: #c15c3d;  /* 鐵鏽暗橘 (主強調色) */
    --retro-yellow: #e9b44c;  /* 芥末黃 (副強調色) */
    --retro-green: #2a4736;   /* 墨綠色 (輔助色) */
    --retro-red: #9e2a2b;     /* 復古暗紅 (警示與特價色) */
    --retro-cream: #f4f0e6;   /* 燕麥色 (次級背景與懸停色) */
    
    /* 為了完全相容 script.js 的動態樣式 (例如 Toast 與商品細節) */
    --neon-purple: #3d251e;   /* 映射為巧克力棕 */
    --neon-pink: #9e2a2b;     /* 映射為復古暗紅 */
    --neon-cyan: #c15c3d;     /* 映射為鐵鏽橘 */
    --neon-yellow: #e9b44c;   /* 映射為芥末黃 */
    
    /* 文字顏色 */
    --text-white: #ffffff;    /* 純白文字，用於深色背景上 */
    --text-light: #3d251e;    /* 全域文字，改為深巧克力棕 */
    --text-dark: #1f120e;    /* 更深的咖啡色 */
    --text-muted: #7a665e;    /* 輔助文字，改為暖褐色 */
    
    /* 復古硬陰影 (Flat Hard Shadows) 與漸層 */
    --gradient-primary: linear-gradient(135deg, var(--retro-orange), var(--retro-yellow));
    --gradient-neon: linear-gradient(90deg, var(--retro-orange), var(--retro-yellow), var(--retro-red));
    --shadow-flat: 4px 4px 0px var(--retro-brown);
    --shadow-flat-lg: 8px 8px 0px var(--retro-brown);
    --shadow-flat-sm: 2px 2px 0px var(--retro-brown);
    --shadow-flat-hover: 2px 2px 0px var(--retro-brown); /* 按下時的陰影 */
    --shadow-soft: 0 8px 24px rgba(61, 37, 30, 0.08);
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 滾動條樣式：改為深巧克力棕配色 */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--retro-cream);
}
::-webkit-scrollbar-thumb {
    background: #cbbba9;
    border: 2px solid var(--retro-cream);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--retro-brown);
}

/* ==========================================
   背景復古質感 (點狀網格圖樣與溫暖光暈)
   ========================================== */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--bg-dark);
    /* 利用 CSS 漸層繪製復古的微點網格 (Polka Dot Grid) 背景 */
    background-image: 
        radial-gradient(rgba(61, 37, 30, 0.05) 15%, transparent 15%),
        radial-gradient(rgba(61, 37, 30, 0.05) 15%, transparent 15%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.85;
}

/* 復古裝飾圈效果，取代原本科技發光 */
.glow-bg::before,
.glow-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.15;
}
.glow-bg::before {
    background: var(--retro-orange);
    top: -200px;
    left: -100px;
}
.glow-bg::after {
    background: var(--retro-yellow);
    bottom: -200px;
    right: -100px;
}

/* ==========================================
   重複使用的元件 - 復古硬陰影按鈕
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px; /* 捨棄全圓角，改用溫潤的微圓角 */
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--retro-brown); /* 粗邊框 */
    text-decoration: none;
    font-family: inherit;
}

/* 主要按鈕：橘底黑字黑邊，硬陰影，懸停時產生按壓微平移 */
.btn-primary {
    background: var(--retro-orange);
    color: var(--text-white);
    box-shadow: var(--shadow-flat);
}
.btn-primary:hover {
    transform: translate(2px, 2px); /* 向下平移 */
    box-shadow: var(--shadow-flat-hover); /* 陰影縮小 */
    background-color: #d16b4c; /* 微調亮 */
}

/* 次要/外框按鈕：米黃底黑邊，懸停時有硬陰影 */
.btn-outline {
    background: var(--bg-card);
    color: var(--retro-brown);
    box-shadow: var(--shadow-flat);
}
.btn-outline:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-flat-hover);
    background: var(--retro-cream);
    color: var(--retro-brown);
    border-color: var(--retro-brown);
}

.btn-block {
    width: 100%;
    padding: 12px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-width: 2px; /* 保持一致的邊框寬度 */
    border-radius: 6px;
    box-shadow: var(--shadow-flat-sm);
}
.btn-sm:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--retro-brown);
}

/* ==========================================
   導覽列 (Navbar)
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--retro-brown); /* 巧克力粗底線 */
    z-index: 100;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo 樣式：改為優雅的 Playfair Display 襯線體 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--retro-brown);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

.logo .disc-icon {
    color: var(--retro-orange);
    font-size: 1.8rem;
    animation: rotateVinyl 6s linear infinite;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--retro-orange);
}

/* 復古底線指標 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--retro-orange);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 會員歡迎詞 */
.user-welcome {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--retro-brown);
    font-weight: 700;
}

.user-welcome span {
    color: var(--retro-orange);
}

/* 購物車觸發按鈕：帶有硬陰影與邊框 */
.cart-trigger {
    background: var(--bg-card);
    border: 2px solid var(--retro-brown);
    color: var(--retro-brown);
    width: 44px;
    height: 44px;
    border-radius: 8px; /* 方圓造型 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-flat-sm);
    transition: var(--transition);
}

.cart-trigger:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--retro-brown);
    background: var(--retro-cream);
    color: var(--retro-orange);
}

/* 角標 */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--retro-red);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    border: 2px solid var(--retro-brown); /* 邊框區隔 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ==========================================
   主視覺區 (Hero Section)
   ========================================== */
.hero-section {
    max-width: 1200px;
    margin: 120px auto 60px auto;
    padding: 0 20px;
    min-height: 70vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tagline {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--retro-orange);
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--retro-cream);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px dashed var(--retro-brown);
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.8rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--retro-brown);
}

/* 霓虹字體改成復古手寫斜體與強調色 */
.neon-text {
    font-style: italic;
    color: var(--retro-orange);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    text-shadow: none;
    position: relative;
    z-index: 1;
}

.neon-text::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--retro-yellow);
    z-index: -1;
    opacity: 0.5;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 540px;
}

/* ------------------------------------------
   古董木質唱片機樣式 (Vintage Turntable)
   ------------------------------------------ */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 唱片機外盒 */
.player-container {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #a76d43, #81502b); /* 木紋漸層 */
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-flat-lg);
    border: 3px solid var(--retro-brown); /* 巧克力棕外邊框 */
    position: relative;
}

/* 唱盤面板 */
.player-body {
    width: 100%;
    height: 100%;
    background: #efe9d9; /* 復古淡卡其面板 */
    border-radius: 8px;
    position: relative;
    border: 2px solid var(--retro-brown);
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.1);
}

/* 轉盤基座 */
.player-turntable {
    width: 82%;
    height: 82%;
    background: #d6cbba; /* 金屬轉盤色 */
    border-radius: 50%;
    position: absolute;
    top: 9%;
    left: 6%;
    border: 2px solid var(--retro-brown);
    box-shadow: inset 0 0 12px rgba(61, 37, 30, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 黑膠唱片 */
.player-vinyl {
    width: 92%;
    height: 92%;
    background: radial-gradient(circle, #2a2a2a 20%, #151515 50%, #0c0c0c 100%);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    animation: rotateVinyl 10s linear infinite;
    border: 1px solid #000;
}

.vinyl-grooves {
    position: absolute;
    top: 6%;
    left: 6%;
    right: 6%;
    bottom: 6%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
}

.vinyl-grooves::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    right: 15%;
    bottom: 15%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
}

/* 黑膠中心圓標：改為芥末黃與暖橘配色 */
.vinyl-label-center {
    width: 28%;
    height: 28%;
    background: linear-gradient(135deg, var(--retro-yellow), var(--retro-orange));
    border-radius: 50%;
    position: absolute;
    top: 36%;
    left: 36%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--retro-brown);
}

.vinyl-label-center::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--retro-brown);
    border-radius: 50%;
}

/* 復古唱針/唱臂 */
.player-arm {
    width: 12px;
    height: 130px;
    background: #d3c4b1; /* 古銅色唱臂 */
    position: absolute;
    top: 15px;
    right: 32px;
    border-radius: 6px;
    transform-origin: top center;
    transform: rotate(26deg);
    box-shadow: -2px 3px 6px rgba(0,0,0,0.25);
    z-index: 5;
    border: 2px solid var(--retro-brown);
    transition: transform 0.6s ease-in-out;
}

/* 唱頭 */
.player-arm::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -6px;
    width: 20px;
    height: 28px;
    background: var(--retro-orange);
    border-radius: 3px;
    border: 2px solid var(--retro-brown);
}

@keyframes rotateVinyl {
    100% { transform: rotate(360deg); }
}

/* ==========================================
   商品展示區 (Shop Section)
   ========================================== */
.shop-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--retro-brown);
    margin-bottom: 12px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--retro-brown);
    margin: 0 auto 15px auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
}

/* 商品網格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 35px;
}

/* 商品卡片主體 */
.product-card {
    background: var(--bg-card);
    border: 2px solid var(--retro-brown); /* 巧克力棕粗框 */
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow-flat); /* 硬陰影 */
}

.product-card:hover {
    transform: translate(-3px, -3px); /* 懸浮效果 */
    box-shadow: 7px 7px 0px var(--retro-brown); /* 陰影拉長 */
}

/* 黑膠滑出互動區 */
.album-interactive-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* 專輯封套 */
.album-cover {
    width: 85%;
    height: 85%;
    border-radius: 6px;
    background: var(--retro-cream);
    z-index: 2;
    position: relative;
    box-shadow: 4px 6px 12px rgba(61, 37, 30, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    overflow: hidden;
    border: 2px solid var(--retro-brown);
}

.cover-design {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.95;
    transition: var(--transition);
}

.product-card:hover .cover-design {
    transform: scale(1.08);
}

/* 專輯標籤 */
.album-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--retro-yellow);
    color: var(--retro-brown);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--retro-brown);
}

.album-cover-text {
    color: var(--text-white);
    z-index: 2;
    background: rgba(61, 37, 30, 0.85); /* 半透明棕底，確保文字易讀 */
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

.album-cover-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-cover-artist {
    font-size: 0.78rem;
    color: var(--retro-cream);
    opacity: 0.9;
}

/* 隱藏黑膠唱片 */
.vinyl-disc {
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, #333 25%, #111 50%, #0a0a0a 100%);
    border-radius: 50%;
    position: absolute;
    right: 15%; /* 預設收在後面 */
    z-index: 1;
    box-shadow: inset 0 0 8px rgba(255,255,255,0.05), 3px 5px 10px rgba(0,0,0,0.3);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
}

.vinyl-disc::before {
    content: '';
    position: absolute;
    width: 88%;
    height: 88%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.vinyl-center-label {
    width: 32%;
    height: 32%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1.5px solid var(--retro-brown);
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.vinyl-center-hole {
    width: 6px;
    height: 6px;
    background: var(--bg-dark);
    border-radius: 50%;
}

/* 懸停滑出與旋轉 */
.product-card:hover .vinyl-disc {
    right: 0%;
    transform: rotate(360deg);
    animation: rotateVinyl 4s linear infinite;
    animation-delay: 0.4s;
}

/* 商品資訊區 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--retro-brown);
}

.product-artist {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--retro-orange);
    font-family: 'Outfit', sans-serif;
}

/* ==========================================
   會員登入與註冊彈窗 (Modal)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 37, 30, 0.6); /* 暖棕色遮罩 */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 復古大卡片造型 */
.modal-card {
    background: var(--bg-card);
    border: 3px solid var(--retro-brown);
    box-shadow: var(--shadow-flat-lg);
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    padding: 35px 30px;
    position: relative;
    transform: scale(0.92);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--retro-brown);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--retro-red);
    transform: rotate(90deg);
}

/* 彈窗分頁 Tab */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--retro-brown);
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 10px 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: var(--retro-brown);
}

.tab-btn.active {
    color: var(--retro-orange);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--retro-orange);
    border-radius: 2px;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.auth-form.active {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--retro-brown);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 復古風格輸入框 */
.form-group input {
    background: var(--bg-dark);
    border: 2px solid var(--retro-brown);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--retro-brown);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 600;
}

.form-group input::placeholder {
    color: #a08c84;
}

.form-group input:focus {
    outline: none;
    border-color: var(--retro-orange);
    box-shadow: var(--shadow-flat-sm);
    background: #fffdf5; /* 輕微暖黃聚焦底色 */
}

/* ==========================================
   購物車側邊欄 (Cart Drawer)
   ========================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-card);
    border-left: 3px solid var(--retro-brown); /* 巧克力粗側邊 */
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 37, 30, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-header {
    padding: 25px 20px;
    border-bottom: 2px dashed var(--retro-brown); /* 復古點線 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--retro-cream);
}

.cart-header h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--retro-brown);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-close {
    background: transparent;
    border: none;
    color: var(--retro-brown);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close:hover {
    color: var(--retro-red);
    transform: scale(1.1);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background-color: var(--bg-dark);
}

/* 購物車為空提示 */
.cart-empty {
    text-align: center;
    margin-top: 80px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cart-empty .empty-icon {
    font-size: 3.2rem;
    color: #dcd3c7;
    animation: rotateVinyl 12s linear infinite;
}

/* 購物車商品項目卡 */
.cart-item {
    background: var(--bg-card);
    border: 2px solid var(--retro-brown);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-flat-sm);
}

.cart-item:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--retro-brown);
}

.cart-item-img {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--retro-brown);
}

.cart-item-detail {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--retro-brown);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--retro-orange);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* 復古數量選擇器 */
.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--retro-brown);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-card);
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--retro-brown);
    width: 26px;
    height: 24px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 800;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--retro-cream);
    color: var(--retro-orange);
}

.qty-val {
    font-size: 0.85rem;
    font-weight: 700;
    width: 26px;
    text-align: center;
    border-left: 2px solid var(--retro-brown);
    border-right: 2px solid var(--retro-brown);
    height: 24px;
    line-height: 20px;
    background: var(--bg-dark);
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-item:hover {
    color: var(--retro-red);
}

.cart-footer {
    padding: 25px 20px;
    border-top: 2px solid var(--retro-brown);
    background: var(--retro-cream);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--retro-brown);
}

.cart-total-price {
    color: var(--retro-red);
    font-size: 1.35rem;
    font-weight: 900;
}

/* ==========================================
   頁尾 (Footer)
   ========================================== */
.footer {
    border-top: 2px solid var(--retro-brown);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 60px;
    background: var(--retro-cream);
}

/* ==========================================
   響應式排版調整 (Media Queries)
   ========================================== */
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 100px;
        min-height: auto;
        gap: 40px;
        padding: 0 24px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-desc {
        max-width: 100%;
    }
    
    .player-container {
        max-width: 320px;
    }
}

@media (max-width: 600px) {
    .navbar {
        height: 70px;
    }
    .nav-menu {
        display: none; /* 手機端隱藏主選單，聚焦 Logo 與右側登入/購物車 */
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-desc {
        font-size: 0.98rem;
    }
    .modal-card {
        padding: 30px 20px;
        width: 92%;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 24px;
    }
}
