﻿html,
body {
    margin: 0;
    padding: 0;
}

body {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
}

.boius {
    border-radius: 3rem;
}

/* 頁面標題 */
.sku-title-wrap {
    padding-top: 5%;
}

.sku-title-cn {
    color: #231815;
    font-family: "Noto Sans TC";
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 1px;
}

.sku-title-en {
    font-size: clamp(0.9rem, 1.3vw, 1.25rem);
    font-weight: 500;
    color: #555;
    letter-spacing: 0.05em;
}


/* 商品分類按鈕列 */
.sku-category-wrap {
    width: 100%;
    margin-bottom: 1.8rem;
}

.sku-category-list {
    display: flex;
    width: 100%;
    gap: 14px;
}

.sku-category-btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.75rem 0.5rem;
    background-color: #fff;
    color: #111;
    border: 1px solid #e60012;
    border-radius: 999px;
    text-decoration: none;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.3;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

    .sku-category-btn:hover,
    .sku-category-btn:focus,
    .sku-category-btn.active {
        background-color: #e60012;
        color: #fff;
        border-color: #e60012;
        text-decoration: none;
    }

/* 品牌圖片區 */
.brand-section {
    margin-bottom: 4rem;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 48px;
}

.brand-card {
    display: block;
    color: #111;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .brand-card:hover {
        color: #111;
        /* 卡片 hover 動畫
       translate(0, -10px)：X 軸不移動，Y 軸往上移動 10px
       scale(1.02)：放大 1.02 倍，也就是放大 2% */
        transform: translate(0, -10px) scale(1.01);
        text-decoration: none;
    }

.brand-img {
    display: block;
    width: 100%;
    height: auto;
}

.brand-name {
    margin-top: 4px;
    margin-bottom: 0;
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.4;
}

.sku-tab-panel {
    display: none;
}

    .sku-tab-panel.active {
        display: block;
    }

/* 手機版分類按鈕 */
@media (max-width: 768px) {
    .sku-category-list {
        flex-wrap: wrap;
        gap: 12px;
    }

    .sku-category-btn {
        flex: 0 0 calc(50% - 6px);
        min-height: 46px;
        font-size: 0.95rem;
    }

    .brand-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 420px) {
    .sku-category-btn {
        flex: 0 0 100%;
    }
}

/* 底部酒類警語 */
.alcohol-warning-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    /* 移除 background-color 和 padding，讓圖片完全貼齊邊緣 */
    padding: 0;
    margin: 0;
}

/* 圖片本身設定 */
.alcohol-warning-img {
    display: block;
    width: 100%; /* 強制圖片寬度與螢幕同寬 */
    height: auto; /* 高度自動等比例縮放，避免圖片變形 */
}

@media (max-width: 576px) {
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .alcohol-warning-bar {
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    }

    .alcohol-warning-img {
        width: 100%;
        height: auto;
    }
}

@media (min-width: 1200px) {
    body {
        /* 因為現在圖片會無限制跟著螢幕放大，大螢幕時圖片高度會變高 */
        /* 建議底部空間稍微加大，避免蓋住頁碼 */
        padding-bottom: 120px;
    }

    .alcohol-warning-img {
        width: 100%; /* ✅ 強制 100% 滿版，不限制寬度 */
        height: auto;
    }
}