:root {
    /* Color System - Elegant Luxury */
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --accent-gold: #C9A962;
    --accent-gold-transparent: rgba(201, 169, 98, 0.4);
    --text-primary: #FFFFFF;
    --text-secondary: #848484;
    --text-tertiary: #6A6A6A;
    --border-gray: #2A2A2A;
    --surface-gray: #1A1A1A;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', 'Noto Sans TC', serif;
    --font-body: 'Inter', 'Noto Sans TC', sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 56px;
}

/* 導航欄 */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-gray);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

/* 漢堡選單按鈕 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
    transform-origin: left;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg); }

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}

.nav-menu a:hover, .nav-menu a.active-link {
    color: var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
}

/* Hero */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 56px;
    margin-bottom: 24px;
}

/* 菜單分類 */
.menu-categories {
    padding: 100px 0;
}

.menu-header {
    text-align: center;
    margin-bottom: 60px;
}

.menu-header p {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 12px;
    margin-bottom: 12px;
}

.menu-header h2 {
    font-family: var(--font-heading);
    font-size: 42px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.menu-item {
    border: 1px solid var(--border-gray);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.menu-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(201, 169, 98, 0.05));
    opacity: 0;
    transition: 0.5s;
}

.menu-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-10px);
    background: #1a1a1a;
}

.menu-item:hover::after {
    opacity: 1;
}

.menu-icon {
    font-size: 40px;
    margin-bottom: 24px;
    display: block;
    filter: grayscale(1);
    transition: 0.5s;
}

.menu-item:hover .menu-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.menu-item h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.menu-item p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.item-count {
    font-size: 11px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.6;
    transition: 0.3s;
}

.menu-item:hover .item-count {
    opacity: 1;
    letter-spacing: 3px;
}

/* 篩選器 */
.container-flex {
    display: flex;
    gap: 80px;
}

/* 側邊欄 */
.sidebar {
    width: 200px;
    flex-shrink: 0;
}

.sidebar-group {
    margin-bottom: 48px;
}

.sidebar-group h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    font-weight: 700;
}

.sidebar-list {
    list-style: none;
}

.sidebar-link {
    display: block;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 0;
    cursor: pointer;
    transition: 0.3s;
    text-align: left;
    width: 100%;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--accent-gold);
    padding-left: 8px;
}

/* 頂部過濾列 */
.top-filter-bar {
    display: flex;
    gap: 32px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-gray);
}

/* 主內容區 */
.main-content {
    flex: 1;
}

.collection-header {
    margin-bottom: 24px; /* Reduced from 48px */
}

.search-wrap {
    position: relative;
    max-width: 400px;
}

.search-wrap i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.search-wrap input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-primary);
    padding: 12px 0 12px 30px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.search-wrap input:focus {
    border-bottom-color: var(--accent-gold);
}

.top-filter-bar { display: none; } /* Remove horizontal bar */

.sidebar-select {
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    border-bottom: 1px solid var(--border-gray);
    padding: 10px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A962' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.sidebar-select option {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.sidebar-select:focus {
    border-bottom-color: var(--accent-gold);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.filter-group select, .filter-group input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-primary);
    padding: 8px 0;
    font-size: 15px;
    min-width: 160px;
    outline: none;
    border-radius: 0;
    transition: 0.3s;
}

.filter-group select {
    background: #111;
    color: #fff;
    border: none;
    border-bottom: 1px solid var(--border-gray);
    padding: 8px 30px 8px 10px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A962' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
}

.filter-group select option {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* 針對 Windows/Chrome 的特殊處理 */
select option {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.filter-group select:focus {
    border-bottom-color: var(--accent-gold);
}

.filter-group input:focus {
    border-bottom-color: var(--accent-gold);
}

.search-group {
    position: relative;
}

.search-group i {
    position: absolute;
    right: 0;
    bottom: 12px;
    color: var(--text-tertiary);
}

/* 商品卡片 */
.category-nav {
    margin-top: 0;
}

.category-tabs {
    display: flex;
    gap: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-gray);
    width: fit-content;
}

.category-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    padding-bottom: 12px;
    position: relative;
    transition: 0.3s;
}

