
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
  --bg-color: #050505;
  --bg-ambient: #0f0f13;
  --surface-glass: rgba(30, 30, 30, 0.4);
  --surface-glass-heavy: rgba(20, 20, 20, 0.85);
  --border-glass: rgba(255, 255, 255, 0.1);
  
  --primary: #FFD700; /* Gold */
  --primary-glow: rgba(255, 215, 0, 0.3);
  --accent: #00e5ff; /* Cyan */
  
  --text-main: #ffffff;
  --text-dim: #a0a0a0;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

body {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Ambient Background */
.bg-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(30, 30, 40, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(40, 30, 30, 0.3) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 9rem 0 4rem; /* Adjusted for fixed header height */
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Glass Utility */
.glass-panel {
    background: var(--surface-glass-heavy);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.8rem 0;
}

.header-glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.85); /* Slightly darker for better contrast */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: -1;
}

.header-inner {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Header Logo */
.header-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.header-logo-img {
    height: 48px; 
    width: auto;
    object-fit: contain;
}

.header-brand-text {
    display: block;
}

/* Nav Container - Central Scrollable Area */
.header-nav-container {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: hidden; /* Clips the mask */
    margin: 0 1rem;
    position: relative;
    /* Fade mask at edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.header-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  
  /* Horizontal Scrolling Logic */
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  
  align-items: center;
  /* Ensure smooth scrolling */
  scroll-behavior: smooth;
}

.header-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.header-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  transition: all 0.3s;
  flex-shrink: 0; /* Prevent shrinking */
  border: 1px solid transparent;
}

.header-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.header-nav a.active {
  color: #000;
  background: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.action-button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}

.action-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass);
}

.lang-code {
    font-size: 0.7rem;
    position: absolute;
    bottom: -2px;
    font-weight: bold;
    color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--primary);
  color: #000;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
}

/* Hero */
.hero {
    min-height: 60vh;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at center, #2a2a35, #1a1a20);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: 0 0 100px rgba(0,0,0,0.5);
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, var(--primary-glow) 360deg);
    animation: rotate 15s linear infinite;
    opacity: 0.08;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to bottom right, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.hero-cta {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    opacity: 0;
    animation: fadeIn 0.6s forwards;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(255,215,0, 0.3);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(0,0,0,0));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon {
    font-size: 2rem;
    color: var(--primary);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    padding: 2.5rem;
    border-radius: var(--radius-md);
}

.email-actions-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.contact-email {
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.copy-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-glass);
    color: var(--text-dim);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.copy-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #00e676;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    animation: fadeIn 0.2s;
}

.contact-subtext { color: var(--text-dim); margin-bottom: 2rem; }

.contact-divider { height: 1px; background: var(--border-glass); margin: 2rem 0; }

.contact-address-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.contact-form {
    padding: 2.5rem;
    border-radius: var(--radius-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--text-main);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-btn:hover { opacity: 0.9; }

/* Store Header */
.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-bar-inline {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-bar-inline input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border-radius: 50px;
    color: #fff;
}

.search-bar-inline .material-symbols-outlined {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

/* Store Construction Banner */
.store-notice-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0,0,0,0.2));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.store-notice-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.store-notice-text h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.store-notice-text p {
    color: #ddd;
    font-size: 0.95rem;
    max-width: 500px;
}

.carousell-btn {
    background: #FF0000; /* Carousell Brand Red-ish, or just use theme primary */
    background: #d2232a; /* Carousell red */
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.carousell-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 35, 42, 0.4);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .card-overlay {
    opacity: 1;
}

