.gnb-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 10px;
    background: rgba(102, 102, 204, 0.03);
    border-radius: 16px;
    margin: 0 auto;
    max-width: 95%;
    transition: all 0.3s ease;
}

.gnb-nav .nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: auto;
    min-width: 70px;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #6666CC;
}

.gnb-nav .nav-item:hover {
    background: rgba(102, 102, 204, 0.1);
    border-color: rgba(102, 102, 204, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #6666CC;
}

.gnb-nav .nav-item.active {
    background: #6666CC;
    border-color: #6666CC;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 102, 204, 0.3);
}

.gnb-nav .nav-item .nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(102, 102, 204, 0.1);
}

.gnb-nav .nav-item:hover .nav-icon {
    transform: scale(1.05);
    background: rgba(102, 102, 204, 0.15);
}

.gnb-nav .nav-item.active .nav-icon {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.gnb-nav .nav-item span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    text-align: center;
    line-height: 1.2;
}


/* Mobile responsive */
@media (max-width: 768px) {
    .product__details__tab {
        position: relative;
    }

    .gnb-nav {
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        padding: 10px 5px;
        gap: 4px;
    }

    .gnb-nav.collapsed {
        max-height: 80px;
        animation: blindUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .gnb-nav.expanded {
        max-height: none;
        animation: blindDown 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes blindDown {
        0% {
            max-height: 80px;
        }
        100% {
            max-height: 200px;
        }
    }

    @keyframes blindUp {
        0% {
            max-height: 200px;
        }
        100% {
            max-height: 80px;
        }
    }

    .gnb-nav .nav-item {
        width: calc(25% - 4px);
        min-width: 60px;
        flex: 0 0 calc(25% - 4px);
        box-sizing: border-box;
        padding: 8px 4px;
        min-height: 70px;
    }

    .gnb-nav .nav-item .nav-icon {
        font-size: 20px;
        margin-bottom: 2px;
        width: 32px;
        height: 32px;
    }

    .gnb-nav .nav-item span {
        font-size: 8px;
        line-height: 1.1;
    }

    .gnb-toggle {
        display: block !important;
        width: 120px;
        height: 16px;
        background: transparent;
        border: none;
        color: transparent;
        font-size: 0;
        cursor: pointer;
        text-align: center;
        position: relative !important;
        margin: 1px auto 0;
        border-radius: 3px;
        transition: all 0.3s ease;
        z-index: 10;
    }

    .gnb-toggle::before {
        content: '';
        position: absolute;
        top: 5px;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(0,123,255,0.3);
        border-radius: 0.5px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .gnb-toggle::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(0,123,255,0.3);
        border-radius: 0.5px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* Expanded 상태 - 로딩시와 동일한 연한 색 유지 */
    .gnb-nav.expanded + .gnb-toggle::before,
    .gnb-nav.expanded + .gnb-toggle::after {
        background: rgba(0,123,255,0.3);
    }

    .gnb-toggle:hover::before,
    .gnb-toggle:hover::after {
        background: rgba(0,123,255,0.6);
    }

    .toggle-icon {
        font-style: normal;
        line-height: 1;
        font-weight: 200;
    }
}

@media (min-width: 769px) {
    .gnb-toggle {
        display: none;
    }

    .gnb-nav {
        gap: 12px;
        padding: 20px 15px;
    }

    .gnb-nav .nav-item {
        display: inline-flex;
        width: auto !important;
        min-width: 80px;
        flex: none;
        padding: 15px 12px;
        min-height: 90px;
    }

    .gnb-nav .nav-item .nav-icon {
        font-size: 28px;
        margin-bottom: 6px;
        width: 40px;
        height: 40px;
    }

    .gnb-nav .nav-item span {
        font-size: 11px;
    }

    .product__details__tab .nav-tabs .gnb-nav .nav-item {
        width: auto !important;
    }
}

/* Override style.css width settings for all screen sizes */
.product__details__tab .nav-tabs .gnb-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    max-width: 100% !important;
}

.product__details__tab .nav-tabs .gnb-nav .nav-item {
    width: calc(25% - 3px) !important;
    min-width: calc(25% - 3px) !important;
    max-width: calc(25% - 3px) !important;
    flex: 0 0 calc(25% - 3px) !important;
    margin-bottom: 4px !important;
    box-sizing: border-box !important;
}

@media (min-width: 769px) {
    .product__details__tab .nav-tabs .gnb-nav {
        gap: 6px !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }
    
    .product__details__tab .nav-tabs .gnb-nav .nav-item {
        width: calc(12.5% - 5.25px) !important;
        min-width: calc(12.5% - 5.25px) !important;
        max-width: calc(12.5% - 5.25px) !important;
        flex: 0 0 calc(12.5% - 5.25px) !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
        padding: 12px 4px !important;
        min-height: 80px !important;
    }
    
    .product__details__tab .nav-tabs .gnb-nav .nav-item .nav-icon {
        font-size: 20px !important;
        width: 28px !important;
        height: 28px !important;
        margin-bottom: 3px !important;
    }
    
    .product__details__tab .nav-tabs .gnb-nav .nav-item span {
        font-size: 9px !important;
        line-height: 1.1 !important;
    }
}

@media only screen and (max-width: 767px) {
    .canvas__open {
        display: flex;
        font-size: 10px;
        color: #111111;
        height: 35px;
        width: auto;
        line-height: 35px;
        text-align: center;
        cursor: pointer;
        position: absolute;
        right: 15px;
        top: 25px;
    }
    .canvas__open .welcome {
        padding-right: 10px;
    }
}