.page-wrapper{max-width:100%;}
.navigation, .breadcrumbs, .catalog-category-view .page-main .breadcrumbs, .catalog-category-view .page-main .columns, .page-header .header.panel, .header.content, .footer.content, .page-wrapper > .widget, .page-wrapper > .page-bottom, .block.category.event, .top-container, .page-main, .page-container > .content, .jumbotron > .container{max-width:100%;}
.page-footer{background-color:#bdbdbd;background-image:url(../images/foot_wheel_v1_3.png);background-repeat:no-repeat;background-position: ;}
/* =====================================================
   WHEEL SPECIFICATION TABLE
===================================================== */

.koya-spec-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

.koya-spec-table th,
.koya-spec-table td {
    padding: 18px 15px !important;
    border-top: 1px solid #333333 !important;
    color: #ffffff !important;
    font-size: 20px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.koya-spec-table th {
    background: #1c1c1c !important;
    font-weight: 800 !important;
}

.koya-spec-table .koya-size-heading td {
    background: #000000 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

/* =====================================================
   ORDER / OUT OF STOCK BUTTONS
===================================================== */

.koya-spec-table .koya-order-btn,
.koya-spec-table .koya-out-stock {
    box-sizing: border-box !important;
    display: inline-block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid #ffffff !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease !important;
}

.koya-spec-table a.koya-order-btn,
.koya-spec-table a.koya-out-stock {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* 點擊過的連結仍保持白底黑字 */
.koya-spec-table a.koya-order-btn:visited,
.koya-spec-table .koya-stock-status a.koya-out-stock:visited {
    background: #ffffff !important;
    color: #111111 !important;
}

/* ORDER：滑鼠移入或鍵盤選取時變綠色 */
.koya-spec-table a.koya-order-btn:hover,
.koya-spec-table a.koya-order-btn:focus-visible,
.koya-spec-table a.koya-order-btn:active {
    background: #16803c !important;
    border-color: #16803c !important;
    color: #ffffff !important;
}

/* OUT OF STOCK：滑鼠移入或鍵盤選取時變紅色 */
.koya-spec-table .koya-stock-status a.koya-out-stock:hover,
.koya-spec-table .koya-stock-status a.koya-out-stock:focus-visible,
.koya-spec-table .koya-stock-status a.koya-out-stock:active {
    background: #d92323 !important;
    border-color: #d92323 !important;
    color: #ffffff !important;
}

/* ETA：深色表格上使用較清楚的淺色文字 */
.koya-spec-table .koya-stock-status .koya-stock-eta {
    display: block !important;
    max-width: 100% !important;
    margin-top: 7px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    color: #dddddd !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    color: #f7941d !important;
}

/* =====================================================
   MOBILE SPECIFICATION TABLE
   第一行：SIZE / PCD / OFFSET
   第二行：PRICE / ORDER + ETA
===================================================== */

@media (max-width: 768px) {

    .koya-spec-table,
    .koya-spec-table tbody {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 隱藏表頭，不會誤隱藏第一筆商品 */
    .koya-spec-table thead,
    .koya-spec-table tr:has(> th) {
        display: none !important;
    }

    .koya-spec-table tr {
        display: grid !important;
        box-sizing: border-box !important;
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px 8px !important;
        align-items: center !important;
        padding: 14px 10px !important;
        border-bottom: 1px solid #333333 !important;
    }

    .koya-spec-table td {
        display: block !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    /* 尺寸 */
    .koya-spec-table tr:not(.koya-size-heading) > td:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 !important;
        font-size: 14px !important;
        font-weight: 900 !important;
    }

    /* PCD */
    .koya-spec-table tr:not(.koya-size-heading) > td:nth-child(2) {
        grid-column: 2 !important;
        grid-row: 1 !important;
        color: #bbbbbb !important;
        text-align: center !important;
        font-size: 11px !important;
    }

    /* Offset */
    .koya-spec-table tr:not(.koya-size-heading) > td:nth-child(3) {
        grid-column: 3 !important;
        grid-row: 1 !important;
        color: #bbbbbb !important;
        text-align: right !important;
        font-size: 11px !important;
    }

    /* 價錢：第二行左側 */
    .koya-spec-table tr:not(.koya-size-heading) > td:nth-child(4) {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-self: center !important;
        text-align: left !important;
        font-size: 13px !important;
        font-weight: 900 !important;
    }

    /* 按鈕與 ETA：第二行右側，使用兩欄空間 */
    .koya-spec-table tr:not(.koya-size-heading) > td:nth-child(5) {
        grid-column: 2 / 4 !important;
        grid-row: 2 !important;
        justify-self: stretch !important;
        min-width: 0 !important;
        text-align: right !important;
    }

    .koya-spec-table .koya-stock-status {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .koya-spec-table .koya-order-btn,
    .koya-spec-table .koya-out-stock {
        width: auto !important;
        max-width: 100% !important;
        padding: 8px 12px !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
    }

    .koya-spec-table .koya-stock-status .koya-stock-eta {
        margin-top: 6px !important;
        font-size: 11px !important;
        text-align: right !important;
        color: #f7941d !important;
    }

    /* 尺寸分組標題 */
    .koya-spec-table tr.koya-size-heading {
        display: block !important;
        padding: 0 !important;
        background: #000000 !important;
    }

    .koya-spec-table tr.koya-size-heading > td {
        display: block !important;
        width: 100% !important;
        padding: 12px !important;
        background: #000000 !important;
        font-size: 20px !important;
        font-weight: 900 !important;
        text-align: center !important;
    }
}