/* product.css - 青青餐廳招牌菜色頁面專用樣式 */

/* ----- 全域變數 ----- */
:root {
    --red: #C8102E;
    --red-dark: #8B0A1E;
    --gold: #D4A843;
    --gold-light: #F0CC78;
    --ink: #1A0A06;
    --paper: #FDF8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif TC', serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
}

/* ----- 導航列 (與_Layout共用，此處保留確保覆蓋) ----- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: linear-gradient(180deg, rgba(26,10,6,.97), rgba(26,10,6,.93));
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 24px rgba(0,0,0,.45);
}

.nav-logo img {
    height: 56px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
}

    .nav-links a {
        font-size: .86rem;
        font-weight: 600;
        color: rgba(253,248,240,.82);
        text-decoration: none;
        letter-spacing: .08em;
        transition: color .2s;
    }

        .nav-links a:hover {
            color: var(--gold-light);
        }

        .nav-links a.active {
            color: var(--gold);
        }

.nav-cta {
    background: var(--red);
    color: #fff !important;
    padding: .38rem 1.1rem;
    border-radius: 2px;
    letter-spacing: .12em !important;
    transition: background .2s !important;
}

    .nav-cta:hover {
        background: #E8354A !important;
    }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--gold-light);
        border-radius: 2px;
    }

@media (max-width: 860px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 72px;
        right: 0;
        width: 240px;
        height: 100vh;
        background: rgba(26,10,6,.97);
        padding: 2rem 1.5rem;
        gap: 1.4rem;
        border-left: 2px solid var(--gold);
        backdrop-filter: blur(8px);
    }

        .nav-links.open {
            display: flex;
        }
}

/* ----- Hero 區塊 ----- */
.hero {
    margin-top: 72px;
    height: clamp(180px, 24vw, 260px);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #1A0A06;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 80% 100% at 70% 50%, rgba(212,168,67,.18) 0%, transparent 60%), radial-gradient(ellipse 50% 80% at 30% 50%, rgba(200,16,46,.22) 0%, transparent 55%), linear-gradient(110deg, #3D0A10 0%, #1A0A06 45%, #0D0604 100%);
        z-index: 0;
    }

    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(212,168,67,.04) 39px, rgba(212,168,67,.04) 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(212,168,67,.04) 39px, rgba(212,168,67,.04) 40px);
        z-index: 1;
    }

.hero-deco-circle {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(200px, 38vw, 420px);
    height: clamp(200px, 38vw, 420px);
    border-radius: 50%;
    border: 1px solid rgba(212,168,67,.12);
    z-index: 2;
}

    .hero-deco-circle::before {
        content: '';
        position: absolute;
        inset: 14px;
        border-radius: 50%;
        border: 1px solid rgba(212,168,67,.08);
    }

.hero-dish-art {
    position: absolute;
    right: clamp(2%, 8%, 12%);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    opacity: .9;
    width: clamp(120px, 22vw, 240px);
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,.5));
}

.hero-slash {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: clamp(180px, 28vw, 320px);
    background: linear-gradient(90deg, rgba(200,16,46,.12) 0%, transparent 100%);
    z-index: 2;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
}

.hero-text {
    position: relative;
    z-index: 4;
    padding-left: clamp(1.8rem, 6%, 6rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(200,16,46,.15);
    border: 1px solid rgba(200,16,46,.3);
    border-radius: 1px;
    padding: .22rem .7rem;
    margin-bottom: .8rem;
}

    .hero-badge span {
        font-size: .6rem;
        letter-spacing: .55em;
        color: var(--red);
        font-family: 'Noto Sans TC', sans-serif;
        font-weight: 500;
    }

    .hero-badge::before,
    .hero-badge::after {
        content: '';
        width: 12px;
        height: 1px;
        background: var(--red);
        opacity: .6;
    }

.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: .2em;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

    .hero-title em {
        color: var(--gold-light);
        font-style: normal;
        position: relative;
    }

        .hero-title em::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--gold), transparent);
        }

.hero-note {
    margin-top: .65rem;
    font-size: .75rem;
    color: rgba(253,248,240,.45);
    letter-spacing: .28em;
    font-family: 'Noto Sans TC', sans-serif;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: .9rem;
}

    .hero-divider span {
        width: 36px;
        height: 1px;
        background: var(--gold);
        opacity: .5;
    }

    .hero-divider i {
        width: 5px;
        height: 5px;
        background: var(--gold);
        transform: rotate(45deg);
        display: inline-block;
        opacity: .7;
    }