.category-tab.active {
    color: var(--accent-gold);
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-gold);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    padding-top: 24px; /* Reduced from 64px */
}

.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-gray);
    overflow: hidden;
    cursor: pointer;
    transition: 0.4s;
}

.product-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
}

.product-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.season-tag, .style-tag {
    font-size: 10px;
    border: 1px solid var(--accent-gold-transparent);
    color: var(--accent-gold);
    padding: 2px 8px;
}

.size-display {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.size-pill {
    font-size: 11px;
    background: var(--surface-gray);
    color: var(--text-secondary);
    padding: 2px 8px;
    border: 1px solid var(--border-gray);
}

.cta-button {
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 14px 32px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-button {
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-button:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* Modal (Centered) */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* 響應式商品詳情 */
.modal-content {
    background: #111;
    width: 90%;
    max-width: 940px;
    position: relative;
    border: 1px solid var(--border-gray);
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    display: block; /* 改為 block 方便手機版排版 */
}

@keyframes modalAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-body {
    display: flex;
    height: 100%;
    overflow: hidden;
}

.modal-image {
    flex: 1.2;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: auto;
    max-height: 90vh;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.modal-info {
    flex: 0.8;
    padding: 60px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-info h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.modal-tags { margin-bottom: 24px; }
.season-badge {
    background: var(--accent-gold-transparent);
    color: var(--accent-gold);
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.modal-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
}

.size-tag, .color-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--border-gray);
    margin: 0 8px 8px 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.modal-actions {
    margin-top: 40px;
}

.inquiry-btn {
    width: 100%;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.inquiry-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.close {
    position: absolute;
    right: -20px;
    top: -20px;
    color: var(--text-primary);
    font-size: 30px;
    font-weight: 200;
    cursor: pointer;
    z-index: 3100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-radius: 50%;
    transition: 0.3s;
}

.close:hover {
    background: #fff;
    transform: rotate(90deg);
}

/* 關於我們 / 代購區域 */
.about {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.promo-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Resize image by changing ratio */
    gap: 80px;
    align-items: center;
}

.promo-text h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.promo-text p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.highlight-text {
    color: var(--accent-gold) !important;
    font-weight: 500;
    font-size: 18px !important;
    margin-top: 32px;
}

.promo-image img {
    width: 100%;
    max-width: 280px; /* Further reduced size */
    margin-left: auto;
    border: 1px solid var(--border-gray);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    transition: 0.5s;
}

.promo-image img:hover {
    border-color: var(--accent-gold);
    transform: scale(1.02);
}

/* Footer 調整 */
.footer {
    padding: 80px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-gray);
    text-align: center;
}

.footer p {
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .navbar { padding: 15px 0; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        border-left: 1px solid var(--border-gray);
        z-index: 1000;
    }
    .nav-menu.active { right: 0; }

    .container-flex { flex-direction: column; gap: 30px; }
    
    .sidebar { 
        width: 100%; 
        border-bottom: 1px solid var(--border-gray);
        padding-bottom: 24px;
    }

    /* 手機版分類改為水平捲動 */
    .sidebar-list {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar-list::-webkit-scrollbar { display: none; }
    .sidebar-link { white-space: nowrap; padding: 8px 16px !important; border: 1px solid var(--border-gray) !important; border-radius: 4px; }
    .sidebar-link.active { background: var(--accent-gold); color: #000; }

    .sidebar-group { margin-bottom: 24px; }

    .top-filter-bar { gap: 16px; }
    .filter-group { flex: 1; min-width: 140px; }

    /* Modal 手機版最佳化 */
    .modal { padding: 20px 10px; }
    .modal-content { max-height: 90vh; overflow-y: auto; }
    .modal-body { flex-direction: column; }
    .modal-image { width: 100%; height: 300px; max-height: 40vh; }
    .modal-info { width: 100%; padding: 25px 15px; }
    .close { 
        position: fixed; /* 讓它相對於視窗 */
        right: 20px; 
        top: 20px; 
        width: 35px;
        height: 35px;
        font-size: 24px;
        background: var(--accent-gold);
        color: #000;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3101;
        box-shadow: 0 0 15px rgba(0,0,0,0.5);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .promo-image img { margin: 0 auto; max-width: 250px; }
}