/* ======== 全站設定 ======== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', 'Noto Sans TC', sans-serif;
    background-color: #fdf9f8;
    color: #444;
}
a { text-decoration: none; color: inherit; }
img { width: 100%; }
h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #b47b77;
    text-align: center;
    margin: 60px 0 30px;
    letter-spacing: 1px;
}
button { cursor: pointer; }

/* ======== Header ======== */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
header .logo { text-align: center; margin-top: 15px; }
header .logo img { height: 110px; width: auto; display: block; margin: 0 auto; }
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    flex-wrap: wrap;
}
.nav-links {
    display: flex;
    justify-content: space-around; 
    flex: 1;
}
.nav-links a {
    margin: 0 20px;
    font-weight: 500;
    color: #b47b77;
    padding: 5px 10px;
    border-radius: 8px;
    transition: 0.3s;
}
.nav-links a:hover { background-color: #f4d1cb; color: #fff; }
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px; 
}
.nav-right button {
    background-color: #b47b77;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    transition: 0.3s;
}
.nav-right button:hover { background-color: #a06965; }
.cart { font-size: 1.2em; }
.cart span {
    background-color: #fff;
    color: #b47b77;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.8em;
    vertical-align: top;
}

/* ======== 聯絡表單區塊 ======== */
.contact-container {
    max-width: 600px;
    margin: 40px auto 80px;
    padding: 20px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.contact-info {
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}
.contact-info p {
    margin-bottom: 10px;
    color: #555;
}
.contact-info strong { color: #b47b77; }

/* ======== 自訂表單元素 ======== */
.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
}
.contact-form button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #b47b77;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
}

/* ======== 按鈕懸停動畫 ======== */
.btn-primary {
    transition: transform 0.5s ease, color 0.5s ease;
}
.btn-primary:hover {
    transform: translateX(5px);
    color: #fff;
}

/* ======== Footer ======== */
footer {
    background-color: #f4d1cb;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}
footer p { margin: 5px 0; }

/* ======== 會員登入 Modal ======== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.modal-dialog {
    max-width: 600px;
    margin: 10% auto;
}
.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}
.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}
.modal-title {
    font-weight: bold;
    font-size: 1.5rem;
}
.modal-content input { width: 80%; padding: 8px; margin: 8px 0; border-radius: 5px; border: 1px solid #ccc; }
.modal-content button { padding: 8px 20px; border-radius: 20px; border: none; background-color: #b47b77; color: #fff; }
.modal-content button:hover { background-color: #a06965; }
.close { position: absolute; top: 10px; right: 15px; cursor: pointer; font-size: 20px; }

/* ======== 響應式 ======== */
@media (max-width:768px){
    .nav-links { flex-direction: column; gap: 10px; justify-content: center; }
    .nav-right { margin-top: 10px; justify-content: center;}
    .contact-container { width: 90%; }
}