/* ----- 分類標籤欄 (Tab Bar) ----- */
.tab-bar {
    position: sticky;
    top: 72px;
    z-index: 100;
    background: var(--ink);
    border-bottom: 2px solid var(--gold);
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .tab-bar::-webkit-scrollbar {
        display: none;
    }

.tab-btn {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: .6rem 1.1rem;
    background: none;
    border: none;
    font-family: 'Noto Serif TC', serif;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: rgba(253,248,240,.4);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all .22s;
    white-space: nowrap;
}

    .tab-btn .ti {
        width: 26px;
        height: 26px;
        opacity: .4;
        transition: opacity .22s;
    }

        .tab-btn .ti svg {
            width: 100%;
            height: 100%;
        }

    .tab-btn:hover {
        color: rgba(253,248,240,.7);
    }

        .tab-btn:hover .ti {
            opacity: .7;
        }

    .tab-btn.active {
        color: var(--gold);
        border-bottom-color: var(--gold);
    }

        .tab-btn.active .ti {
            opacity: 1;
        }

/* ----- 主要內容容器 ----- */
.menu-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2.5rem 4% 5rem;
}

/* ----- 分類區塊 (cat-sec) ----- */
.cat-sec {
    margin-bottom: 4rem;
    scroll-margin-top: 130px;
}

.cat-hd {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding-bottom: .9rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(212,168,67,.28);
}

.cat-icon {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
}

    .cat-icon svg {
        width: 32px;
        height: 32px;
    }

.cat-nm {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.cat-en {
    font-size: .66rem;
    letter-spacing: .28em;
    color: var(--gold);
    text-transform: uppercase;
    margin-top: .22rem;
    font-family: 'Noto Sans TC', sans-serif;
}

.cat-ct {
    margin-left: auto;
    font-size: .7rem;
    color: rgba(26,10,6,.35);
    letter-spacing: .1em;
    font-family: 'Noto Sans TC', sans-serif;
    white-space: nowrap;
}

/* ----- 菜色網格 ----- */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.2rem;
}

/* ----- 單張菜色卡片 ----- */
.dish-card {
    background: #fff;
    border: 1px solid rgba(212,168,67,.13);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(26,10,6,.07);
    transition: transform .28s, box-shadow .28s;
    cursor: pointer;
}

    .dish-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(26,10,6,.14);
    }

.dish-photo {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

    .dish-photo img.main-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .4s;
    }

.dish-card:hover .dish-photo img.main-img {
    transform: scale(1.07);
}

/* 阿發師浮水印 */
.dish-photo .logo-wm {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 52px;
    height: auto;
    opacity: .8;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}

/* 圖片載入失敗時的 fallback */
.fb {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .35rem;
    background: linear-gradient(135deg, #7A0E20, #C8102E);
}

    .fb .fb-ic {
        width: 32px;
        height: 32px;
        opacity: .65;
    }

    .fb .fb-ln {
        width: 28px;
        height: 1px;
        background: rgba(255,255,255,.38);
    }

    .fb .fb-nm {
        font-size: .6rem;
        color: rgba(255,255,255,.5);
        letter-spacing: .1em;
        font-family: 'Noto Sans TC', sans-serif;
        text-align: center;
        padding: 0 8px;
    }

/* 放大鏡圖示 hover */
.zoom-hint {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: rgba(26,10,6,.55);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
    z-index: 2;
}

.dish-card:hover .zoom-hint {
    opacity: 1;
}

.zoom-hint svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.dish-label {
    padding: .68rem .9rem;
    text-align: center;
    border-top: 1px solid rgba(212,168,67,.1);
}

.dish-nm {
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--ink);
    line-height: 1.4;
}

/* ----- 展開/收起 (預留) ----- */
.grid-wrap {
    position: relative;
}

.grid-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to bottom, transparent, var(--paper));
    pointer-events: none;
    transition: opacity .4s;
}

    .grid-mask.off {
        opacity: 0;
        pointer-events: none;
    }

