/* --- Header --- */
.header-info {
    margin-bottom: 20px;
    padding: 25px;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header-info h1 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.intro-text {
    margin-bottom: 15px;
}

.order-section {
    background-color: #fffaf5;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #d4b29f;
}

.order-title {
    font-weight: bold;
    color: #8b6e5e;
    margin-bottom: 8px;
}

.order-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95em;
}

.order-steps li {
    margin-bottom: 6px;
}

.header-info .warning-msg {
    display: block;
    margin-top: 24px;
    color: #8b6e5e;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .header-info {
        padding: 20px;
    }
}

/* --- 頁籤導航 (Tabs) --- */
.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 15px;
}

.tab-btn {
    padding: 12px 30px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    background-color: #fff;
    color: #888;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.tab-btn.active {
    border-color: #8b6e5e;
    background-color: #8b6e5e;
    color: #fff;
    box-shadow: 0 4px 10px rgba(139, 110, 94, 0.3);
}

.tab-btn:hover:not(.active) {
    border-color: #d4b29f;
    color: #8b6e5e;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 600px) {
    .tab-btn {
        padding: 10px 20px;
        font-size: 1em;
    }
}

/* --- 橫向分類選單樣式 (膠囊按鈕) --- */
.category-nav-wrapper {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 5px;
    margin-bottom: 15px;
    background-color: #fff;
    text-align: center;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.category-nav {
    display: inline-flex;
    gap: 12px;
    padding: 0 10px;
}

.cat-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #665145;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1.2;
}

.cat-btn:hover {
    background-color: #fcfcfc;
    border-color: #ccc;
}

.cat-btn.active {
    background-color: #8b6e5e;
    color: white;
}

/* --- 分頁樣式 --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination.is-loading {
    pointer-events: none;
    opacity: 0.5;
    cursor: wait;
}

.page-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #555;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1em;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-btn:hover {
    background-color: #f5eee9;
    border-color: #d4b29f;
    color: #8b6e5e;
    transform: translateY(-1px);
}

.page-btn.active {
    background-color: #8b6e5e;
    border-color: #8b6e5e;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
}

.page-arrow {
    border-radius: 8px;
    padding: 0 14px;
    width: auto;
    font-weight: bold;
    color: #8b6e5e;
}

/* 搜尋與篩選區塊 */
.search-filter-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #bfa59a;
}

.filter-select {
    padding: 10px 30px 10px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fcfcfc;
    font-size: 0.95em;
    color: #555;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23bfa59a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px auto;
}

.search-btn {
    padding: 10px 20px;
    background-color: #8b6e5e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
}

.search-btn:hover {
    background-color: #a88e84;
}

.clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    color: #888;
    background: transparent;
    border: none;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.clear-btn:hover {
    color: #e65555;
}

@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .search-btn {
        width: 100%;
    }
    .clear-btn {
        text-align: center;
    }
}
