.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;
    }
}
   /*AI圖 */
/* =====================================================
   KOYA SHARED TRY-ON SELECTOR
===================================================== */

.koya-tryon,
.koya-tryon * {
    box-sizing: border-box;
}

.koya-tryon {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 22px;

    background: #f7f7f7;
    border: 1px solid #dddddd;

    font-family: Arial, Helvetica, sans-serif;
}

.koya-tryon [hidden] {
    display: none !important;
}

/* =====================================================
   HEADING
===================================================== */

.koya-tryon .koya-tryon-heading {
    margin: 0 0 16px;
    text-align: left;
}

.koya-tryon .koya-tryon-eyebrow {
    display: block;
    margin: 0 0 5px;

    color: #f7941d;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.3;
}

.koya-tryon .koya-tryon-heading h3 {
    margin: 0 0 6px;

    color: #111111;

    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;
}

.koya-tryon .koya-tryon-heading p {
    margin: 0;

    color: #666666;

    font-size: 12px;
    line-height: 1.5;
}

/* =====================================================
   HORIZONTAL COLOUR SLIDER
===================================================== */

.koya-tryon .koya-colour-options {
    display: flex !important;

    width: 100% !important;
    max-width: 100% !important;

    gap: 6px !important;
    padding: 3px 1px 14px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-left: 1px;

    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: auto;
    scrollbar-color: #f7941d #cccccc;
}

.koya-tryon .koya-colour-options::-webkit-scrollbar {
    height: 16px;
}

.koya-tryon .koya-colour-options::-webkit-scrollbar-track {
    background: #cccccc;
    border-radius: 20px;
}

.koya-tryon .koya-colour-options::-webkit-scrollbar-thumb {
    background: #f7941d;
    border-radius: 20px;
    border: 1px solid #f7941d;
}

.koya-tryon .koya-colour-options::-webkit-scrollbar-thumb:hover {
    background: #111111;
}

/* =====================================================
   COLOUR CARD — 6 VISIBLE ON DESKTOP
===================================================== */

.koya-tryon .koya-colour-option {
    position: relative;

    display: flex !important;
    flex: 0 0 calc((100% - 30px) / 6) !important;
    flex-direction: column !important;

    width: calc((100% - 30px) / 6) !important;
    min-width: calc((100% - 30px) / 6) !important;
    max-width: calc((100% - 30px) / 6) !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 4px 4px 7px !important;

    align-items: stretch !important;

    overflow: hidden;

    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    border-radius: 0 !important;

    color: #111111 !important;

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;

    scroll-snap-align: start;

    box-shadow: none !important;

    text-transform: none !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.koya-tryon .koya-colour-option:hover {
    border-color: #888888 !important;
    transform: translateY(-2px);

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.10) !important;
}

.koya-tryon .koya-colour-option:focus-visible {
    outline: 3px solid rgba(247, 148, 29, 0.35);
    outline-offset: 2px;
}

.koya-tryon .koya-colour-option.is-selected {
    padding: 3px 3px 6px !important;

    border: 2px solid #f7941d !important;

    box-shadow: 0 5px 14px rgba(247, 148, 29, 0.20) !important;
}

/* =====================================================
   COLOUR IMAGE
===================================================== */

.koya-tryon .koya-option-image {
    position: relative;

    display: block !important;

    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;

    margin: 0 0 5px !important;
    padding: 0 !important;

    overflow: hidden;

    background: #eeeeee;
}

.koya-tryon .koya-option-image img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center !important;
}

/* =====================================================
   COLOUR NAME
===================================================== */

.koya-tryon .koya-option-name {
    display: flex !important;

    min-height: 28px !important;
    padding: 0 1px !important;

    align-items: center;
    justify-content: center;

    color: #111111 !important;

    font-size: 8px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;

    text-align: center;
    text-transform: uppercase;

    overflow-wrap: anywhere;
    word-break: normal;
}

/* =====================================================
   SELECTED CHECK
===================================================== */