.quick-add-btn {
    background: var(--primary);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.quick-add-btn:hover {
    transform: scale(1.1);
}

.product-info {
  padding: 1.2rem;
}

.product-artist {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.3rem 0 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-weight: 700;
  color: var(--text-main);
}

.product-format {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.format-lp { background: rgba(255, 215, 0, 0.15); color: var(--primary); }
.format-cd { background: rgba(0, 229, 255, 0.15); color: var(--accent); }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    position: relative;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    z-index: 10;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.modal-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.modal-title { font-size: 2.5rem; line-height: 1.1; margin-bottom: 0.5rem; }
.modal-artist { color: var(--primary); font-size: 1.2rem; margin-bottom: 1.5rem; }
.modal-price { font-size: 2rem; font-weight: 700; margin: 1.5rem 0; }

.modal-tags { display: flex; gap: 0.5rem; }
.tag-bestseller {
    background: linear-gradient(45deg, #ff4b1f, #ff9068);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tag-format { background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; }

.modal-section { margin-top: 2rem; }
.modal-section h4 { color: var(--text-dim); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border-glass); padding-bottom: 0.5rem; }

.tracklist { list-style: none; }
.tracklist li { padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; gap: 1rem; }
.track-num { color: var(--text-dim); width: 20px; }

.modal-add-btn {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: filter 0.3s;
}
.modal-add-btn:hover { filter: brightness(1.1); }

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2500; /* Higher than modal */
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.cart-drawer {
    width: 100%;
    max-width: 450px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
    border-left: 1px solid var(--border-glass);
    background: #111; /* Fallback */
    background: var(--surface-glass-heavy);
}

@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.cart-header { padding: 1.5rem; border-bottom: 1px solid var(--border-glass); display: flex; justify-content: space-between; align-items: center; }
.close-cart-btn { background: none; border: none; color: var(--text-main); cursor: pointer; padding: 5px; }
.close-cart-btn:hover { color: var(--primary); }
.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; }

.cart-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: center; }
.cart-item-image { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; font-size: 0.95rem; }
.cart-item-artist { font-size: 0.8rem; color: var(--text-dim); }
.cart-item-meta { display: flex; gap: 0.5rem; font-size: 0.85rem; margin-top: 4px; }
.cart-item-price { color: var(--primary); }

.remove-item-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; transition: color 0.2s; }
.remove-item-btn:hover { color: #ff4b4b; }

.cart-footer { padding: 2rem; border-top: 1px solid var(--border-glass); background: rgba(0,0,0,0.2); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-bottom: 1.5rem; }
.checkout-btn { 
    width: 100%; 
    background: var(--text-main); 
    color: #000; 
    padding: 1rem; 
    border: none; 
    border-radius: var(--radius-md); 
    font-weight: bold; 
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.checkout-btn:hover { background-color: #ddd; }

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    background-color: #25D366; /* WhatsApp Green */
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.whatsapp-widget:hover {
    transform: scale(1.05);
    background-color: #128C7E;
}

/* Toast */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: #00e676;
    color: #000;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    animation: slideInRight 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes slideInRight { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0;
    margin-top: auto;
    background: rgba(0,0,0,0.4);
    text-align: center;
}
.footer-brand { 
    font-size: 1.5rem; 
    color: var(--text-main); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 1rem; 
    margin-bottom: 1.5rem; 
}
.footer-logo-img { height: 50px; width: auto; }
.footer-address { color: var(--text-dim); margin-bottom: 0.5rem; }
.footer-contact a { color: var(--primary); text-decoration: none; font-size: 1.1rem; }
.copyright { margin-top: 2rem; font-size: 0.8rem; color: #555; }

/* Mobile */
@media (max-width: 768px) {
    .modal-grid { grid-template-columns: 1fr; }
    .header-brand-text { display: none; }
    .contact-layout { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    
    .header-nav {
         /* On mobile, ensure it feels like a native scroll strip */
         padding: 0.4rem 0;
    }
    .header-nav-container {
        /* Ensure max width on mobile so it doesn't push logo/actions off screen */
        max-width: 60vw;
    }
    
    .store-notice-banner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .store-notice-content {
        flex-direction: column;
        text-align: center;
    }
}