* {
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #faf7f2;
    color: #222;
    line-height: 1.7;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.3;
}

h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

.oval-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 20px;
    margin: 2px;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.brand-tag {
    background: #e6f0ee;
    color: #2a6a5a;
}

.category-tag {
    background: #ede9f6;
    color: #5a4a8a;
}

/* === Flash messages === */
.flashes ul { list-style: none; padding: 0; margin: 0; }
.flashes li {
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 15px;
}
.flashes li.success { background: #eaf6ed; color: #1a6b35; border: 1px solid #c3e6cb; }
.flashes li.error   { background: #fdf0f0; color: #b42b2b; border: 1px solid #f5c6cb; }

/* === Availability badges === */
.availability-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.badge-fast     { background: #e6f4ea; color: #1a7a35; }
.badge-preorder { background: #e8eaf6; color: #3949ab; }

/* === Site footer === */
.site-footer {
    text-align: center;
    padding: 28px 25px;
    margin-top: 48px;
    border-top: 1px solid #e8e4e0;
    font-size: 14px;
    color: #999;
}

/* === Topbar 置頂導覽列 === */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a {
    display: inline-block;
    margin-top: 0;
}
.topbar-logo img {
    height: 70px;
    width: auto;
    display: block;
}
.topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
    margin-left: 5px;
    line-height: 1;
}

/* === 統一按鈕樣式 === */
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.55em 1.4em;
    border-radius: 8px;
    background: transparent;
    color: #2c2a28;
    border: 1.5px solid #2c2a28;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
button:hover:not(:disabled) {
    background: #2c2a28;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.14);
    transform: translateY(-1px);
}
button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}
button:disabled {
    background: transparent;
    color: #bbb;
    border-color: #bbb;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 導覽用連結式按鈕 */
.button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5em 1.2em;
    border-radius: 8px;
    background: transparent;
    color: #2c2a28;
    border: 1.5px solid #2c2a28;
    text-decoration: none;
    cursor: pointer;
    font-size: inherit;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.button:hover {
    background: #2c2a28;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.14);
    transform: translateY(-1px);
}

/* 商品卡片「查看詳情」連結 */
.detail-link {
    display: block;
    margin-top: 12px;
    padding: 0.5em 1em;
    border-radius: 8px;
    background: transparent;
    color: #555;
    border: 1px solid #ddd;
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-align: center;
}
.detail-link:hover {
    background: #2c2a28;
    color: #fff;
    border-color: #2c2a28;
}

/* === 表單輸入元素 === */
input, select, textarea {
    padding: 0.45em 0.75em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
    color: #222;
    background: #fff;
}