.xbtn {
    display: block;
    margin: 1.1rem auto 0;
    padding: .52rem 1.8rem;
    background: transparent;
    border: 1.5px solid rgba(200,16,46,.38);
    color: var(--red);
    font-family: 'Noto Serif TC', serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    cursor: pointer;
    border-radius: 2px;
    transition: all .2s;
    position: relative;
    z-index: 2;
}

    .xbtn:hover {
        background: var(--red);
        color: #fff;
        border-color: var(--red);
    }

    .xbtn .arr {
        display: inline-block;
        margin-left: .45rem;
        transition: transform .3s;
    }

    .xbtn.open .arr {
        transform: rotate(180deg);
    }

/* ----- 引言區 ----- */
.quote {
    background: linear-gradient(135deg, var(--ink), #5A0612);
    padding: 2rem 5%;
    text-align: center;
    margin: 0 0 2.5rem;
    position: relative;
    overflow: hidden;
}

    .quote::before {
        content: '"';
        position: absolute;
        top: -1.5rem;
        left: 3%;
        font-size: 10rem;
        color: rgba(212,168,67,.05);
        font-family: serif;
        line-height: 1;
    }

    .quote blockquote {
        font-size: clamp(.86rem, 2vw, 1.05rem);
        color: #fff;
        letter-spacing: .1em;
        line-height: 1.9;
        font-weight: 600;
        max-width: 640px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

    .quote cite {
        display: block;
        margin-top: .8rem;
        font-size: .7rem;
        color: var(--gold);
        letter-spacing: .3em;
        font-style: normal;
    }

/* ----- Lightbox 燈箱 ----- */
#lb {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(10,5,2,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    padding: 1rem;
}

    #lb.show {
        opacity: 1;
        pointer-events: all;
    }

#lb-inner {
    position: relative;
    max-width: min(640px, 92vw);
    width: 100%;
    background: #1A0A06;
    border: 1px solid rgba(212,168,67,.3);
    border-radius: 4px;
    overflow: hidden;
    transform: scale(.94);
    transition: transform .3s;
    box-shadow: 0 20px 60px rgba(0,0,0,.7);
}

#lb.show #lb-inner {
    transform: scale(1);
}

#lb-img-wrap {
    position: relative;
}

#lb-img {
    width: 100%;
    display: block;
    max-height: 65vh;
    object-fit: contain;
    background: #0D0604;
}

#lb-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 72px;
    height: auto;
    opacity: .85;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.6));
    pointer-events: none;
}

#lb-caption {
    padding: .9rem 1.2rem;
    text-align: center;
    border-top: 1px solid rgba(212,168,67,.18);
}

#lb-name {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: .12em;
    color: #fff;
}

#lb-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(26,10,6,.7);
    border: 1px solid rgba(212,168,67,.3);
    border-radius: 2px;
    color: rgba(253,248,240,.7);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all .18s;
    font-family: sans-serif;
}

    #lb-close:hover {
        background: var(--red);
        color: #fff;
        border-color: var(--red);
    }

/* ----- 預約區塊 (booking) ----- */
.booking-section {
    background: var(--red);
    padding: 2.5rem 5%;
    text-align: center;
}

.booking-label {
    font-size: .7rem;
    letter-spacing: .4em;
    color: rgba(255,255,255,.5);
    margin-bottom: .4rem;
    font-family: 'Noto Sans TC', sans-serif;
}

.booking-title {
    font-size: clamp(1.1rem, 2.8vw, 1.7rem);
    color: #fff;
    font-weight: 900;
    letter-spacing: .1em;
    margin-bottom: 1.1rem;
}

.booking-btn {
    display: inline-block;
    background: #fff;
    color: var(--red);
    font-weight: 900;
    font-size: .9rem;
    letter-spacing: .12em;
    padding: .75rem 2rem;
    border-radius: 2px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    transition: transform .2s;
}

    .booking-btn:hover {
        transform: translateY(-2px);
    }

.booking-address {
    margin-top: .8rem;
    font-size: .72rem;
    color: rgba(255,255,255,.45);
    letter-spacing: .1em;
    font-family: 'Noto Sans TC', sans-serif;
}



/* ----- 動畫 ----- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dish-card {
    animation: fadeUp .38s ease both;
}

/* ----- 響應式調整 ----- */
@media (max-width: 640px) {
    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .85rem;
    }

    .dish-nm {
        font-size: .78rem;
    }

    .tab-btn {
        padding: .5rem .85rem;
        font-size: .7rem;
    }

        .tab-btn .ti {
            width: 22px;
            height: 22px;
        }

    .hero-title {
        letter-spacing: .1em;
    }
}
