:root {
    /* 大地色系變數 */
    --box-bg: #FDF6EE;
}
/* =========================================
           Menu Layout (Grid)
           ========================================= */

.menu {
    max-width: 1180px;
    margin: 64px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 74px;
    /* 上下 60px, 左右 40px */
    padding: 8px 24px 0;
}


/* 針對缺少標題圖檔的養生茶，自訂一個預設文字樣式來模擬 */

.menu-section__title-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-section__title-text::before {
    content: "💧";
    /* 模擬水滴 icon */
    font-size: 1.5rem;
    color: var(--text-main);
}

.menu-section__title {
    height: 34px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 25px;
    margin-top: 24px;;
}


/* =========================================
           Menu Item Block (BEM)
           ========================================= */

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.menu-item__info {
    flex: 1;
    padding-right: 6px;
    text-align: left;
}

.menu-item__name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: -2px;
    position: relative;
    padding-left: 10px;
}


/* 項目名稱左側的小直線裝飾 */

.menu-item__name::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background-color: var(--text-main);
}

.menu-item__en {
    font-size: 0.92rem;
    color: var(--text-sub);
    padding-left: 0;
    margin-left: 12px;
}

.menu-item__price {
    font-size: 1.1rem;
    font-weight: bold;
    white-space: nowrap;
}

/* 手沖單品客製卡片 */
.menu-item--featured {
    align-items: center;
    gap: 16px;
}
/* 淡黃色背景 */
.menu-item__info--featured {
    background-color: #f8f5df;
    border-radius: 999px;
    padding: 60px 30px 40px 40px;
    max-width: 500px;
    width: 100%;
    clip-path: ellipse(closest-side farthest-side);
    margin: 20px 0;
}

.menu-item__featured-title {
    display: block;
    margin-bottom: 10px;
}

.menu-item__featured-title-img {
    width: auto;
    max-width: 100%;
    height: 34px;
    display: block;
}

.menu-item__name--featured {
    font-size: 1.18rem;
    margin-bottom: 2px;
}

.menu-item__en--featured {
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    
}

.menu-item__price--featured {
    font-size: 1.14rem;
    letter-spacing: 0.08em;
    color: #744a2a;
    padding-top: 0;
    align-self: center;
}


/* 風味咖啡的口味標籤 */

.menu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
   
}

.menu-tags__badge {
    font-size: 11px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2px 8px;
    color: var(--text-sub);
}


/* =========================================
           Right Column Special Blocks
           ========================================= */

.menu__hero-img {
    width: 100%;
    height: auto;
    /* object-fit: contain; */
    margin-bottom: 0px;
}

.menu-rules {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 40px;
}

.menu-rules__mascot {
    width: 90px;
    height: auto;
}

.menu-rules__text {
    color: var(--color-accent);
    font-weight: bold;
    font-size: 14px;
    list-style: none;
    padding-top: 10px;
}

.menu-rules__text li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 18px;
}


/* 使用偽元素做為自訂點點 */

.menu-rules__text li::before {
    content: "🐾";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 10px;
}

.menu-message {
    background-color: #FDF6EE;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px 25px;
    position: relative;
    margin-top:40px;
    margin-bottom: 40px;
}

.menu-message__p {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 10px;
    line-height: 1.8;
}

.menu-message__paw {
    position: absolute;
    right: -1px;
    bottom: 0px;
    width: 80px;
    height: auto;
    transform: rotate(-6deg);
}

