/*
Theme Name: Asia Kitchen Pro v7 (形象網站版：無購物車)
Theme URI: https://example.com
Author: Custom WordPress Theme
Description: 餐廳形象展示網站佈景主題：菜單展示、營業時間自動顯示、背景與菜色圖片、商標、字型與字體大小可於後台調整（無購物車與訂餐功能）。
Version: 7.0
License: GNU General Public License v2 or later
Text Domain: asia-kitchen
*/

:root {
    --primary-red: #C8102E;
    --border-gray: #E5E7EB;
    --text-dark: #111827;
    --text-muted: #6B7280;
    --bg-light: #F9FAFB;
    --badge-green-bg: #DCFCE7;
    --badge-green-text: #166534;
    --badge-red-bg: #FEE2E2;
    --badge-red-text: #991B1B;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--ak-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    color: var(--text-dark);
    background-color: #FFFFFF;
    line-height: 1.5;
}

a {
    color: #2563EB;
    text-decoration: underline;
}

/* 主容器 */
.ak-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0 48px;
}

/* 最上方橫跨整個寬度：店家資訊、公告橫幅、搜尋欄 */
.ak-top {
    grid-column: 1 / -1;
    min-width: 0;
}

.ak-main {
    min-width: 0;
}

/* 左側欄：Menu 導覽 */
.ak-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
}

.ak-sidebar h2 {
    font-family: var(--ak-font-heading, inherit);
    font-size: var(--ak-section-title-size, 28px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 8px;
}

.ak-sidebar .menu-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.menu-category-box {
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    background: #FFFFFF;
    transition: border-color 0.2s;
    cursor: pointer;
    user-select: none;
}

.menu-category-box.active {
    border: 1.5px solid var(--text-dark);
}

.menu-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
}

.menu-cat-time {
    font-size: var(--ak-lunch-hours-size, 13px);
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.menu-sub-links {
    margin-top: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.menu-category-box.active .menu-sub-links {
    display: flex;
}

.menu-cat-arrow {
    font-size: 13px;
    transition: transform 0.2s;
}

.menu-category-box.active .menu-cat-arrow {
    transform: rotate(180deg);
}

.menu-sub-link {
    display: block;
    padding-left: 12px;
    border-left: 2px solid var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
}

/* 右側主區塊 */
.store-header-grid {
    display: block;
    text-align: center;
    margin-bottom: 24px;
}

.store-info-block {
    font-family: var(--ak-font-info, inherit);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-title {
    font-family: var(--ak-font-heading, inherit);
    font-size: var(--ak-title-size, 34px);
    font-weight: 800;
    margin-bottom: 12px;
}

.store-status-row {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--ak-info-label-size, 16px);
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 700;
}

.badge-open {
    background-color: var(--badge-green-bg);
    color: var(--badge-green-text);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.badge-closed {
    background-color: var(--badge-red-bg);
    color: var(--badge-red-text);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.store-meta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--ak-info-size, 14px);
    margin-bottom: 6px;
}

/* 中間可選公告橫幅 */
.ak-promo-banner {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

/* 搜尋框 */
.menu-search-wrap {
    position: relative;
    margin: 0 auto 32px;
    max-width: 540px;
}

.menu-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.menu-search-input:focus {
    border-color: var(--text-dark);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* 菜單分類區塊 */
.menu-section-block {
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--ak-font-heading, inherit);
    font-size: var(--ak-section-title-size, 28px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 6px;
}

.section-desc {
    font-size: 14px;
    color: #374151;
    margin-bottom: 10px;
}

.section-hours {
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* 雙欄/三欄無圖片純文字菜單卡片 */
.menu-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dish-card {
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    padding: 18px 20px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* 菜色圖片：貼齊卡片上緣與左右兩側 */
.dish-card {
    overflow: hidden;
}

.dish-img {
    margin: -18px -20px 14px;
    height: var(--ak-dish-img-h, 170px);
    background: var(--bg-light);
}

.dish-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-card:hover {
    border-color: #9CA3AF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dish-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.dish-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.dish-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dish-price {
    font-weight: 700;
    font-size: 15px;
}

/* 頁尾 Footer */
.ak-footer {
    border-top: 1px solid var(--border-gray);
    text-align: center;
    padding: 40px 20px 0;
}

.footer-brand {
    font-family: var(--ak-font-heading, inherit);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.footer-info {
    font-size: 14px;
    margin-bottom: 32px;
}

.footer-info div {
    margin-bottom: 4px;
}

.footer-status {
    margin-bottom: 12px;
}

.footer-info a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-info a:hover,
.footer-info a:focus-visible {
    color: var(--primary-red);
}

.footer-links {
    border-top: 1px solid var(--border-gray);
    padding: 24px 20px 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}

.footer-links a {
    color: var(--text-dark);
}

@media (max-width: 960px) {
    .ak-container {
        grid-template-columns: 1fr;
    }
    .ak-sidebar {
        position: static;
    }
    .menu-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

.menu-group-divider {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-gray);
}
.menu-group-caption {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}


/* 菜單最下方補充說明文字（字體大小可在後台調整） */
.ak-bottom-note {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
    font-size: var(--ak-note-size, 13px);
    color: var(--text-muted);
}

/* 商標 */
.store-logo {
    margin-bottom: 14px;
}

.store-logo img {
    display: block;
    width: var(--ak-logo-w, 260px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* 商標白色底板：在背景圖片上也看得清楚 */
.store-logo.has-plate {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 18px;
    border-radius: 16px;
}

/* 視覺上隱藏、但搜尋引擎與讀屏軟體仍讀得到 */
.ak-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