.koya-tryon .koya-selected-check {
    position: absolute;
    top: 3px;
    right: 3px;

    display: flex;

    width: 18px;
    height: 18px;

    align-items: center;
    justify-content: center;

    background: #f7941d;
    border-radius: 50%;

    color: #ffffff;

    font-size: 10px;
    font-weight: 900;
    line-height: 1;

    opacity: 0;
    transform: scale(0.6);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.koya-tryon
.koya-colour-option.is-selected
.koya-selected-check {
    opacity: 1;
    transform: scale(1);
}

/* =====================================================
   MESSAGE
===================================================== */

.koya-tryon .koya-selection-message {
    margin: 11px 0 0;

    color: #777777;

    font-size: 11px;
    line-height: 1.4;

    text-align: center;
}

/* =====================================================
   SELECTED COLOUR AND TRY-ON BUTTON
===================================================== */

.koya-tryon .koya-tryon-action {
    width: 100%;
    margin: 13px 0 0;
}

.koya-tryon .koya-selected-colour {
    margin: 0 0 8px;

    color: #666666;

    font-size: 11px;
    line-height: 1.4;

    text-align: center;
}

.koya-tryon .koya-selected-colour strong {
    color: #111111;
    font-weight: 800;
}

.koya-tryon .koya-tryon-button {
    display: flex !important;

    width: 100%;
    min-height: 48px;

    padding: 12px 17px;

    align-items: center;
    justify-content: space-between;

    background: #f7941d;
    border: 2px solid #f7941d;

    color: #ffffff !important;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
    line-height: 1.2;

    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.koya-tryon .koya-tryon-button:hover,
.koya-tryon .koya-tryon-button:focus {
    background: #111111;
    border-color: #111111;

    color: #ffffff !important;
    text-decoration: none !important;

    transform: translateY(-1px);
}

.koya-tryon .koya-button-arrow {
    margin-left: 12px;

    font-size: 19px;
    line-height: 1;
}

/* =====================================================
   TABLET — 5 VISIBLE
===================================================== */

@media (min-width: 601px) and (max-width: 900px) {
    .koya-tryon {
        padding: 18px;
    }

    .koya-tryon .koya-colour-option {
        flex: 0 0 calc((100% - 24px) / 5) !important;

        width: calc((100% - 24px) / 5) !important;
        min-width: calc((100% - 24px) / 5) !important;
        max-width: calc((100% - 24px) / 5) !important;
    }
}

/* =====================================================
   MOBILE — APPROXIMATELY 3.2 VISIBLE
===================================================== */

@media (max-width: 600px) {
    .koya-tryon {
        padding: 15px;
    }

    .koya-tryon .koya-tryon-heading {
        margin-bottom: 13px;
    }

    .koya-tryon .koya-tryon-eyebrow {
        font-size: 9px;
    }

    .koya-tryon .koya-tryon-heading h3 {
        font-size: 20px;
    }

    .koya-tryon .koya-tryon-heading p {
        font-size: 11px;
    }

    .koya-tryon .koya-colour-options {
        gap: 6px !important;
        padding-bottom: 14px !important;
    }

    .koya-tryon .koya-colour-option {
        flex: 0 0 30.5% !important;

        width: 30.5% !important;
        min-width: 30.5% !important;
        max-width: 30.5% !important;
    }

    .koya-tryon .koya-option-name {
        min-height: 30px !important;

        font-size: 8px !important;
    }

    .koya-tryon .koya-tryon-button {
        min-height: 46px;

        padding: 11px 14px;

        font-size: 11px;
    }
}
/* =====================================================
   FORCE TRY ON BUTTON TEXT TO EXACT CENTRE
===================================================== */

.koya-tryon .koya-tryon-button {
    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
}

.koya-tryon .koya-tryon-button > span:first-child {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    display: block !important;
    width: max-content !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;
    white-space: nowrap !important;

    transform: translate(-50%, -50%) !important;
}

.koya-tryon .koya-tryon-button .koya-button-arrow {
    position: absolute !important;
    top: 50% !important;
    right: 17px !important;
    left: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: translateY(-50%) !important;
}

@media (max-width: 600px) {
    .koya-tryon .koya-tryon-button .koya-button-arrow {
        right: 14px !important;
    }
}

/* =====================================================
   COMPLETE COLOUR COLLECTION
===================================================== */

.koya-tryon .koya-more-colours {
    width: 100%;
    margin: 18px 0 0;
    padding: 17px 16px;

    background: #ffffff;
    border: 1px solid #d7d7d7;

    text-align: center;
}

.koya-tryon .koya-more-colours p {
    max-width: 720px;
    margin: 0 auto 12px;

    color: #555555;

    font-size: 11px;
    line-height: 1.55;
}

.koya-tryon .koya-more-colours-button {
    display: inline-flex !important;
    min-height: 43px;
    padding: 10px 18px;

    align-items: center;
    justify-content: center;
    gap: 12px;

    background: #111111;
    border: 2px solid #111111;

    color: #ffffff !important;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.koya-tryon .koya-more-colours-button:hover,
.koya-tryon .koya-more-colours-button:focus {
    background: #f7941d;
    border-color: #f7941d;

    color: #ffffff !important;
    text-decoration: none !important;

    transform: translateY(-1px);
}

.koya-tryon .koya-more-colours-arrow {
    font-size: 17px;
    line-height: 1;
}

@media (max-width: 600px) {
    .koya-tryon .koya-more-colours {
        padding: 15px 12px;
    }

    .koya-tryon .koya-more-colours-button {
        width: 100%;
        min-height: 44px;
    }
}
.koya-tryon .koya-try-limit {
    margin: 10px 0 0;
    color: #e32424;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