@media (min-width: 769px) {
    .menu__right-top-order {
        max-width: 430px;
        margin: 0 auto 283px 24px;
    }

    .menu__hero-img {
        width: 120%;
        max-width: none;
        margin-left: -10%;
    }


    .menu-rules {
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 18px;
    }

    .menu-rules__mascot {
        order: 2;
        width: 198px;
        flex: 0 0 auto;
        margin-top: -72px;
    }

    .menu-rules__text {
        order: 1;
        color: #ec5f24;
        font-size: 1.07rem;
        line-height: 1.6;
        font-weight: 700;
        padding-top: 0;
        flex: 1;
    }

    .menu-rules__text li {
        padding-left: 28px;
        margin-bottom: 4px;
    }

    .menu-rules__text li::before {
        content: "・";
        left: 0;
        top: 0;
        color: #ec5f24;
        font-size: 1.05rem;
    }

    .menu-rules__text li:first-child::before {
        content: "";
        width: 22px;
        height: 22px;
        top: 1px;
        background-image: url("./images/menu/catPaw-pic.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .menu-message {
        margin-bottom: 22px;
        padding: 16px 20px 18px;
        border-radius: 18px;
        border: 1.5px solid #d6ac76;
        background-color: #FDF6EE;
    }

    .menu-message__p {
        color: #9e7149;
        font-size: 0.97rem;
        line-height: 1.72;
        margin-bottom: 6px;
    }

    .menu-message__paw {
        width: 88px;
        right: 0;
        bottom: 2px;
        transform: rotate(-6deg);
    }
}


/* =========================================
           Responsive Web Design (RWD)
           ========================================= */

@media (max-width: 992px) {
    /* 覆寫共用樣式，維持 menu 頁項目為左右排版且文字靠左 */
    .menu .menu-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .menu {
        grid-template-columns: 1fr;
        /* 手機版改為單欄堆疊 */
        gap: 40px;
        padding-left: 24px;
        padding-right: 24px;
    }
    .menu__right-top-order {
        order: -1;
        /* 讓右欄上方的貓咪主圖與注意事項在手機版時排到最上面 */
    }
    /* 手機版適度調整字體大小 */
    .menu-item__name,
    .menu-item__price {
        font-size: 16px;
    }
    .menu-item__en {
        font-size: 13px;
    }

    .menu-item--featured {
        align-items: center;
        gap: 10px;
    }

    .menu-item__info--featured {
        padding: 50px 30px 40px 30px;

    }

    .menu-item__featured-title {
        margin-bottom: 6px;
    }

    .menu-item__featured-title-img {
        width: auto;
        max-width: 100%;
        height: 34px;
    }

    .menu-item__name--featured {
        font-size: clamp(0.95rem, 3.6vw, 1.2rem);
        margin-bottom: 1px;
    }

    .menu-item__en--featured {
        font-size: clamp(0.78rem, 2.9vw, 0.94rem);
        padding-left: 10px;
    }

    .menu-item__price--featured {
        font-size: clamp(1rem, 4vw, 1.25rem);
        letter-spacing: 0.08em;
        padding-top: 8px;
    }

    /* 右側主視覺區改為手機版示意稿排版 */
    .menu__right-top-order {
        max-width: 560px;
        margin: 0 auto;
    }

 

    .menu-rules {
        margin-bottom: 20px;
        gap: 10px;
        justify-content: space-between;
        align-items: flex-end;
    }

    .menu-rules__mascot {
        order: 2;
        width: min(42vw, 205px);
        flex: 0 0 auto;
        margin-top: -72px;
    }

    .menu-rules__text {
        order: 1;
        color: #ec5f24;
        font-size: clamp(1.1rem, 4vw, 1.45rem);
        line-height: 1.65;
        font-weight: 700;
        padding-top: 0;
        flex: 1;
    }

    .menu-rules__text li {
        margin-bottom: 4px;
        padding-left: 24px;
    }

    .menu-rules__text li::before {
        content: "•";
        font-size: 18px;
        color: #ec5f24;
        top: 0;
    }

    .menu-rules__text li:first-child::before {
        content: "";
        width: 20px;
        height: 20px;
        top: 2px;
        background-image: url("./images/menu/catPaw-pic.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .menu-message {
        margin-bottom: 28px;
        padding: 22px 22px 26px;
        background-color: #FDF6EE;
        border: 2px solid #d6ac76;
        border-radius: 24px;
    }

    .menu-message__p {
        font-size: clamp(1rem, 3.8vw, 1.35rem);
        color: #9e7149;
        line-height: 1.8;
        margin-bottom: 10px;
    }

    .menu-message__paw {
        width: min(20vw, 135px);
        right: 0;
        bottom: 6px;
        transform: rotate(-6deg);
    }
}

@media (max-width: 420px) {
    .menu-message__p {
        line-height: 1.72;
    }
}