@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&family=Outfit:wght@300;400;500;600;700;900&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #ffffff;
    --bg-surface: #f9f9f9;
    --bg-surface-glass: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(0, 0, 0, 0.1);
    
    --primary: #c5a880; /* Elegant Champagne Gold */
    --primary-hover: #b09166;
    --secondary: #1c3a27; /* Premium Emerald/Forest Green */
    --secondary-light: #2c543c;
    
    --text-main: #000000;
    --text-muted: #1c3a27;
    --text-dark: #121315;
    --text-light: #ffffff;
    
    --success: #34c759;
    --error: #ff3b30;
    --warning: #ff9500;
    
    /* Layout & FX */
    --font-primary: 'Outfit', 'Noto Sans TC', sans-serif;
    --border-radius: 12px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}
.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.form-control:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.15);
}
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.animate-fade {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Utility Layouts */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* HEADER STYLING */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

header.site-header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 140px;
    padding: 10px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary);
    text-transform: uppercase;
}

.logo img {
    height: 140px;
}

nav.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

nav.main-nav a {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 10px 0;
}

nav.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

nav.main-nav a:hover, nav.main-nav li.active a {
    color: var(--primary);
}

nav.main-nav a:hover::after, nav.main-nav li.active a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-lang {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-lang:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-cart-trigger {
    background: var(--secondary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-cart-trigger:hover {
    background: var(--secondary-light);
    border-color: var(--primary);
}

.cart-count {
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: 1;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 30%, rgba(240,240,240,0.6) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 650px;
}

.hero-subtitle {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--text-main);
}

.hero-title span {
    color: var(--primary);
    background: linear-gradient(45deg, var(--primary), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-main);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    border: 1px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: none;
}

.btn-outline {
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

/* SECTION STYLE COMMON */
.section {
    padding: 100px 0;
}

.section-darker {
    background-color: var(--bg-surface);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
}

/* CARDS AND GRIDS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.05) 0%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(197, 168, 128, 0.4);
    box-shadow: var(--shadow-premium);
}

.glass-card:hover::before {
    opacity: 1;
}

/* BRANDING & ADVANTAGES */
.adv-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.adv-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.adv-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* PRODUCT CATALOGUE */
.product-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
    
    /* Make the filter bar sticky */
    position: sticky;
    top: 160px;
    z-index: 99;
    background-color: var(--bg-dark); /* Solid background to prevent overlap transparency */
    padding: 15px 0;
    margin-top: -15px; /* Offset the top padding */
    border-bottom: 1px solid var(--border-glass);
}

.categories-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.search-wrapper {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-glass);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.1);
}

/* PRODUCT CARD */
.product-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f4f4f4;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-spec {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex-grow: 1;
    background: var(--secondary);
    color: var(--primary);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    border: 1px solid transparent;
}

.btn-add-cart:hover {
    background: var(--secondary-light);
    border-color: var(--primary);
}

.btn-view-detail {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-glass);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-view-detail:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

/* CART SIDE PANEL */
.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100%;
    background: var(--bg-surface);
    z-index: 2000;
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    border-left: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: var(--transition-smooth);
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-size: 20px;
    font-weight: 700;
}

.btn-close-cart {
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-close-cart:hover {
    color: var(--primary);
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
}

.cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding-top: 100px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    background: #f4f4f4;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-spec {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.qty-val {
    font-size: 14px;
    font-weight: 600;
}

.btn-remove-item {
    color: var(--error);
    font-size: 12px;
    cursor: pointer;
    background: none;
    border: none;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--border-glass);
}

.cart-footer-btn {
    width: 100%;
    text-align: center;
    display: block;
}

/* OVERLAY */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1500;
    display: none;
}

.backdrop.open {
    display: block;
}

/* FOOTER STYLING */
footer.site-footer {
    background-color: #f0f0f0;
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 30px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col-title {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 18px;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 40px;
    }
    .cart-panel {
        width: 100%;
    }
    .header-actions {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
