a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}

.vertical-tab {
    font-family: 'Noto Sans TC', sans-serif;
    display: flex;
    height: 100%;
    gap: 32px;
}

/*.vertical-tab .nav-tabs {
    border: none;
    background-color: var(--color-nav);
    padding: 1rem 1rem;
    width: 15%;
    border-radius: 10px;
    flex: 0 0 15%;
    aspect-ratio: 3 / 10;
    min-width: 240px;
}*/

.vertical-tab .nav-tabs {
    background: linear-gradient(160deg, #121218, var(--color-nav));
    padding: 1rem 1rem;
    width: 15%;
    min-width: 240px;
    aspect-ratio: 3 / 10;
    flex: 0 0 15%;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.6);
}

/*.vertical-tab .nav-tabs>li {
    padding: 10px 15px;
    background-color: #0000004a;
    margin: 5px 0;
    border-radius: 10px;
}*/


.vertical-tab .nav-tabs > li {
  position: relative;
  padding: 10px 15px;
  margin: 5px 0;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.1), 1px 1px 4px rgba(0,0,0,0.6);
  background: linear-gradient(160deg, #1c1c26, var(--color-nav));
  transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease; /* 不用 all，效能更好 */
  opacity: 0.9; /* 建議不要用在容器上太低，避免子元素也變淡 */
}

/* 只有非 .no-hover 的項目才有 hover 效果 */
.vertical-tab .nav-tabs > li:not(.no-hover):hover {
  background: linear-gradient(135deg, rgb(255 35 10), rgba(0,0,0,0.3));
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  opacity: 1;
}


.item-with-line {
    position: relative;
}

.item-with-line::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 15px;
    right: 15px;
    height: 1px;
    background-color: var(--color-w25);
}

.vertical-tab .nav-tabs li a {
    color: var(--color-w65);
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/**/
.nav-discount>li {
    font-size: 14px;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 5px;
    margin-bottom: 5px;
    padding: 4px 15px;
}

.nav-discount>li::before {
    content: "★";
    /* 星星符號 */
    margin-right: 8px;
    /* 星星和文字的間距 */
    font-size: 16px;
    /* 星星大小 */
    color: #FFA500;
    /* 星星橘黃色 */
    display: inline-block;
}

.nav-discount>li p {
    margin: 0;
    /* 移除 p 標籤預設間距 */
    color: #ffffff;
}

.nav-sub-discount {
    display: inline-block;
    min-height: 24px;
    /* 預留空間 */
    line-height: 1.2;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vertical-tab .nav-tabs li a:hover,
.vertical-tab .nav-tabs li a.active,
.vertical-tab .nav-tabs li a.active:hover {
    color: var(--color-btn);
    border: none;
}


.vertical-tab .nav-tabs li a:hover:before,
.vertical-tab .nav-tabs li.active a:before {
    opacity: 1;
    right: -17px;
}

.vertical-tab .nav-tabs li a:hover:after,
.vertical-tab .nav-tabs li.active a:after {
    opacity: 1;
    right: -3px;
}

.vertical-tab .tab-content {
    display: table-cell;
    position: relative;
    height: auto;
    width: 85%;
    /* CLS */
    flex: 1;
    aspect-ratio: 1360 / 425;
}

.vertical-tab .tab-content P {
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}

.nav-sub {
    font-size: 1rem;
    color: var(--color-w100);
    font-weight: 300;
}

h3.nav-sub>i {
    min-width: 22px;
}

@media screen and (max-width:767px) {
    .vertical-tab {
        gap: 16px;
    }

    .vertical-tab .tab-content {
        width: 100%;
    }

    ul.navsize {
        width: 100% !important;
        overflow: scroll;
        display: flex;
        gap: 16px;
    }

    .vertical-tab .nav-tabs {
        /* padding: 0.8rem 1rem;
        border-radius: 40px; */
        display: none;
    }

    .vertical-tab .nav-tabs li a {
        gap: 8px
    }

    ul.navsize>li a.active {
        background-color: var(--color-bg);
        padding: 0.1rem 0.5rem;
        border-radius: 30px;
    }

    .nav-sub {
        display: none;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .vertical-tab .nav-tabs {
        width: 30%;
    }

    .vertical-tab .tab-content {
        width: 70%;
    }
}