﻿/* /css/site.css */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f8f9fa;
    --e-global-color-accent: #007bff;
    --e-global-typography-accent-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --e-global-typography-accent-font-size: 14px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding-top: 90px; /* 依你的 navbar 高度，可調 80~100px */
    background: url('../uploads/background.webp') fixed; /* 注意路徑可能需要調整 */
    background-size: cover;
    background-position: center;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* --- Navbar --- */
.navbar {
    transition: all 0.3s ease, transform 0.5s ease, opacity 0.5s ease;
    padding: 10px 0;
    padding-right: 60px;
    background-color: transparent !important;
    box-shadow: none !important;
    top: 10px;
    width: 100%;
    z-index: 1030;
}

.navbar-brand {
    padding-left: 60px;
}

.navbar-hidden {
    transform: translateY(-120%);
    opacity: 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 5px 0;
}

.navbar-brand img {
    max-height: 50px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    max-height: 40px;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    color: #333 !important;
    padding: 8px 15px;
    border-radius: 4px;
}

.navbar .dropdown-toggle::after {
    margin-left: 4.5em;
    top: 20px;
    width: 10px;
    height: 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white !important;
    background-color: #49381F;
}

    .nav-link:hover::after {
        width: 0 !important;
    }

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* --- Cart Icon --- */
.cart-icon {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #FB8500;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

    footer .border-top {
        background-color: black;
        color: white;
    }

        footer .border-top p {
            color: white;
            margin-bottom: 0;
            padding: 10px 0;
        }

.footer-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-links a:hover {
        color: var(--primary-color);
    }

.social-icons a {
    color: #333;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

    .social-icons a:hover {
        color: var(--e-global-color-accent);
    }

footer a.text-white {
    color: #333 !important;
}

/* --- General Buttons --- */
.btn-primary {
    background-color: var(--e-global-color-accent);
    border-color: var(--e-global-color-accent);
    transition: all 0.3s ease;
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: 600;
    padding: 12px 24px;
}

    .btn-primary:hover {
        background-color: #0069d9;
        border-color: #0062cc;
        transform: translateY(-2px);
    }

/* --- Member Center (can be moved to its own CSS later) --- */
.member-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 24px;
    margin: 20px auto 30px; /* ← 原本 50 改 20，避免太低 */
    max-width: 960px;
}

@media (max-width: 767.98px) {
    .member-container {
        margin-top: 10px;
    }
}
.member-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 2px solid #FB8500;
    padding-bottom: 8px;
}

.nav-pills .nav-link {
    border-radius: 20px;
}

    .nav-pills .nav-link.active {
        background-color: #FB8500;
    }
.order-card {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

    .order-card:last-child {
        border-bottom: none;
    }

.order-thumb {
    width: 120px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}


/* --- Mobile / Responsive --- */
@media (max-width: 991.98px) {
    .navbar-hidden {
        transform: none !important;
        opacity: 1 !important;
    }

    #mainNavbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 75%;
        background-color: rgba(255,255,255,0.97);
        padding: 1rem;
        box-shadow: -4px 0 12px rgba(0,0,0,0.15);
        border-radius: 0 0 0 12px;
        z-index: 1050;
    }

        #mainNavbar .navbar-nav {
            margin-left: 0 !important;
            align-items: flex-start !important;
        }

        #mainNavbar .nav-item,
        #mainNavbar .nav-link {
            width: 100%;
            text-align: left !important;
            justify-content: flex-start !important;
        }
}

.btn-gwa {
    display: inline-block;
    background-color: #FB8500;
    border-color: #FB8500;
    color: #fff !important;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    text-align: center;
}

    .btn-gwa:hover,
    .btn-gwa:focus {
        background-color: #e47400;
        border-color: #e47400;
        color: #fff !important; 
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }